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: Ask timeouts with GetUserADM (DEV-1443) #2267
Conversation
✅ Linked to Bug DEV-1443 · DSP-API: Ask timeouts |
@@ -792,7 +814,7 @@ object Authenticator extends InstrumentationSupport { | |||
userInformationTypeADM = UserInformationTypeADM.Full, | |||
requestingUser = KnoraSystemInstances.Users.SystemUser | |||
) | |||
) | |||
)(Duration(100, SECONDS)) |
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.
this is the actual bug fix, I removed the former timeout (on line 453) and added an increased timeout explicitly here. I set it to 100 sec, the same as we did in the recent fix for ask timeouts with the ProjectGetADM request:
dsp-api/webapi/src/main/scala/org/knora/webapi/messages/util/search/QueryTraverser.scala
Line 240 in 41d5315
.ask(ProjectGetADM(ProjectIdentifierADM(maybeShortcode = shortcode)))(Duration(100, SECONDS)) |
Codecov ReportBase: 86.85% // Head: 86.85% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2267 +/- ##
==========================================
- Coverage 86.85% 86.85% -0.01%
==========================================
Files 241 241
Lines 27967 27983 +16
==========================================
+ Hits 24292 24305 +13
- Misses 3675 3678 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
looks good
Issue Number: DEV-1443
Pull Request Checklist
Basic Requirements
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Does this PR change client-test-data?
Other information
I set an increased timeout to the Authenticator. The rest is refactoring/clean-up.