Wrong store traffic lights if people leave slots
Summary
Stores seem to have a lower or no pickup marker ("traffic light") even if there are free slots in the next few days. This might be caused by slots from which people signed out again.
The tickets seem to indicate, that the pickup marker does not appear as promised.
-
It should be checked if maybe the slots are seen as 'filled' in the code, if one out of many slots in the same time frame is taken. -
It should be checked if maybe the code works differently for fair share points. ... that's not the case. -
This issue might need to be reproduced so we can narrow down the error.
Steps to reproduce
- Create multiple Slots for a store on different dates (say: three per date)
- Fill one slot each and check the store marker afterwards
- Fill all slots for today and check the store marker
- delete slots that were filled and check the store marker for changes in behavior
What is the current bug behavior?
Low level of the marker (yellow, orange)
What is the expected correct behavior?
Currently: `There is a red light when there are free slots today or tomorrow; an orange light for empty slots in 'today+1' to 'today+3' days and a yellow light for empty slots in 'today+3' to 'today+5' days. Example: The next slot to be filled is in 4 days. Then a yellow warning light is shown - unless you have already taken over a slot from the row. Then this date is not taken into account for your warning light.
If there are no free slots left in the near future, there will be no traffic light display.
The traffic light markers are also explained when you move the mouse over the traffic light symbol.` (explanation from the release notes)
Higher / correct marker
Relevant error messages and/or screenshots
Freshdesk tickets:
https://foodsharing.freshdesk.com/a/tickets/286
"It seems that no traffic light is shown for stores where there are open pick-up slots but some of the slots are already covered; for example, bakery pick-up on Sunday, one out of two slots is occupied, but no red dot is shown in the overview list."
-> some slots, not all, are occupied -> no marker although one was expected
https://foodsharing.freshdesk.com/a/tickets/406 "When I call up my store overview on the PC, I am not shown a correct traffic light display for my own businesses, but only for those where I am "only" Foodsaver. If I call up the same on my cell phone (not in the beta version), it will be displayed correctly for all stores." -> difference between PC and cell phone
https://foodsharing.freshdesk.com/a/tickets/476