Signalen / backend

Backend for Signalen, an application that helps cities manage and prioritize nuisance reports.

Home Page:https://signalen.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log registers status change while this did not happen

someren opened this issue · comments

commented

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?

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