environments/state: detached HEAD returns 409, so environments can't be listed at a tag or commit
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ó
- 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
Hướng nghiên cứu
Start with pkg/api/environment_state.go, especially environmentGitState at lines 122–124, and trace how detached HEAD state becomes ENVIRONMENT_REVISION_CONFLICT. Check the existing environment state tests and the app contract described in the issue. Done means the endpoint returns state with canWriteOrder and canCreateEnvironment false and a reason for detached HEAD, while still allowing environments to be listed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug. GET /datatug/environments/state answers 409 ENVIRONMENT_REVISION_CONFLICT for any project checked out at a detached HEAD (environmentGitState, pkg/api/environment_state.go:122-124, v0.113.0).
Effect for users. Someone serving a project at a tag or a specific commit can't list environments at all. The DataTug app's Environments page shows "Could not load environments. Refresh to try again." Refreshing never helps.
Expected. A read should never fail because of the checkout state. Return the state read-only: canWriteOrder: false and canCreateEnvironment: false, with a reason such as "This project is checked out at a commit, not a branch". The app already shows those reasons (datatug-apps branch env-contract-gate).
Found by the datatug-apps journey e2e. Its pinned demo checkout is detached, and CI now works around this with git switch -c demo-agent.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Go
- Star
- 1
- Fork
- 0
- Merge trung bình
- 7 giờ 18 phút
- Pull request đã merge (30 ngày)
- 181
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 datatug/datatug-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
datatug/datatug-cli#261 ·
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 84/100
datatug/datatug-cli#256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Handle dal.IsNullCondition (isNull / isNotNull) in chat joins, access policies and compare-factsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
datatug/datatug-cli#316 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
datatug/datatug-cli#262 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
datatug/datatug-cli#247 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của datatug/datatug-cli
Issue tương tự
-
bug from-studio
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
esengine/DeepSeek-Reasonix#14868 ·
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 80/100
project-zot/zot#4636 ·
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 76/100
keyxmakerx/Chronicle#1911 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Could not paste in search fieldĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eugenioenko/ttt#1293 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs/area needs/kind needs/priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày