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

optimize ProcessListVRS to reuse existing Hours if possible. Issue #154 #223

Merged
merged 10 commits into from
Dec 5, 2016

Conversation

davidhabib
Copy link
Contributor

@davidhabib davidhabib commented Nov 28, 2016

Critical Changes

Changes

  • The scheduler has been optimized to only evaluate future Volunteer Shifts when processing Job Recurrence Schedules and Volunteer Recurrence Schedules, rather than also evaluating past Volunteer Shifts.

  • The scheduler will now reuse existing Volunteer Hours when processing Job Recurrence Schedules and Volunteer Recurrence Schedules. For Volunteer Hours that already exist on past Volunteer Shifts, the Volunteer Hours will be left alone and no fields, including Status, will be changed. For existing Volunteer Hours on future Volunteer Shifts, fields will be updated as specified in the Volunteer Recurrence Schedule.

Issues Closed

Fixes #154
Fixes #208

@davidhabib
Copy link
Contributor Author

davidhabib commented Nov 28, 2016

make sure to look at the diff with ?w=0 to ignore whitespace/tab changes

@davidhabib
Copy link
Contributor Author

@njjc @jjbennett This pull request is ready for review. I've added a bunch of new tests to make sure VRS's and JRS's act as expected. This is a non-trivial code change, so I wonder if we want to set up a meeting to review the code together, rather than just looking at these diffs. If we meet, probably worth having both of you involved.

@njjc
Copy link
Contributor

njjc commented Dec 5, 2016

@davidhabib Ran a few manual tests and everything seems to function as advertised. This would be a great feature for @jessingrass to put through the wringer at some point.

@njjc njjc merged commit 8cc81ad into master Dec 5, 2016
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.

3 participants