Mapper: Context is saved but the API never returns it, so the next save erases it
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- django, javascript, python
Hướng nghiên cứu
Start in core/map_projects/serializers.py and trace MapProjectSerializer, MapProjectDetailSerializer and the create/update serializer; then inspect MapProject.jsx to follow how Context is loaded and saved. Check whether Create similar copies configurations, including the configurations/ path named in the issue. Add coverage for saving Context, reading it after reload and saving again; done when the API returns the saved description and the round trip preserves it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found on production (API 2.3.227, Mapper 1.0.31-beta) on 2026-10-20 while preparing the OHDSI 2026 Mapper demo.
The Mapper's Context field (Configure) is stored in MapProject.description. MapProjectCreateUpdateSerializer accepts it, but no read serializer returns it:
core/map_projects/serializers.py:MapProjectSerializer.Meta.fields, and soMapProjectDetailSerializer, leave outdescription.MapProject.CONFIGURATION_FIELDSdoesn't include it either.- oclmap loads it with
setDescription(response.data?.description || '')(MapProject.jsx), so it always loads'', and every save sendsdescriptionback (formData.append('description', description)).
Reproduced on a project:
- Enter Context and save. The
map_projectsrow has the text. - Reload the project. Context is blank.
- Save again for any reason.
descriptionis now''in the database.
Every user who fills in Context loses it on the next save after a reload, with no warning.
Acceptance criteria
-
GETon a map project returnsdescription. - After a reload the Mapper shows the saved Context, and saving keeps it.
- Decide whether Create similar copies Context; if so, include it in
configurations/. - A test covers the save, read and save-again round trip.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenConceptLab/ocl_issues
-
component/fhir type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
OpenConceptLab/ocl_issues#3026 ·
-
component/api decision/human-review signal/needs-access signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OpenConceptLab/ocl_issues#3012 · 2 bình luận ·
-
component/design-system decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/docs
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
OpenConceptLab/ocl_issues#2983 · 1 bình luận ·
-
component/mapper decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenConceptLab/ocl_issues#2966 · 2 bình luận ·
-
component/mapper component/web decision/human-review signal/low-risk signal/needs-human signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
OpenConceptLab/ocl_issues#2920 · 1 bình luận ·
Tất cả issue của OpenConceptLab/ocl_issues
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
coder/claudecode.nvim#587 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
digitalbazaar/http-client#60 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fivetran/dbt_recurly#55 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
topmonks/hlidac-shopu#3687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug lane: fast
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
unicef/adt-studio#1109 ·
Maintainer thường phản hồi trong vòng 2 ngày