`get_development_flag` does a database check if COLLECTOSS_DEV is not present in an environment variable

Đang mở
#566 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Read collectoss/application/config.py at lines 31–32 and collectoss/tasks/github/issues.py at line 21 to trace how get_development_flag is configured and used. Check how the value is fetched when COLLECTOSS_DEV is unset and whether that triggers a database check during import; done means the flag can be fetched without that unintended database dependency.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs-plan

The way that fetching this variable is configured may create a dependency on the database if it isnt specified on the command line
https://github.com/chaoss/CollectOSS/blob/52c792684a31b126f5b078c3faa4675279b9caf7/collectoss/application/config.py#L31-L32

this is used in

https://github.com/chaoss/CollectOSS/blob/52c792684a31b126f5b078c3faa4675279b9caf7/collectoss/tasks/github/issues.py#L21

This is a low priority issue to flag this as it could be partially working against our goal of reducing the amount of weirdness that happens at import time in CollectOSS.

Ngôn ngữ chính
Python
Star
17
Fork
30
Merge trung bình
6 giờ 16 phút
Pull request đã merge (30 ngày)
9

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 chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

Issue tương tự

Thêm issue về Python

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.