-
Couldn't load subscription status.
- Fork 32
🐛 Fixes api-keys unique constraint violation (🚨) #5890
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
🐛 Fixes api-keys unique constraint violation (🚨) #5890
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5890 +/- ##
=========================================
+ Coverage 84.5% 85.1% +0.5%
=========================================
Files 10 561 +551
Lines 214 28228 +28014
Branches 25 205 +180
=========================================
+ Hits 181 24032 +23851
- Misses 23 4145 +4122
- Partials 10 51 +41
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for finding/solving that.




What do these changes do?
While starting a jupyter (in master), the variable substitution component triggers a callback to auto-generate a valid api-key for the current user. This callback raises
Manual exploratory testing suggested that this error is produced by a race condition when executing
getandcreateoperations. Note thatget_or_createoperation was implemented in thedirectorv2calls togetandcreatefunction are connected via RPC -> service -> repo.get_or_createas a single transaction in theapi_keys._dbrepositoryapi_keys_manager.pyRelated issue/s
OSPARC_VARIABLE_API_*as osparc session variable (🚨) #5858How to test
Driving tests
Dev-ops checklist