-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distinguish user status and machine status #230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a super super useful feature, really love this effort! Good idea also to display a message when the status button is tapped.
I think we have to take care of some things to avoid a mess:
- If we change the type of the "active" attribute, we should do this consistently within all/server-locations in the same PR. Maybe we actually just remove the attribute and add a new one called "machine_status" with option as described here. For now we dont use "out-of-order" but we will populate this over time.
- Regarding 1) We can already change this attribute in all/server locations and once users download the new version they will have the new features. Users with the old version dont have the feature, but I dont see a reason why this should create issues with backwards compatibility (server-locations will also be reloaded!)
- Regarding 2) Good catch, agreed!
- Regarding 3) I disagree that this is a good strategy, see my comment in the code. The user status can still be visited or marked even if machine status is retired/OOO
- Regarding 4) I dont see your problem because the user status will always default to "unvisited". It cant be "retired" (as per my other comment), so this problem does not exist. If the machine is retired and the user selects "visited" the pin will be green, if the user then un-visits the machine and selects "unvisited" again, we just have to make sure to display it in gray and not in red (as I had described in my original comment)
I will make the other changes regarding naming etc later, and agree to your points, but just about this: What you're suggesting is that we color all the pins according to the Regarding the renaming of all attributes in all/server_locations, from my side it's not necessary - I don't get your comment |
Ok Great! Regarding the change in the JSON files, sorry, I get it now. I'll include the changes in one of the next machine-update PRs. Because also the location differ will have to be adapted slightly (I'm taking care) |
I adapted the field names and in order to test it, I now already changed the all_locations and server_locations. I removed the The colouring of the pins and everything works fine now in my tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good I think we're almost done just:
- there's a merge conflict now (we can stall the other open PR Backend refactors #232 behind this) but we still need to resolve the conflict, it probably affects the machines changed in Updates from website (server_locations) #231
- The updated json files have lots of machines where "machine_status" is retired but "status" is also
retired
. I thought we leave this to "unvisited" because it denotes the personal collection status. (At this point, we could even consider removing this attribute entirely, right?)
Regardign the merge conflict, I would suggest to undo my changes in the |
This is how the proposed solution works: