Skip to content
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

Support for multiple mealtime schedule #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shelemiah
Copy link
Contributor

Change the logic to initially assume all mealtime schedules assigned to an item is unavailable. Then test if any of them are actually available using isAvailableSchedule().

This approach will allow items with multiple mealtime schedules assigned to available even if one schedule is unavailable.

Change the logic to initially assume all mealtime schedules assigned to an item is unavailable. Then test if any of them are actually available using isAvailableSchedule().

This approach will allow items with multiple mealtime schedules assigned to available even if one schedule is unavailable.
@ryanmitchell
Copy link
Owner

I think to preserve backwards compatability it should check if there are any mealtimes - if so set to unavailable and then check. Otherwise it should set to available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants