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

docs(changelog): bump to 5.0.0, add token warning #358

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

max-wittig
Copy link
Contributor

@max-wittig max-wittig commented Jul 9, 2024

I've increased the version to major, as this kind of a big change asks for one.

Fixes #357

/cc @johnraz

I've increased the version to major, as this kind of a big change asks for one.

Fixes jazzband#357
@johnraz
Copy link
Collaborator

johnraz commented Jul 9, 2024

Thanks !

@johnraz johnraz merged commit 95a8fb3 into jazzband:develop Jul 9, 2024
8 checks passed
@max-wittig max-wittig deleted the patch-1 branch July 10, 2024 09:03
@jmsmkn
Copy link

jmsmkn commented Aug 1, 2024

Bit confused by these warnings now. We upgraded to 4.2 a year ago, which broke existing tokens. Will upgrading to 5.0.0 break them again? Or was this warning just added twice to highlight it?

@giovannicimolin
Copy link
Contributor

@jmsmkn I'm not sure, and I haven't had the time to test if they will actually break yet.
It might have been a miscommunication and the warning isn't real, but I'm not sure.

If you have some time could you test this and report back here?

@jmsmkn
Copy link

jmsmkn commented Aug 2, 2024

It does indeed break them, caused by #272, bit of a pain considering the default is not to use that feature.

@jmsmkn
Copy link

jmsmkn commented Aug 2, 2024

Looking through that PR:

@max-wittig
Copy link
Contributor Author

max-wittig commented Aug 2, 2024

Hi @jmsmkn @giovannicimolin This MR (#272) does not break it. I added tests at the time to ensure that, however the release does.

What breaks the token compatibility is: b02a155

I filed an issue here regarding this as well: #357

@jmsmkn
Copy link

jmsmkn commented Aug 2, 2024

b02a155 does not break anything as that is just adding a warning to the documentation.

I tested this by generating the tokens with 4.2.0 (which already includes the changes of the salt removal described by b02a155), then installed 5.0.1, migrated, and ran a request against that process.

Both 4.1.0 -> 4.2.0 and 4.2.0 -> 5.0.1 break the tokens.

@johnraz
Copy link
Collaborator

johnraz commented Aug 2, 2024

@jmsmkn Thanks for taking the time to test this 👌🏻

@max-wittig I reviewed the PR and the test there is not testing that a token generated before your change will work after. In order to properly do that you would have to checkout the code at the previous version then at the next etc. So we cannot state strongly that this is not breaking it.

I do trust @jmsmkn carefully tested this manually and I believe there is an actual different breakage between 4.2.0 and 5.0.0.

Now, @jmsmkn if you feel things should be done differently, I think it would be more constructive to open a PR so we can discuss the code and your change proposal rather than hypothetically talking about what could / should have been done.

5.0.1 is out, there is no going back so let’s look ahead and try to avoid breaking changes in the future.

Cheers!

@max-wittig
Copy link
Contributor Author

@max-wittig I reviewed the PR and the test there is not testing that a token generated before your change will work after. In order to properly do that you would have to checkout the code at the previous version then at the next etc. So we cannot state strongly that this is not breaking it.

Ahh I see. It just tested that it works when changing the prefix. I wasn't aware of the breakage that I've caused! I'm sorry!

5.0.1 is out, there is no going back so let’s look ahead and try to avoid breaking changes in the future.

Yes that is true. Maybe there needs to be a test in CI using tokens in main and comparing them with any additional PR to see if the tokens still work.

@jmsmkn
Copy link

jmsmkn commented Aug 2, 2024

Yes that is true. Maybe there needs to be a test in CI using tokens in main and comparing them with any additional PR to see if the tokens still work.

Added in #362 for tokens from 4.2.0 without prefixes.

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

Successfully merging this pull request may close these issues.

Make sure to mention that old tokens no longer work when releasing!
4 participants