Discussion reply notifications show the real name of an anonymous replier

Aperta Adatta ai principianti
#2,403 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia da discussion-student.component.ts, in sendPostToStudentsInThread alle righe 259-266, dove il testo della notifica viene costruito a partire da getUsernamesByWorkgroupId. Trova il flag di anonimizzazione del componente e confronta come la vista della discussione sceglie il nome anonimo, poi fai in modo che la notifica ometta il nome di chi risponde quando l'anonimizzazione è attiva. È completato quando una notifica di un thread anonimizzato risulta generica, mentre le notifiche non anonimizzate continuano a indicare il nome di chi risponde.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

With "Anonymize responses" enabled, a student who replies in a thread is shown under an anonymous name in the discussion, but the notification sent to the thread's other participants names them.

How to reproduce

  1. Author a Discussion with "Anonymize responses" enabled.
  2. Student A posts; student B replies to A's post.
  3. As student A, open the notifications menu.

The notification reads "<B's real name> replied to a discussion you were in!".

Cause

DiscussionStudentComponent.sendPostToStudentsInThread (discussion-student.component.ts lines 259 to 266) builds the message from getUsernamesByWorkgroupId without checking whether the component is anonymized. The real name is also stored in the notification's message on the server.

Possible fix

When the component is anonymized, leave the name out ("Someone replied to a discussion you were in!") or use the anonymous name. Leaving it out avoids depending on the anonymous name being the same for every viewer, which it currently is not (#2393).

Lingua principale
TypeScript
Stelle
4
Fork
8
Merge medio
3g 8h
PR unite (30g)
12

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WISE-Community/WISE-Client

Tutte le issue di WISE-Community/WISE-Client

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.