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: PhotoSync is performed on a dedicated UploadQueue #1471

Merged
merged 41 commits into from
Mar 26, 2025

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Mar 12, 2025

Necessary changes in the UploadService to enable a dedicated UploadQueue for photoSync.

Depends on #1478
Depends on #1472

@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from 8f4d3db to b4aa0ee Compare March 13, 2025 13:42
Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

Did a self review, tested this, at this point it works fine

@adrien-coye adrien-coye marked this pull request as ready for review March 14, 2025 07:01
Copy link
Member

@PhilippeWeidmann PhilippeWeidmann left a comment

Choose a reason for hiding this comment

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

I don't think it's the UploadFile's responsability to choose the queue where it belongs.
The UploadService already knows the queues and should have the logic.

Something like queueFor(uploadFile: UploadFile) -> UploadQueueable
What do you think about it?

Base automatically changed from feat/split-upload-queue to master March 14, 2025 10:40
@adrien-coye
Copy link
Contributor Author

I don't think it's the UploadFile's responsability to choose the queue where it belongs.

@PhilippeWeidmann In the spirit of the current codebase, having this as a decoration of UploadFile was a pragmatic thing I did. This type already does a lot of things it should not be responsible for.

Yeah I agree with you, since you want it I'll make sure to do it 👍

Copy link
Member

@PhilippeWeidmann PhilippeWeidmann left a comment

Choose a reason for hiding this comment

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

Mergeable once dependencies are also merged 👍

@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch 4 times, most recently from 877a325 to f2604f5 Compare March 26, 2025 07:24
Copy link

1 similar comment
Copy link

@PhilippeWeidmann PhilippeWeidmann self-requested a review March 26, 2025 08:32
Copy link
Member

@PhilippeWeidmann PhilippeWeidmann left a comment

Choose a reason for hiding this comment

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

Did a last test with the final branch. LGTM 👍

@adrien-coye adrien-coye force-pushed the feat/photo-upload-queue branch from 3e24922 to fe6ad03 Compare March 26, 2025 08:35
@adrien-coye adrien-coye added this to the 5.3.1 milestone Mar 26, 2025
@adrien-coye adrien-coye merged commit 77c7956 into master Mar 26, 2025
8 checks passed
@adrien-coye adrien-coye deleted the feat/photo-upload-queue branch March 26, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants