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: add dry run parameter to /session/input-files and /session/verify-checked end-points #92

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

svienot
Copy link
Contributor

@svienot svienot commented Dec 6, 2023

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

@svienot svienot self-assigned this Dec 6, 2023
@svienot svienot force-pushed the add-dryrun-argument branch from d7e1bab to 607346a Compare December 7, 2023 16:18
@svienot svienot changed the title Add dryRun argument to /session/input-files and /session/verify-checked end-points feat: add dry run parameter to /session/input-files and /session/verify-checked end-points Dec 7, 2023
@svienot svienot marked this pull request as ready for review December 7, 2023 17:02
@svienot svienot requested review from a team as code owners December 7, 2023 17:02
@svienot svienot requested review from lukelee-sl, Sheng-Long, acuarica and Nana-EC and removed request for a team December 7, 2023 17:02
Copy link
Contributor

@acuarica acuarica 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

Copy link
Contributor

@acuarica acuarica left a comment

Choose a reason for hiding this comment

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

Thanks! lgtm

Copy link
Collaborator

@Nana-EC Nana-EC 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 but is there a way to add a test to ensure

  1. no persistent when dry run is true
  2. no errors when dry run is not set

@Nana-EC
Copy link
Collaborator

Nana-EC commented Dec 7, 2023

Looks good but is there a way to add a test to ensure

  1. no persistent when dry run is true
  2. no errors when dry run is not set

Confirmed offline with @svienot than manual confirmation was done and follow up PR will capture the rest

Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LG

@svienot
Copy link
Contributor Author

svienot commented Dec 7, 2023

Issue capturing the need for API end-points regression tests: #93

@svienot svienot merged commit bf80423 into main Dec 7, 2023
2 checks passed
@svienot svienot deleted the add-dryrun-argument branch December 7, 2023 23:08
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 dryRun argument to the /session/verify-checked API end-point
3 participants