nextcloud / nextcloud/richdocuments

Suggested richdocumentscode install command doesn't work in all situations

Open
#1,179 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement good first issue integration: built-in code server
Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

Describe the bug
richdocumentscode can in many cases not be installed via the web interface due to timeouts. As a result, richdocuments (rightly) suggests installing using occ if it doesn't work. See here:

https://github.com/nextcloud/richdocuments/blob/94dab7f3eac3a376645b0234cd3d22c21dd30031/src/components/AdminSettings.vue#L91

However, that command assumes that one has installed Nextcloud manually instead of using e.g. the snap, where the comand doesn't work. It should be trivial to check the $SNAP and $SNAP_NAME environment variables and print the proper command in that situation (sudo nextcloud.occ app:install richdocumentscode specifically), but I'm afraid I don't quite have the vue chops to pull it off.

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 in src/components/AdminSettings.vue around line 91, where the suggested occ installation command is assembled. Check how the $SNAP and $SNAP_NAME environment variables can determine the displayed command. Done means Snap installations show sudo nextcloud.occ app:install richdocumentscode while other installations retain the existing command.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.