dev/core#832 CiviCase: rebuild case activity views during upgrade #14139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This triggers a rebuild of the case activity SQL views during upgrade since they were edited in #14086.
Before
The definition of the
civicrm_view_case_activity_upcoming
andcivicrm_view_case_activity_recent
views has changed for 5.14, but they won't get updated unless someone turns CiviCase off and on again.After
Upgrading to 5.14 will upgrade the views.
Technical Details
Here are the views:
civicrm-core/CRM/Case/BAO/Case.php
Lines 2966 to 2997 in b632d5e
#14086 updated the views so that they pull the activity with the id matching the earliest upcoming scheduled activity (or most recent activity that isn't scheduled) on each case. Before, it would pull activities matching that activity's date--potentially yielding multiple activities per case in each view if they have the same date.
Comments
See dev/core#832