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

Read & Query HTTP APIs - Part 2 #129

Merged
merged 15 commits into from
May 14, 2024
Merged

Read & Query HTTP APIs - Part 2 #129

merged 15 commits into from
May 14, 2024

Conversation

csuwildcat
Copy link
Member

No description provided.

Copy link
Member

@LiranCohen LiranCohen left a comment

Choose a reason for hiding this comment

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

Looks good, just a question regarding returning 404 instead of 401.

src/http-api.ts Outdated Show resolved Hide resolved
src/http-api.ts Show resolved Hide resolved
src/http-api.ts Show resolved Hide resolved
Copy link
Collaborator

@thehenrytsai thehenrytsai left a comment

Choose a reason for hiding this comment

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

Looks good, made a bunch of refactoring. Only tests is left to bring new code coverage up.

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2024

Codecov Report

Attention: Patch coverage is 84.04255% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 94.07%. Comparing base (3873d9f) to head (a678d06).
Report is 6 commits behind head on main.

Files Patch % Lines
src/http-api.ts 84.04% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #129      +/-   ##
==========================================
- Coverage   94.43%   94.07%   -0.37%     
==========================================
  Files          25       25              
  Lines        2247     2362     +115     
  Branches      299      315      +16     
==========================================
+ Hits         2122     2222     +100     
- Misses        124      139      +15     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@csuwildcat
Copy link
Member Author

Let's just merge it

Copy link
Member

@LiranCohen LiranCohen left a comment

Choose a reason for hiding this comment

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

After adding some tests this is in a good place.

Once decentralized-identity/dwn-sdk-js#739 is complete, we can clean up some of this code that does a RecordsQuery followed by a RecordsRead with only the RecordsRead.

This will also allow us to clean up some of the potentially unreachable codepaths in place today.

@LiranCohen LiranCohen requested a review from thehenrytsai May 14, 2024 14:41
Copy link
Collaborator

@thehenrytsai thehenrytsai left a comment

Choose a reason for hiding this comment

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

A send-it approval, given the amount of tests that were added.

🐐 @LiranCohen.

@LiranCohen LiranCohen merged commit f91c78a into main May 14, 2024
8 checks passed
@LiranCohen LiranCohen deleted the read-query-apis-part2 branch May 14, 2024 19:08
bnonni pushed a commit to FormFree/dwn-server that referenced this pull request Aug 7, 2024
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.

4 participants