nextcloud / nextcloud/richdocuments

Admin settings file upload error

Open
#4,075 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature: settings technical debt
Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

Problem
A lot of legacy code was cleaned out of the server repository, and richdocuments still relies on a lot of legacy code, unfortunately. This breaks the admin settings a bit when it comes to the global templates settings, since it relies on a legacy file upload plugin that no longer exists on the master branch of the server repository. This is also causing failing tests on the main branch of richdocuments.

Solution
We clearly need to do the same and clean out the legacy code related to the admin settings, as it's quite a mess. The solution would be to rewrite the admin settings and make them more modular and maintainable, as right now it's one giant Vue component, with a lot of legacy code being used in the template as well, and using PHP as a sort of templating language there.

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 with the admin settings implementation and the global templates settings, then inspect the failing tests on the main branch. Map the legacy upload and PHP-templating dependencies before deciding how to split the giant Vue component; done means the legacy code is removed, the settings remain functional, and the tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.