update_issue can't change issue priority

Đang mở
#2,154 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/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ệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Start with packages/mcp-core/src/tools/catalog/update-issue.ts to trace the input schema and handler, then follow the request through packages/mcp-core/src/api-client/client.ts and the referenced Sentry API priority handling. Add priority support to the update path and account for the API's 400 response when the issue type disallows manual priority changes. Done when an agent can set low, medium, or high priority without changing status or assignment, and unsupported issue types return a clear error.

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

Mô tả

update_issue has no priority input, so agents can't set an issue's priority (low/medium/high) without also changing status or assignment. Reported through MCP user feedback (Cursor, server 0.42.0): an agent asked to set an issue's priority to low was blocked.

  • The input schema has no priority field (packages/mcp-core/src/tools/catalog/update-issue.ts:908-925), and the handler rejects any call without status or assignedTo (update-issue.ts:951-955; hint at :896).
  • ApiService.updateIssue doesn't send priority either (packages/mcp-core/src/api-client/client.ts:4114-4140).
  • The Sentry API already supports it on the issue PUT endpoint: GroupValidator.priority is a ChoiceField over PriorityLevel (getsentry/sentry src/sentry/api/helpers/group_index/validators/group.py:53-60), and update_groups applies it with handle_priority, which also sets priority_locked_at (src/sentry/api/helpers/group_index/update.py:256-270, :1021-1037).
  • The API returns 400 "Cannot manually set priority of one or more issues." for issue types without enable_user_status_and_priority_changes (update.py:257-263).

Feedback: MCP-SERVER-GND

via Sentry.

--

View Session [Sentry]

Ngôn ngữ chính
TypeScript
Star
961
Fork
179
Merge trung bình
15 giờ 33 phút
Pull request đã merge (30 ngày)
476

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 getsentry/toolkit

Tất cả issue của getsentry/toolkit

Issue tương tự

Thêm issue về TypeScript

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.