A `required` attribute for environment variables in "Deploy Options"
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 info.xml 中的环境变量声明开始,并将其与链接的 live_transcription 文件进行比较:appinfo/info.xml 和 ex_app/lib/utils.py。跟踪 Deploy Options 如何处理这些声明,以及安装目前如何处理未设置的值。完成标准是:必需变量得到表示,在适当情况下阻止安装,并且 Deploy Options 模态框提示输入这些变量。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- PHP
- 星标
- 202
- 派生
- 30
- 平均合并
- 3 天 20 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/app_api 的其他 Issue
-
bug docker
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
deploy discussion
难度 5/5 一周以上 新手友好度 20/100
nextcloud/app_api#1236 · 1 个 reaction ·
维护者通常 1 天内回复
-
deploy docker enhancement
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
bug deploy docker
难度 4/5 3-5 天 新手友好度 42/100
维护者通常 1 天内回复
查看 nextcloud/app_api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
Adyen/adyen-magento2#3453 ·
维护者通常 8 天内回复
-
component/media domain/discovery
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
enhancement priority: low
难度 2/5 1-3 小时 新手友好度 82/100
magicsunday/webtrees-statistics#664 ·
维护者通常 1 天内回复