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

Đang mở
#695 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
backend, frontend

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ả

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/app_api

Tất cả issue của nextcloud/app_api

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.