Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

fix(serializers): mark event_index read-only in ContractEventSerializer

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

Maintainer thường phản hồi trong vòng 2 ngày

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

Từ ngày 19/10/2026.

  • #1690 của @timerloggedout-spec — đang mở
  • #1816 của @jdjioe5-cpu — đã đóng, không merge
  • #1859 của @mathstickz — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

api bug django good first issue Stellar Wave trivial

Files: django-backend/soroscan/ingest/serializers.py (ContractEventSerializer, ~line 361)

Problem: event_index is exposed as a writable field (it appears in Meta.fields but is absent from read_only_fields, which does include status), so an API client could attempt to overwrite an indexed event's position.

Approach: Add event_index to read_only_fields (indexed-event data is server-owned).

Acceptance criteria:

  • event_index is read-only.
  • Existing create/update flows unaffected.
  • Test added.
Ngôn ngữ chính
Python
Star
1
Fork
119
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
111

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 SoroScan/soroscan

Tất cả issue của SoroScan/soroscan

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.