FormulaProcessing stage always skipped on CKAN 2.10+: ckan.plugins is a list, stage calls .split() on it

Đang mở
#354 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

@tino097 đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #356 của @tino097 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with ckanext/datapusher_plus/jobs/stages/formula.py and read FormulaStage.should_skip, which the issue identifies as the failing entry point. Check the CKAN configuration value handling and the linked pull request #356 for work already underway. Done means plugin configuration is handled without silently skipping formula processing and genuine failures are reported accurately.

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

Mô tả

On CKAN master (2.13.0a0) every RQ-path job logs:

Unable to check ckan.plugins configuration: 'list' object has no attribute 'split'. Skipping FormulaProcessing stage.

FormulaStage.should_skip in ckanext/datapusher_plus/jobs/stages/formula.py does:

plugins_config = tk.config.get('ckan.plugins', '')
enabled_plugins = [p.strip() for p in plugins_config.split()]

ckan.plugins is declared type: list in CKAN's config declaration since 2.10, so tk.config.get('ckan.plugins') returns a list, not the raw ini string. The AttributeError is caught by the broad except Exception and turned into "skip", so formula processing is silently disabled whenever scheming is enabled through ckan.plugins.

Suggested fix: enabled_plugins = tk.aslist(tk.config.get('ckan.plugins', [])), which handles both the string and list forms, and narrow the except so a real failure is not reported as "scheming not enabled".

Observed on main ef6b6a4 with prefect_enabled = false, CKAN 2.13.0a0, Python 3.10.

Ngôn ngữ chính
Python
Star
47
Fork
33
Merge trung bình
2 giờ 28 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 dathere/datapusher-plus

Tất cả issue của dathere/datapusher-plus

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.