acidjunk / acidjunk/autoleaf-tickets

Remove old price model left overs

Đang mở
#5 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

_Originally: https://github.com/virge-io/pricelist-frontend/issues/250_

Lot's of places still use the hardcoded fields: Frontend + Backend

KindDetail endpoint will be covered in other ticket #270

A CLI script is needed to convert the last remaining prices: there are still some "PrijsCombi's" that use a hardcoded joint or canna price; only PrijsCombi's that were used were converted.

This is a left over of bug/problems when we deployed the new model; we did some last minute changes in the convert to not harm horeca prices: which led to some "unconverted PrijsCombi's".

So write a script that finds these: and remove the hardcoded field values en replace it with the correct json prices. Probably good to check if noc actual ShopToPrice relation exists for them on the canna card.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

The issue names no files or tests; start by locating the remaining hardcoded price fields and the existing price-conversion logic in the frontend and backend. Identify unconverted PrijsCombi records, check whether an actual ShopToPrice relation exists on the canna card, and verify that the CLI replaces eligible hardcoded values with the correct JSON prices without changing the KindDetail endpoint scope.

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

Đánh giá

Lĩnh vực
backend, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

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.