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

Extend --preserve-exchange-records to include Presentation Exchange. #2352

Conversation

usingtechnology
Copy link
Contributor

Add auto_remove flags to appropriate APIs for override of default behaviour.

Verifiers/Provers can override default behaviour in send-request (both free presentation and bound presentation), send-presentation, send-proposal.

Note: added auto_remove to issue credentials (1 and 2) send-request, allowing holders to override the default behaviour.

Closes #2126
Closes #2206

usingtechnology and others added 2 commits July 25, 2023 12:18
Add `auto_remove` flags to appropriate APIs for override of default behaviour.

Signed-off-by: Jason Sherman <[email protected]>
Comment on lines 677 to 684
auto_remove = fields.Bool(
description=(
"Whether to remove the presentation exchange record on completion "
"(overrides --preserve-exchange-records configuration setting)"
),
required=False,
default=False,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels misplaced. Why is this on an indy specific model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe there is a bad/inappropriate inheritance structure...

but that schema is the request schema for /present-proof/records/{pres_ex_id}/send-presentation...

yeah, some ugly stuff going on there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

great catch though. i don't want to get into a complete re-engineering here but will create a new schema using the IndyPresSpecSchema as a parent and add the auto_remove to the child. Should be a step in the right direction and put the auto_remove where it is actually used.

@dbluhm dbluhm added this to the Version 0.10.0 milestone Jul 25, 2023
@sonarqubecloud
Copy link

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
No Duplication information No Duplication information

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.

Add an "auto delete" capability for presentation exchange records
2 participants