Unipisa / Unipisa/caps

owner/user are swapped in document fields

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.