nextcloud / nextcloud/previewgenerator
Add `preview:queue-all` command to queue all media files for the background job
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 520
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Feature request
Which Nextcloud Version are you currently using: not relevant
Is your feature request related to a problem? Please describe.
Now that we have a background job to handle the pre-generation, it would be nice to be able to queue all media files for the job to handle them.
Describe the solution you'd like
Add a preview:queue-all command that queues all media files.
Describe alternatives you've considered
Do not implement the command. An admin may very well run the preview:generate-all initially after installing the app or at any later point. Queuing all images will cause congestion and new previews will likely not be generated for a long time.
Additional context
none
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing preview:generate-all command and the background job it uses. Trace how media files are discovered and queued, then verify that preview:queue-all queues every media file without generating previews immediately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100