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

refactor: message attachment data #183

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

cristianIOHK
Copy link
Contributor

Description:

This PR refactors the message attachments adding a method to extract the data as a json string. That takes the responsibility of verifying the type of attachment data away from the users and provides a method to do it properly.
That method makes that functionality easier to maintain as all code uses the same logic, instead of having different implementations all over the code base.

Checklist:

  • My PR follows the contribution guidelines of this project
  • My PR is free of third-party dependencies that don't comply with the Allowlist
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked the PR title to follow the conventional commit specification

Copy link

github-actions bot commented Aug 7, 2024

Unit Test Results

109 tests   - 1   106 ✅  - 1   7s ⏱️ -1s
 24 suites ±0     3 💤 ±0 
 24 files   ±0     0 ❌ ±0 

Results for commit 7977f49. ± Comparison against base commit 06e9a8f.

This pull request removes 2 and adds 1 tests. Note that renamed tests count towards both.
org.hyperledger.identus.walletsdk.edgeagent.EdgeAgentTests ‑ testHandlePresentationDefinitionRequest_whenWrongAttachmentType_thenThrowPresentationRequestAttachmentNotSupported
org.hyperledger.identus.walletsdk.edgeagent.EdgeAgentTests ‑ testHandlePresentationSubmission_whenAttachmentNotSupported_thenThrowsAttachmentTypeNotSupported
org.hyperledger.identus.walletsdk.edgeagent.EdgeAgentTests ‑ test AttachementData getDataAsString

♻️ This comment has been updated with latest results.

@cristianIOHK cristianIOHK force-pushed the refactor/message_attachment_data branch from 46dafbf to 4e38c11 Compare August 7, 2024 14:08
@cristianIOHK cristianIOHK force-pushed the refactor/message_attachment_data branch from 4e38c11 to a889273 Compare August 7, 2024 14:10
@cristianIOHK cristianIOHK changed the title Refactor/message attachment data chore: message attachment data Aug 7, 2024
@cristianIOHK cristianIOHK changed the title chore: message attachment data refactor: message attachment data Aug 7, 2024
@coveralls
Copy link

coveralls commented Aug 7, 2024

Pull Request Test Coverage Report for Build 10287895201

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 91 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 42.977%

Files with Coverage Reduction New Missed Lines %
org/hyperledger/identus/walletsdk/edgeagent/EdgeAgent.kt 91 67.69%
Totals Coverage Status
Change from base Build 10184204750: -0.1%
Covered Lines: 2996
Relevant Lines: 6098

💛 - Coveralls

Signed-off-by: Cristian G <[email protected]>

fix: linting
Signed-off-by: Cristian G <[email protected]>
@cristianIOHK cristianIOHK force-pushed the refactor/message_attachment_data branch from 2f69565 to 7977f49 Compare August 7, 2024 16:11
@cristianIOHK cristianIOHK merged commit b90cf9d into main Aug 7, 2024
5 checks passed
@cristianIOHK cristianIOHK deleted the refactor/message_attachment_data branch August 7, 2024 16:23
cristianIOHK added a commit that referenced this pull request Aug 27, 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.

3 participants