-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Upgrade script for dev/core#1046 #15556
Upgrade script for dev/core#1046 #15556
Conversation
(Standard links)
|
c043936
to
9649c2a
Compare
Rebased to resolve upgrade file conflict from yesterday's merges. |
@agh1 is this something you could test out? |
If it helps the steps for the simplest test would be:
If looking at the unit test, it looks like a lot of code but note that the only parts that are different in the |
@agh1 @demeritcowboy as the last piece of a chunk of work you have both collaborated on this needs to be in the same release (aka 5.20). I'm going to merge this now as it looks sensible, tested & in accordance with lengthy previous discussions & analysis. However, can you both please commit to doing a final round of testing on the rc on this upgrade & related changes? |
New phone who dis? |
it's the squirrels.... |
@agh1 and I ran some tests today and everything looked good to us. See specifics below: 1 - Created a site running civi version 5.13.5 (this is the version DaveD uses in his table)
3 - Created 2 case types: AND Case type 1046 which matches the case type described by Dave in the gitlab issue: 4 - Used the timeline tab to set up some auto assignees Case type beta - created in 5.18 AND Case type gamma - created in 5.18 7 - Went to the upgrade screen to upgrade to 5.20 got warnings about the role C1 having ambiguous configuration The upgrade applied cleanly, a warning was thrown for the scenario where the upgrade script could not figure out what to do, reasonable assumptions were made for the rest. No fatal errors, nothing broke. |
Thanks @alifrumin! |
@alifrumin yay - thanks for checking |
I did some more upgrade testing specifically with external xml files. I didn't see any blockers, but noting:
|
Overview
While the upgrade doesn't require this for day-to-day case operations to keep functioning as-is, converting the labels for the case roles listed in the xml to their name equivalents will prevent some future issues, and is required to make it fully functional when people make future configuration changes.
There are some edge cases where it's not possible to determine the correct replacement. These would normally show up in the status checks that are now present, but they might not see those for a while, so this includes pre-upgrade messages to list these warnings before the upgrade. These are hopefully pretty rare. They are:
Before
Possible future issues.
After
Possible future issues averted.
Technical Details
The tests I believe include at least one example of all the possible situations, and also tests non-ascii characters to simulate non-English.
Comments
This should be the last thing related to https://lab.civicrm.org/dev/core/issues/1046