A `required` attribute for environment variables in "Deploy Options"

オープン
#695 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
backend, frontend

調査の方向性

info.xml の環境変数宣言から始め、リンクされている live_transcription ファイル(appinfo/info.xml と ex_app/lib/utils.py)と比較します。Deploy Options がこれらの宣言をどのように処理しているか、またインストールが現在未設定の値をどのように扱っているかを追跡します。必須変数が表現され、適切な場合にインストールが防止され、Deploy Options モーダルがそれらの入力を促すようになれば完了です。

索引モデルが issue の本文から書いたものです。

説明

deploy enhancement php priority: medium
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時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/app_api のほかの issue

nextcloud/app_api の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。