threescomplement / pap-projekt

Programowanie Aplikacyjne 2023Z - projekt
https://pap.mgarbowski.pl
Other
3 stars 0 forks source link

186 keep resolved reports backend #188

Closed MichLuszcz closed 8 months ago

MichLuszcz commented 9 months ago

Keep resolved reports in the database with a timestamp, method of resolving and the username of the admin responsible. Happens when marking content as ok (resolvedMethod = "Discarded") or when deleting the reported entity ("Content deleted")

MichLuszcz commented 9 months ago

Aktualnie brakuje testów nowych funckjonalności, ale stare zostały zmienione żeby odpowiadać nowemu endpointowi do pobierania wszystkich zgłoszeń z bazy (/api/admin/reports/all) i jeden z DummyData reportów został zmieniony na resolved żeby sprawdzić tego działanie