1
0
Fork
You've already forked pyfedi
0
forked from rimu/pyfedi

Add automatic S3 migration for uploaded content #11

Closed
saint wants to merge 0 commits from s3-migration-support into main
pull from: s3-migration-support
merge into: saint:main
saint:main
saint:task/woodpecker-registry-cleanup
saint:update-woodpecker-ci
saint:sync/upstream-20250829
saint:feat/entrypoint-flask-cli
saint:forgejo-actions
saint:woodpecker/mail-on-pipeline
saint:ci/docker-build
saint:ci/linter
saint:ci/woodpecker-ci
saint:fix/dockerize
saint:config/mail-config
Owner
Copy link
  • New uploads go directly to S3 when configured (no local URL generation)
  • Automatic migration of existing local files on first access
  • Added _migrate_to_s3_if_needed() method to File model
  • Integrated migration triggers in view_url(), medium_url(), thumbnail_url()
  • Backward compatible: supports users switching from local to S3 storage
  • Silent failure handling: migration errors don't break user experience

Supports seamless transition from local file storage to S3 without downtime.

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

- New uploads go directly to S3 when configured (no local URL generation) - Automatic migration of existing local files on first access - Added _migrate_to_s3_if_needed() method to File model - Integrated migration triggers in view_url(), medium_url(), thumbnail_url() - Backward compatible: supports users switching from local to S3 storage - Silent failure handling: migration errors don't break user experience Supports seamless transition from local file storage to S3 without downtime. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
saint force-pushed s3-migration-support from 434243de96
Some checks failed
/ lint (push) Failing after 9s
/ lint (pull_request) Failing after 9s
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
to cd8a43f439
Some checks failed
/ lint (push) Failing after 9s
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
/ lint (pull_request) Failing after 9s
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2025年09月03日 18:37:35 +02:00
Compare
saint closed this pull request 2025年09月03日 18:45:44 +02:00
Some checks failed
/ lint (push) Failing after 9s
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
/ lint (pull_request) Failing after 9s
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
saint/pyfedi!11
Reference in a new issue
saint/pyfedi
No description provided.
Delete branch "s3-migration-support"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?