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

chore: remove watcher polling option #7480

Merged
merged 3 commits into from Feb 28, 2024
Merged

chore: remove watcher polling option #7480

merged 3 commits into from Feb 28, 2024

Conversation

etnoy
Copy link
Contributor

@etnoy etnoy commented Feb 27, 2024

Polling for the library watcher only seems to bring problems. If users want to rescan libraries automatically we should probably have them use the cron feature instead.

Copy link

cloudflare-pages bot commented Feb 27, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: aa54bac
Status: ✅  Deploy successful!
Preview URL: https://5296fbe8.immich.pages.dev
Branch Preview URL: https://chore-remove-watch-polling.immich.pages.dev

View logs

@etnoy etnoy marked this pull request as ready for review February 27, 2024 22:32
@jrasm91
Copy link
Contributor

jrasm91 commented Feb 27, 2024

We should maybe include a migration to delete the option from the database

@etnoy
Copy link
Contributor Author

etnoy commented Feb 27, 2024

We should maybe include a migration to delete the option from the database

Totally forgot about that

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

Nice! Seeing such a diff always makes me happy :)
If most people won't use it anyways I think removing this makes sense.

@etnoy
Copy link
Contributor Author

etnoy commented Feb 27, 2024

We should maybe include a migration to delete the option from the database

Is there an easy way to create a migration for a config change? Typeorm doesn't see any changes

@alextran1502
Copy link
Contributor

This is a breaking chance because we removed a feature. There is no breaking changes on database level or deployment method, correct?

@jrasm91
Copy link
Contributor

jrasm91 commented Feb 28, 2024

There are no schema changes, you just need to write a migration that will delete the key if it has been set. Take a look at:

server/src/infra/migrations/1674263302005-RemoveVideoCodecConfigOption.ts

You can generate an empty migration with npm run typeorm:migrations:create

@etnoy
Copy link
Contributor Author

etnoy commented Feb 28, 2024

This is a breaking chance because we removed a feature. There is no breaking changes on database level or deployment method, correct?

Yes, we are removing an fature that was previously available but mostly seems to be causing problems. Those who wish to use a polling-type library refresh should use the cron feature instead. The library watcher is still available for those who don't mount their external libraries from a network drive.

@etnoy etnoy merged commit e4f32a0 into main Feb 28, 2024
25 checks passed
@etnoy etnoy deleted the chore/remove-watch-polling branch February 28, 2024 20:20
@figadore
Copy link

figadore commented Feb 29, 2024

Polling for the library watcher only seems to bring problems.

Can you link to the issue(s) where these problems were detailed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants