-
Notifications
You must be signed in to change notification settings - Fork 7
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: add dry run parameter to /session/input-files and /session/verify-checked end-points #92
Conversation
…y-checked end-points. Signed-off-by: Simon Viénot <[email protected]>
d7e1bab
to
607346a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
src/server/controllers/verification/session-state/input-files.session-state.paths.yaml
Show resolved
Hide resolved
src/server/controllers/verification/session-state/session-state.handlers.ts
Outdated
Show resolved
Hide resolved
…iles and /session/verify-checked end-points. Signed-off-by: Simon Viénot <[email protected]>
Signed-off-by: Simon Viénot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but is there a way to add a test to ensure
- no persistent when dry run is true
- no errors when dry run is not set
src/server/controllers/verification/session-state/session-state.handlers.ts
Show resolved
Hide resolved
Confirmed offline with @svienot than manual confirmation was done and follow up PR will capture the rest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
Signed-off-by: Simon Viénot <[email protected]>
Issue capturing the need for API end-points regression tests: #93 |
Description:
Add optional
dryrun
query parameter to the 2 endpoints of the session API (/session/input-files
and/session/verify-checked
) used by mirror-node explorer.When the parameter is present and set to true, the result of the (successful) verification is not stored in the repository.
Related issue(s):
Fixes #90