Admin can select the same role in the options section without effect
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
❌ 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.
- Lingua principale
- Python
- Stelle
- 192
- Fork
- 310
- Merge medio
- 2g 17h
- PR unite (30g)
- 69
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateApertaDEV: frontend P3 - low
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
learningequality/studio#5868 ·
I maintainer di solito rispondono entro 1 giorno
-
TAG: tech update / debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
learningequality/studio#2245 ·
I maintainer di solito rispondono entro 1 giorno
-
bug DEV: frontend P0 - critical
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
learningequality/studio#6316 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
learningequality/studio#6315 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 1-2 giorni Idoneità per principianti 25/100
learningequality/studio#6314 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di learningequality/studio
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine-us#10262 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
kellyjonbrazil/jc#788 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
`/search.json` ignores the documented `editions.sort` parameterForse già presa @PranavD2905 l’ha presa oggi. ApertaAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
internetarchive/openlibrary#13989 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2: misleading query
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jeffknupp/association#478 ·