Adopt fractional indexing for segment override priorities

Đang mở
#8,778 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ái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, python
Lĩnh vực
backend

Hướng nghiên cứu

The issue names django-ordered-model as the ordering mechanism for segment override priorities and proposes the fractional-indexing-python library in its place. Start by searching the repository for where django-ordered-model and the segment override ordering logic are used, including the model definitions and their migrations. Done means priorities are stored and reordered with fractional keys, the ordered-model dependency is removed, and the existing reordering tests still pass. Because this changes the data model, check with maintainers on the approach before starting.

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

Mô tả

Use fractional indexing, e.g. https://github.com/httpie/fractional-indexing-python, to greatly simplify business logic around reordering segment overrides, and ditch django-ordered-model.

Ngôn ngữ chính
Python
Star
7.1k
Fork
603
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
102

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 Flagsmith/flagsmith

Tất cả issue của Flagsmith/flagsmith

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.