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 天內回覆