Admin can select the same role in the options section without effect
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The report identifies the organization membership detail endpoint, /api/organization-members/{membership_id}/, and the frontend organization membership resource. Start by tracing that resource's PATCH request into the backend handler and its tests. Done means selecting the current role does not save a redundant update or refresh updated_at; the issue itself says it is not open for contribution.
索引モデルが issue の本文から書いたものです。
説明
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: unstable
Observed behavior
In the role-selection options for a user, an admin can choose the same role the user already has. The UI sends a PATCH request to the organization membership detail endpoint. The request succeeds, but the user's role remains unchanged; the membership record is still saved and its updated_at timestamp is refreshed.
Errors and logs
No error is returned. The PATCH to /api/organization-members/{membership_id}/ returns HTTP 200 with the membership, even when the submitted role matches the existing role. The backend accepts the role and saves the membership rather than rejecting or skipping the redundant update.
Expected behavior
If the selected role matches the user's current role, the system should prevent the redundant update or clearly indicate that no role change is needed. A redundant selection should not be submitted and saved as an update.
User-facing consequences
This creates confusing UX and makes a redundant selection appear to have been applied even though the user's role did not change. It also refreshes the membership's update timestamp, which can make the record appear recently changed.
Steps to reproduce
- Sign in as an organization admin.
- Open the organization.
- Locate the SHARING section of an organization page.
- Select a user in the Users section to open their role options.
- Choose the same role that the user already has assigned.
- Observe that the PATCH request succeeds, the user's role remains the same, and the membership's update timestamp is refreshed.
Context
The frontend's organization membership resource sends the role update as a PATCH to the organization-members detail route. The backend accepts the unchanged role and saves the membership.
AI usage
The bugs were gathered by a human and later turned into issue descriptions with the help of an AI assistant. The assistant was used to draft the wording and structure of the report, and the final text was reviewed and adjusted for accuracy based on the supplied bug summary.
- 主要言語
- Python
- スター
- 192
- フォーク
- 310
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 71
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/studio のほかの issue
-
DEV: frontend P3 - low
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
learningequality/studio#5868 ·
メンテナーはふだん 1 日以内に返信
-
TAG: tech update / debt
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
learningequality/studio#2245 ·
メンテナーはふだん 1 日以内に返信
-
TAG: tech update / debt
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
learningequality/studio#6318 ·
メンテナーはふだん 1 日以内に返信
-
bug DEV: frontend P0 - critical
難易度 3/5 1〜2日 初心者へのやさしさ 22/100
learningequality/studio#6316 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
learningequality/studio#6315 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
learningequality/studio の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
infrastructure qa
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
khuisman/mcp-gee-sweet#1068 ·
メンテナーはふだん 1 日以内に返信
-
area:ecosystem documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Chelis-Lang/chelis#3866 ·
メンテナーはふだん 1 日以内に返信
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component mustオープンbug sev-3 vm
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
issue: Picking a prompt from the / menu in a channel inserts a command chip instead of the promptオープンbug confirmed issue
難易度 2/5 半日 初心者へのやさしさ 78/100
open-webui/open-webui#32712 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信