Use of Vehicle Status as a set #292
Closed
bevans2000
started this conversation in
General
Replies: 2 comments
-
Yes we need to organize these flags. Q1: what's a "double UI event" ?
Yes I agree. In that case, don't need a set. Q2: any merit to have MAINTENANCE, UNDER_REPAIR, etc. ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
When the ui receives 2 event changes.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The status of a Vehicle is a set of status. I have noticed that this is causing a potential double UI event when changing from PARKED to MOVING. PARKED is remove first and then MOVING is added.
It seems that the status that represent the state of the Vehicle and mutually exclusive (PARKED, GARAGED, MOVING, STUCK) and would be better represented as a primary State field. The other states such as TOWING, TOWED etc are secondary status modifiers and these should be held in a set value.
Beta Was this translation helpful? Give feedback.
All reactions