-
Notifications
You must be signed in to change notification settings - Fork 33
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
Allowing prefixes in identifiers endpoint #264
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #264 +/- ##
=======================================
Coverage 93.06% 93.06%
=======================================
Files 36 36
Lines 7121 7198 +77
=======================================
+ Hits 6627 6699 +72
- Misses 494 499 +5 ☔ View full report in Codecov by Sentry. |
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.
Could you please also update the doc strings here for the description of the name parameter since these are used in the OpenAPI document generation?
…ing (WebOfTrust#256) * Increase Escrower tock to avoid overly busy CPU during escrow processing Setting tock to 1.0 second runs escrower loop 30s delay and delegator approval received after 30 seconds * Remove redundant looping inside escrower recur method --------- Co-authored-by: Rubel Hassan Mollik <rubel.hassan@outlook.com>
…rust#265) * Make agent doers' tocks configurable from habitat config file * Fix typo of naming in test_load_tocks_config --------- Co-authored-by: Rubel Hassan Mollik <rubel.hassan@outlook.com> Co-authored-by: Philip Feairheller <pfeairheller@gmail.com>
I screw up the PR when rebasing. It picked other commits. I created a new clean one in #269 and I'm closing this. |
This PR is an implementation of #217 and #202, fixing the problem of aliases with special characters .
The changes allow endpoints of the form
/identifiers/{name}
to accept an alias or a prefix in the name path. If the value is valid for both prefix and alias, the prefix is prioritized.Basically, the PR replace:
hab = agent.hby.habByName(name)
with
hab = agent.hby.habs[name] if name in agent.hby.habs else agent.hby.habByName(name)