owner/user are swapped in document fields
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Se un amministratore aggiunge un commento alla pagina di uno studente, il commento viene attribuito allo studente, non all'amministratore.
Il problema è che l'interfaccia per visualizzare i "document" è la stessa degli "attachment". Ma nei document bisognerebbe utilizzare "owner" invece che "user". Nel database i campi dovrebbero essere stati memorizzati correttamente.
Proposta:
rinominare document.user_id in document.student_id e rinominare document.owner_id in document.user_id.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by tracing how document and attachment fields are displayed and how document.user_id and document.owner_id are mapped, then verify the stored values before changing names. Done means administrator comments are attributed to the administrator while the student's identity remains distinct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100