Skip to content

fix: Company transfer works with S3 compatible services#4417

Merged
Rockyy174 merged 1 commit into
operately:mainfrom
Rockyy174:fix-transfers-s3
Apr 29, 2026
Merged

fix: Company transfer works with S3 compatible services#4417
Rockyy174 merged 1 commit into
operately:mainfrom
Rockyy174:fix-transfers-s3

Conversation

@Rockyy174
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • In S3Config.request_config/0, request_scheme/0 assumes scheme/0 always returns a binary; if OPERATELY_STORAGE_S3_SCHEME is unset (e.g. standard AWS S3), this will raise, so it would be safer to either make scheme/0 non-nil in all configs or have request_scheme/0 handle nil by returning a sensible default or omitting the option.
  • The new catch clauses in ExportWorker.perform/1 and ImportWorker.perform/1 trap all thrown values as well as exits, which might unintentionally convert normal throw/catch control flow into logged failures; if you only need to handle process exits, consider narrowing this to catch :exit, reason -> ....
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `S3Config.request_config/0`, `request_scheme/0` assumes `scheme/0` always returns a binary; if `OPERATELY_STORAGE_S3_SCHEME` is unset (e.g. standard AWS S3), this will raise, so it would be safer to either make `scheme/0` non-nil in all configs or have `request_scheme/0` handle `nil` by returning a sensible default or omitting the option.
- The new `catch` clauses in `ExportWorker.perform/1` and `ImportWorker.perform/1` trap all thrown values as well as exits, which might unintentionally convert normal `throw`/`catch` control flow into logged failures; if you only need to handle process exits, consider narrowing this to `catch :exit, reason -> ...`.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Signed-off-by: Adriano Lazzaretti <lazzaretti136@gmail.com>
@Rockyy174 Rockyy174 merged commit 27f2443 into operately:main Apr 29, 2026
3 checks passed
@Rockyy174 Rockyy174 deleted the fix-transfers-s3 branch April 29, 2026 19:06
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.

1 participant