A `required` attribute for environment variables in "Deploy Options"
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với phần khai báo biến môi trường trong info.xml và so sánh với các tệp live_transcription được liên kết: appinfo/info.xml và ex_app/lib/utils.py. Theo dõi cách Deploy Options xử lý các khai báo này và cách quá trình cài đặt hiện xử lý các giá trị chưa được thiết lập. Hoàn thành khi các biến bắt buộc được biểu diễn, quá trình cài đặt bị ngăn chặn khi phù hợp và modal Deploy Options nhắc nhập các biến đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 202
- Fork
- 30
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 24
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/app_api
-
bug docker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Daemon delete dialog: "Remove all ExApps" checkbox and `removeExApps` parameter have no effectĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Meta ex-app updates issueĐang mởdeploy discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
nextcloud/app_api#1236 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
deploy docker enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug deploy docker
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/app_api
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
enhancement priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
magicsunday/webtrees-statistics#664 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Перевод устарел
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày