willn / go_meals_scheduling

Great Oak Meals Scheduling
MIT License
0 stars 1 forks source link

On the availability summary report, show non-responders on each date #7

Closed willn closed 8 months ago

willn commented 5 years ago

Currently when someone doesn't fill in their survey, they get something between avoid and OK, like a .5 score or something. These names ought to be displayed in the calendar dates in the summary report to make finding trades easier... in fact, their names should probably be highlighted as being a "pinch hitter", someone who can be moved anywhere that's needed.

willn commented 5 years ago

This is still a great idea, however it will take some effort. Currently, the preferences that are displayed only show what was written to the database. There is a Worker->addNonResponsePrefs() method which only modifies the number of shifts that need to be filled... aka for the auto-assignment routine, not for the reporting side.

willn commented 2 years ago

I still believe this would be a really helpful feature.

willn commented 9 months ago

This would save a lot of time, particularly if we can mark these folks as being capable of being used anywhere.

willn commented 9 months ago

It appears that the raw list of data is generated by a SQL request in Calendar::getWorkerDates(). This data is returned effectively as the raw results.

There is a Roster::addNonResponderPrefs(), which calls Worker::addNonResponsePrefs(), and loads that into the established data structures.

These would need to be weaved together in order for them to make sense.

willn commented 8 months ago

solved with this MR https://github.com/willn/go_meals_scheduling/commit/033f3bf6fe98ec13e50b466668f86d5f0eaaa9c4