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

Hotfix/make token more unique #1618

Merged
merged 2 commits into from Jul 19, 2023
Merged

Conversation

VirginiaDooley
Copy link
Contributor

@VirginiaDooley VirginiaDooley commented Jun 7, 2023

co-authored @symroe

Ref https://democracy-club-gp.sentry.io/issues/4152565476/?project=1426221&query=feedback&referrer=issue-stream&statsPeriod=14d&stream_index=0

Previous to this change, tokens were being set to None as a default which caused a Multiple objects returned error. Here, we've set the token in the model and tested for uniqueness.

In the course of this work, I ran into a deprecation issue with setuptools which is a dependency.


@coveralls
Copy link

coveralls commented Jun 7, 2023

Coverage Status

coverage: 60.902% (+0.2%) from 60.67% when pulling 935ae94 on hotfix/make-token-more-unique into 9ed4a19 on master.

@VirginiaDooley VirginiaDooley requested review from symroe and removed request for Bekabyx July 4, 2023 12:30
@VirginiaDooley VirginiaDooley force-pushed the hotfix/make-token-more-unique branch 2 times, most recently from b6ff9ee to e17b2de Compare July 4, 2023 19:59
Copy link
Member

@symroe symroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test for this please? Just need to call get_object and make sure it actually works!

@VirginiaDooley
Copy link
Contributor Author

make token more random

@VirginiaDooley VirginiaDooley force-pushed the hotfix/make-token-more-unique branch 10 times, most recently from f99f42d to 34a0649 Compare July 18, 2023 19:08
@@ -16,6 +16,7 @@ redis==4.6.0
Pillow==9.5.0
icalendar==5.0.7
dealer==2.1.0
setuptools==58.2.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is an error with pyYAML. We're using 5.4.1 and the latest is 6.0.1. I took a look at the changelog and the version after the one we're on seems to fix this.

So I think the solution here is to upgrade pyYAML rather than pin setuptools to an older version.

@symroe symroe force-pushed the hotfix/make-token-more-unique branch 4 times, most recently from 6b0a2cc to ac5a6a8 Compare July 19, 2023 14:42
@VirginiaDooley VirginiaDooley force-pushed the hotfix/make-token-more-unique branch 2 times, most recently from 1ca3fa7 to 7bb71f3 Compare July 19, 2023 17:56
@VirginiaDooley VirginiaDooley merged commit f4234d2 into master Jul 19, 2023
7 checks passed
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.

None yet

3 participants