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

Allowing prefixes in identifiers endpoint #264

Closed
wants to merge 16 commits into from

Conversation

rodolfomiranda
Copy link
Contributor

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)

Copy link

codecov bot commented Jul 2, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 5 lines in your changes missing coverage. Please review.

Project coverage is 93.06%. Comparing base (18d3ad7) to head (0bde30f).
Report is 3 commits behind head on main.

Files Patch % Lines
src/keria/app/aiding.py 83.33% 3 Missing ⚠️
src/keria/app/credentialing.py 90.00% 1 Missing ⚠️
src/keria/app/delegating.py 50.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@pfeairheller pfeairheller 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 please also update the doc strings here for the description of the name parameter since these are used in the OpenAPI document generation?

rodolfomiranda and others added 15 commits July 11, 2024 11:01
…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 <[email protected]>
…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 <[email protected]>
Co-authored-by: Philip Feairheller <[email protected]>
@rodolfomiranda
Copy link
Contributor Author

I screw up the PR when rebasing. It picked other commits. I created a new clean one in #269 and I'm closing this.

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