Make the fid / primary key field read-only in feature forms
Maintainer thường phản hồi trong vòng 2 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
- 52/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ệ
- cpp
- Lĩnh vực
- backend-api-design, mobile
Hướng nghiên cứu
Start by tracing how QGIS layer primary key fields are represented in feature forms for adding, editing, and multi-feature editing; the issue does not name files or tests. Check the existing related behavior in #4580 and the QGIS form configuration handling. Done means primary keys stay read-only with the specified values and styling across these cases, while hidden fields and relation-created child features retain their stated behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current situation
Template projects hide fid, but if the author sets the primary key widget to an editable type (e.g. Text Edit), the mobile app lets surveyors change it. This can break relations and cause sync conflicts. In multi-feature editing, fid also shows as empty instead of * Mixed Values * (#4580).
Solution
Always make the layer's primary key field(s) read-only in the form, whatever the field name or widget type. Visibility still follows the QGIS form configuration.
Acceptance criteria
- The primary key field is read-only in the feature form, regardless of the widget type set in QGIS
- Applies to any primary key field, not only fields named
fid - Applies when adding a new feature, editing an existing one and editing multiple features
- On a new feature, the field shows
Autogenerateand is not validated as user input, so no constraint error blocks saving - On an existing feature, the field shows the current value
- In multi-feature editing, the field shows
* Mixed Values *like other fields, and cannot be edited (closes #4580) - If the field is hidden in the QGIS form configuration, it stays hidden
- Read-only styling matches other non-editable fields in the app
- Child features created through relations get their primary key generated as before
Related issues
- #4580
- #1694
- #1745
- Ngôn ngữ chính
- C++
- Star
- 394
- Fork
- 91
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 16
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 MerginMaps/mobile
-
Sign up button opens the Sign in page instead of the Sign up page for Enterprise edition serversĐang mởauth bug ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MerginMaps/mobile#4795 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MerginMaps/mobile#4786 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bluetooth bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
MerginMaps/mobile#4741 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
MerginMaps/mobile#4669 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug Good first issue ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MerginMaps/mobile#4665 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của MerginMaps/mobile
Issue tương tự
-
Issue-Docs Needs-Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
microsoft/winget-cli#6692 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stratum-mining/sv2-tp#167 ·
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 68/100
HarperFast/rocksdb-js#1118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
26.04 bug dark-mode Easy Hack impress symptom: visual
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CollaboraOnline/online#16421 · 1 bình luận ·