Invalid geozone creation in Traccar 5.10

Alex Meléndez5 months ago

When you create a geofence from a device's popup box (circle geofence) it does not wait for confirmation, even if you click "Cancel" it creates the geofence anyway.

Example clicking Cancel:

2024-01-02 17:03:05  INFO: user: 1, action: create, object: geofence, id: 107
2024-01-02 17:03:05  INFO: user: 1, action: link, owner: user, id: 1, property: geofence, id: 107
2024-01-02 17:03:05  INFO: user: 1, action: link, owner: device, id: 14, property: geofence, id: 107

Example by writing a geofence name and clicking save:

2024-01-02 17:03:31  INFO: user: 1, action: create, object: geofence, id: 108
2024-01-02 17:03:31  INFO: user: 1, action: link, owner: user, id: 1, property: geofence, id: 108
2024-01-02 17:03:31  INFO: user: 1, action: link, owner: device, id: 14, property: geofence, id: 108
2024-01-02 17:03:36  INFO: user: 1, action: edit, object: geofence, id: 108

Is this the expected behavior? I think clicking "Cancel" should cancel the creation of the geofence.

Anton Tananaev5 months ago

Yes, it creates the geofence immediately and then lets you edit its name etc.

Alex Meléndez5 months ago

Just as a usability comment, several of the users I have when touching the options accidentally create these circle geofences and when clicking Cancel they leave the geofence without a name, then they begin to receive notifications of entry or exit of that geofence but without name, this creates confusion.
I would suggest that clicking Cancel would cancel the geofence so that users voluntarily (not accidentally) create and name the geofence.
By the way, happy new year Anton!

Anton Tananaev5 months ago

Makes sense. Feel free to submit this request on github.