Repository versions: a `verification` summary only staff can set

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

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
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
json, python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start with core/common/models.py, especially ConceptContainerModel and update_version_data, then trace the version list and detail serializers in core/sources/serializers.py and core/collections/serializers.py. Read the export serializer at core/sources/serializers.py:593 and the related tests; done means the stated staff permissions, field shape, version creation behavior, exports, and API responses are covered.

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

Mô tả

component/api type/feature

Part of OpenConceptLab/ocl_online#500.

A source or collection version can carry a short summary of how it was checked against its publisher's official release. The API returns it, and TBv3 shows it (OpenConceptLab/ocl_issues#1892, OpenConceptLab/ocl_issues#3025).

  • New nullable JSON field verification on repository versions; rejected on HEAD.
  • Returned with a version's detail and in the versions list.
  • Only staff can set, change or clear it; anyone else gets 403. Repository admins can't set it, directly or through extras.
  • Not copied when a new version is created, and left out of exports (the export is what the check fingerprints).
  • Shape checked on write: verified_at, verified_by, release (publisher, name, date, url, sha256), licence, citation, counts (release, repository, unexplained), changes (name, reason, count), checks (the six items, each passed).
  • Tests: staff write, non-staff 403, no copy to a new version, absent from the export.

Components: core/common/models.py (ConceptContainerModel, update_version_data :1371), version list and detail serializers in core/sources/serializers.py and core/collections/serializers.py, export serializer core/sources/serializers.py:593. Drafted by a Claude session; Sunny reviews and deploys.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4
Fork
2
Merge trung bình
2 giờ 12 phút
Pull request đã merge (30 ngày)
1

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 OpenConceptLab/ocl_issues

Tất cả issue của OpenConceptLab/ocl_issues

Issue tương tự

Thêm issue về Backend & API Design

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.