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

Remove code that updates the PK #251

Conversation

davidfischer
Copy link
Contributor

And note the internal inconsistency.

Removes the PK update added in #244 and keeps the PK as-is despite it no longer reflecting the hashed key. The comments about the inconsistency can be removed once #128 is fixed.

And note the internal inconsistency.
@davidfischer
Copy link
Contributor Author

I also added an explicit test to verify the hashing algorithm upgrade. Not changing the PK makes that much easier than it was previously.

@codecov-commenter
Copy link

codecov-commenter commented Sep 15, 2023

Codecov Report

Merging #251 (c0a5937) into master (3a1609f) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff            @@
##            master      #251   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          622       635   +13     
=========================================
+ Hits           622       635   +13     
Files Changed Coverage Δ
src/rest_framework_api_key/models.py 100.00% <100.00%> (ø)
tests/test_model.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Owner

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Brilliant, thank you.

@florimondmanca florimondmanca merged commit f93a1c4 into florimondmanca:master Sep 17, 2023
7 checks passed
@florimondmanca florimondmanca mentioned this pull request Sep 17, 2023
@florimondmanca florimondmanca mentioned this pull request Sep 30, 2023
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.

3 participants