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

feat(sdk): Make credentials optional for GetSubmissionRequirements #577

Conversation

DRK3
Copy link
Collaborator

@DRK3 DRK3 commented Aug 30, 2023

GetSubmissionRequirements can now be called with no credentials passed in. This supports the use case where the caller has no credentials that match but wants to check the type constraint and/or schemas specified by the input descriptors.

Also removed an unused CredentialReader option and some unused error codes.

@cla-bot cla-bot bot added the cla-signed label Aug 30, 2023
@DRK3 DRK3 force-pushed the MakeCredentialsOptionalInGetSubmissionRequirements branch 2 times, most recently from a3cf991 to ac650af Compare August 30, 2023 16:34
@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.07% ⚠️

Comparison is base (45ed540) 90.01% compared to head (ac650af) 89.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #577      +/-   ##
==========================================
- Coverage   90.01%   89.95%   -0.07%     
==========================================
  Files          98       98              
  Lines        3907     3882      -25     
==========================================
- Hits         3517     3492      -25     
  Misses        258      258              
  Partials      132      132              
Files Changed Coverage Δ
cmd/wallet-sdk-gomobile/credential/inquirer.go 92.00% <100.00%> (ø)
pkg/credentialquery/credentialquery.go 100.00% <100.00%> (ø)

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

GetSubmissionRequirements can now be called with no credentials passed in. This supports the use case where the caller has no credentials that match but wants to check the type constraint and/or schemas specified by the input descriptors.

Also removed an unused CredentialReader option and some unused error codes.

Signed-off-by: Derek Trider <[email protected]>
@DRK3 DRK3 force-pushed the MakeCredentialsOptionalInGetSubmissionRequirements branch from ac650af to d36f638 Compare August 30, 2023 16:56
@sonarcloud
Copy link

sonarcloud bot commented Aug 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.0% 3.0% Duplication

@rolsonquadras rolsonquadras merged commit 32dd9dd into trustbloc:main Aug 30, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants