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

Log last sync time per collection service and URL #702

Conversation

sunkup
Copy link
Member

@sunkup sunkup commented Apr 2, 2024

Not super pretty, but since the SyncManager itself might be rewritten at some point - I think this should do?

Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

Didn't think that this was so complicated. The core problem is that there's yet no connection between the database (where the last sync shall be stored) and the content providers.

The suggested solution would work, but requires redundant code (like determining the service type from the authority) that looks not to be on the right place. Maybe we could pass the collection ID or at least service type from the Syncer, but it would require changes there.

I'll think about alternatives… really hard.

@rfc2822 rfc2822 force-pushed the main-ose branch 4 times, most recently from fbfee56 to dd08415 Compare April 10, 2024 11:54
@rfc2822 rfc2822 force-pushed the 699-last-synced-timestamp-is-only-applied-to-one-resource-if-there-are-multiple-collections-with-the-same-path branch from d7e5906 to 23840ad Compare April 19, 2024 09:06
@rfc2822 rfc2822 force-pushed the main-ose branch 17 times, most recently from 47ef18b to 39f8f2e Compare May 2, 2024 12:03
@sunkup sunkup force-pushed the 699-last-synced-timestamp-is-only-applied-to-one-resource-if-there-are-multiple-collections-with-the-same-path branch from 23840ad to deff325 Compare May 14, 2024 08:56
@sunkup sunkup requested a review from rfc2822 May 14, 2024 09:00
@rfc2822 rfc2822 merged commit b4e58ee into main-ose May 14, 2024
7 checks passed
@rfc2822 rfc2822 deleted the 699-last-synced-timestamp-is-only-applied-to-one-resource-if-there-are-multiple-collections-with-the-same-path branch May 14, 2024 19:28
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.

"Last synced timestamp" is only applied to one resource (if there are multiple collections with the same path)
2 participants