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

Add Azure Blob Storage as a storage engine for attachments #255

Merged
merged 12 commits into from
Jan 7, 2025

Conversation

jmezach
Copy link
Contributor

@jmezach jmezach commented Jan 6, 2025

This refactors the way the attachments endpoint interacts with storage engines by introducing an AttachmentStorageEngine interface. It then implements that interface for all existing storage engine types (database, filesystem, s3) and adds a new implementation for storing attachments in Azure Blob Storage.

Fixes #136

Signed-off-by: Jonathan Mezach [email protected]

@jmezach
Copy link
Contributor Author

jmezach commented Jan 6, 2025

I have tested that the database storage engine still works as expected. Haven't tried the filesystem one yet, nor the s3 one since I don't have access to an S3 account ;).

Copy link
Owner

@drodil drodil 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 👍 Just couple of small details to staighten out

@drodil
Copy link
Owner

drodil commented Jan 6, 2025

Also some lint issues that need fixing. And could you update the docs/config.md as well, thanks!

Signed-off-by: Jonathan Mezach <[email protected]>
Signed-off-by: Jonathan Mezach <[email protected]>
Signed-off-by: Jonathan Mezach <[email protected]>
@jmezach
Copy link
Contributor Author

jmezach commented Jan 7, 2025

@drodil I think the lint issues are fixed now and I've updated the docs with the new configuration values.

Signed-off-by: Jonathan Mezach <[email protected]>
Signed-off-by: Jonathan Mezach <[email protected]>
@drodil
Copy link
Owner

drodil commented Jan 7, 2025

Looking good, going to merge and publish a new version!

@drodil drodil merged commit c46f843 into drodil:main Jan 7, 2025
6 checks passed
@jmezach jmezach deleted the feature/az-blob-storage branch January 7, 2025 12:36
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.

feat: Azure Blob Storage attachment support
2 participants