-
Notifications
You must be signed in to change notification settings - Fork 14
Fix duplicate GET request during Vault-authenticated downloads #53
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
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughRemoved the explicit Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as CLI (user)
participant Client as DatabusClient
participant Vault as Vault
participant Server as Storage Server
participant FS as Local FS
CLI->>Client: download --validate-checksum <object>
Client->>Vault: request auth token
Vault-->>Client: auth token
Client->>Server: GET /object (no forced Accept-Encoding)
Server-->>Client: response (maybe gzipped) + checksum metadata
Client->>FS: stream write file
Client->>Client: compute checksum
alt checksum matches
Client->>CLI: success
else checksum mismatch
Client->>CLI: error / fail
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@README.md`:
- Around line 200-201: The README flag description for --validate-checksum says
it will "fail on mismatch" but the CLI help text in cli.py (the add_argument
call for "--validate-checksum") only says "Validate checksums of downloaded
files"; update the help string in the add_argument/argparse setup (the
"--validate-checksum" argument) to match README by appending the failure
behavior (e.g., "Validate checksums of downloaded files and fail on mismatch")
so both docs are consistent.
- Around line 297-299: The README option list is out of sync with the CLI: the
options --title, --abstract, and --description are declared with required=True
in cli.py, so update the README entries for these three flags to include the
“[required]” marker to match the actual CLI help output (alternatively, if you
intend them to be optional, remove required=True from the corresponding option
definitions in cli.py for --title, --abstract, and --description so the docs
remain correct).
|
Thanks for the review. Updated the README to align with the actual CLI output, including marking --title, --abstract, and --description as required. Also aligned the --validate-checksum description between README and CLI help text to clearly indicate failure on checksum mismatch. |
What this PR does
Accept-Encodingheader during Vault-authenticated downloadsWhy
Scope
Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.