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

Fix language pack availability issue in 0.14.1 #4587

Merged
merged 1 commit into from
Oct 7, 2015

Conversation

MCGallaspy
Copy link
Contributor

Language packs not shown as available, due to version comparison on distributed server. See my commit message/code.

See @aronasorman's note for context: fle-internal/ka-lite-central@7a48ceca9eff#diff-b4c6913ca485fa33b3dfb6040efc3dddR680

We should cherry-pick this to 0.15.x and develop as well.

Commit message:

Change version comparison logic

The central server sends a short version (e.g. 0.14), which the distributed server
then compares to its long version (e.g. 0.14.1). The problem is that 0.14 compares
as less than 0.14.1, so language packs are shown as unavailable. Instead,
when comparing two mismatched-length versions, only consider the shortest version
available -- thus 0.14 and 0.14.1 would compare equal. Then the languagepack versions
will be compared, which is the actual intent.

@jamalex or @rtibbles any caveats here I should be aware of?

Due immediately.

@MCGallaspy
Copy link
Contributor Author

Um, I just had a total brain-fart with that commit message. Incoming amendment.

The central server sends a short version (e.g. 0.14), which the distributed server
then compares to its long version (e.g. 0.14.1). The problem is that 0.14 compares
as less than 0.14.1, so language packs are shown as unavailable. Instead,
when comparing two mismatched-length versions, only consider the shortest version
available -- thus 0.14 and 0.14.1 would compare equal. Then the languagepack versions
will be compared, which is the actual intent.
@aronasorman
Copy link
Collaborator

Testing.

@aronasorman
Copy link
Collaborator

Works.

aronasorman added a commit that referenced this pull request Oct 7, 2015
Fix language pack availability issue in 0.14.1
@aronasorman aronasorman merged commit dceccca into learningequality:0.14.x Oct 7, 2015
@aronasorman aronasorman deleted the lang-pack-js-fix branch October 7, 2015 23:56
@aronasorman aronasorman removed the has PR label Oct 7, 2015
@aronasorman aronasorman mentioned this pull request Oct 8, 2015
5 tasks
@benjaoming
Copy link
Contributor

Just wanna clue in @EdDixon because this is the issue that caused the blue button to be gone. Now it's back in 0.14.2 which the above PR tracks.

screenshot from 2015-10-08 15 14 12

@MCGallaspy
Copy link
Contributor Author

Need to cherry-pick to 0.15 and develop as well.

@rtibbles
Copy link
Member

rtibbles commented Oct 8, 2015

Is in 0.15. Should get merged to develop from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants