nextcloud / nextcloud/previewgenerator

Add `preview:queue-all` command to queue all media files for the background job

Open
#622 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.