A `required` attribute for environment variables in "Deploy Options"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the environment-variable declaration in info.xml and compare it with the linked live_transcription files: appinfo/info.xml and ex_app/lib/utils.py. Trace how Deploy Options handles these declarations and how installation currently treats unset values. Done means required variables are represented, installation is prevented when appropriate, and the Deploy Options modal prompts for them.
Written by the indexing model from the issue text.
Description
Describe why it is important and where it will be useful
Some environment variables/admin options are required and an ability to clearly communicate that would be nice, otherwise if the docs are not read, the realisation is late and only visible in the logs of the Ex-Apps.
One such example is this env var which is required for the app to function but the admin is not prompted for it automatically: https://github.com/nextcloud/live_transcription/blob/311a2e679f7e8e3d53651f35009a9006234423bf/appinfo/info.xml#L32-L37
https://github.com/nextcloud/live_transcription/blob/311a2e679f7e8e3d53651f35009a9006234423bf/ex_app/lib/utils.py#L67-L70
Describe your proposed solution
A required attribute should be added to the info.xml environment variable declation and prevent the app from being installed if it's unset. Environment variables can be termed as "set" even when their value is "" so not sure how the UI should work but in any case, the environment variables modal (Deploy Options) should be prompted in such cases.
This requires changes in the server repo as well for the UI part.
Describe alternatives you've considered, if relevant
No response
Additional context
No response
- Dominant language
- PHP
- Stars
- 202
- Forks
- 30
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from nextcloud/app_api
-
bug docker
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
deploy discussion
Difficulty 5/5 Over a week Newbie friendliness 20/100
nextcloud/app_api#1236 · 1 reaction ·
Maintainers usually reply within 1 day
-
deploy docker enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
bug deploy docker
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
All issues in nextcloud/app_api
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
mcallegari/qlcplus-docs#147 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Adyen/adyen-magento2#3453 ·
Maintainers usually reply within 8 days
-
component/media domain/discovery
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simplesamlphp/simplesamlphp#2695 ·