nextcloud / nextcloud/richdocuments

Default empty templates should be updated automatically on upgrade

Open
#1,283 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: templates
Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

Currently empty templates are only updated after an upgrade if the admin runs occ richdocuments:update-empty-templates manually. This was useful in the past, when the default empty templates had specific locale baked in. However, with fb68779048bdeedc1cbf87d2d992b966b9b0c3b1 locale-independent default templates were introduced, eliminating the reason to have custom empty templates, and the need for the above command.

Now the issue is that users aren't receiving the updated templates unless they run that command, thus let's always update the default templates on upgrade.

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 tracing the occ richdocuments:update-empty-templates command and the upgrade path, using commit fb68779048bdeedc1cbf87d2d992b966b9b0c3b1 for context. Done means the default empty templates are updated automatically during an upgrade without requiring the command to be run manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.