Signalen / backend

Backend for Signalen, an application that helps cities manage and prioritize nuisance reports.
https://signalen.org
Mozilla Public License 2.0
5 stars 5 forks source link

Log registers status change while this did not happen #136

Open someren opened 3 years ago

someren commented 3 years ago

After changing the categorie of a signal, the log also registers that the status of the signal has been altered. This is incorrect and makes the logging unreliable. It is even impossible to change the status and categorie at the same time.

  1. Open a signal/ticket
  2. Click on the pensil to change the categorie
  3. Click on "Opslaan"
  4. The logging shows two new lines: a correct one with the categorie change and a faulty one with status change.

Opened a signal:

Logging status change 1

Changed the categorie (not status!) but logging shows otherwise:

Logging status change 2

Can you please fix this?

CBuiVNG commented 3 years ago

It turns out that the FE always sends out an status update 'm' along with the category update.

{"status":{"state":"m"},"category":{"sub_category":"http://localhost:8000/signals/v1/public/terms/categories/dieren/sub_categories/dood-dier"}}

So we honor the request, don't know if this is intentional