Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioning is inconstistent #11

Closed
BrunnerLivio opened this issue Jul 4, 2018 · 7 comments
Closed

Versioning is inconstistent #11

BrunnerLivio opened this issue Jul 4, 2018 · 7 comments
Labels
discussion help wanted Extra attention is needed

Comments

@BrunnerLivio
Copy link
Contributor

BrunnerLivio commented Jul 4, 2018

@dominicbarnes and people from Twitter pointed out, that the upcoming version from the PR #10 and GAME_MASTER 0.108.3 seems to be inconsistent with the actual versioning.

More infos about the APK versioning, look here:
https://www.apkmirror.com/apk/niantic-inc/pokemon-go/

The current discussion is, whether this repository should switch to dates (e.g. YYYYMMDD) as identifier rather than the version name of a GAME_MASTER file.

@BrunnerLivio BrunnerLivio added help wanted Extra attention is needed discussion labels Jul 4, 2018
@BrunnerLivio
Copy link
Contributor Author

BrunnerLivio commented Jul 4, 2018

I think we should first investigate onto the Niantic versioning, before we change to YYYYMMDD as GAME_MASTER identifier. Changing to a different identifier from X.XXX.X to something else should be considered as 'last option', because this may break some depending applications.

@dominicbarnes
Copy link
Contributor

It seems to me that the GAME_MASTER is a separate entity from the app itself, which makes the current version naming/convention inaccurate.

I say this because we've seen cases where the GAME_MASTER is updated multiple times between app versions, such as at the beginning and end of events. In addition, the opposite is also true where app versions come out with no change to the GAME_MASTER, only to make bug fixes in the game's code.

This repository's purpose is to serve as an archive of GAME_MASTER files over time. As such, I believe that using dates (eg: YYYYMMDD) makes the most sense to me. As a nice side-effect, this change would eliminate a manual step for importing new files (ie: no longer manually defining a version, and relying on mtime instead).

As far as backwards-compatibility goes, maybe the way forward is to create a branch to use this new naming convention. We could either maintain both branches, or deprecate the current system and only add new files to the new system.

I don't know about others, but I'm using this repository as a git submodule in my own project rather than the npm package. I just list the folders in the versions/ directory and sort them via semver, and changing to sort by "YYYYMMDD" would be trivial for me. (curious to hear about others)

@celandro
Copy link
Collaborator

celandro commented Jul 4, 2018 via email

@BRUNNEL6
Copy link
Contributor

BRUNNEL6 commented Jul 4, 2018

@celandro I’m just cautious, because I do not want to break dependants applications. But it seems like it is the best way using a timestamp.

From where do we decide the YYYYMMDD format? Should it be the release date of the GAME_MASTER file? So the timestampMsproperty basically, or am I getting this wrong?

What about the existing versions? Should we change the version numbers to timestamps so it is consistent?

I’m currently kinda busy and sometimes in holidays in the next 2-3 weeks. I’ll follow the discussion but do not know if I can code (update test cases for example).

@celandro
Copy link
Collaborator

celandro commented Jul 5, 2018 via email

@dandesousa
Copy link
Collaborator

I'm fine with YYYYMMDD-HHMMSS (or whatever) as a format regardless of the source of the timestampMs (canonical or download time). I agree we should just do it and move on -- as long as we have an easy to reason about versioning scheme that doesn't confuse we should be fine. No need to 🚲 shed it for too long.

I'm indifferent on renaming versions but I'm slightly inclined to keep the old version numbers and do this going forward, looks like a natural sort would keep them in order anyway. If someone wants consistency I won't argue though.

@BrunnerLivio BrunnerLivio mentioned this issue Jul 9, 2018
7 tasks
@BrunnerLivio
Copy link
Contributor Author

Started a new branch. Feel free to contribute #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants