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

Fix upgrade on participant_register date #14427

Merged
merged 1 commit into from
Jun 6, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 5, 2019

Overview

On testing I found the conversion routing on participant register date wasn't working properly when
upgrading to 5.15 - this fixes

Before

Jcalendar groups are stored with hard-date formatted fields in participant_register_date_low & high and then a relative format in the relative dates array

After

For relative dates relative_dates array & the high & low fields should be empty. participant_register_date_relative should be handled

Technical Details

@seamuslee001 can you take a look at this - it could be a potentially regression about to hit 5.15 if not resolved before it's cut but my brain has stopped processing it. I have lot of groups & they have names which meant something once but now I can't figure out whether old new smartgroup should be the same as 'a bit newer group' or more like 'old group but not as old as old group'

Comments

@mattwire I think you merged the upgrade but I guess neither of us tested well

@civibot
Copy link

civibot bot commented Jun 5, 2019

(Standard links)

On testing I found the conversion routing on participant register date wasn't working properly when
upgrading to 5.15 - this fixes
@seamuslee001
Copy link
Contributor

I have tested this i created 2 smart groups 1 with an explicit date range and one with a relative date range, I then switched the code and confirmed that loading the form to update the smart group was broken for both, then ran the db upgrades, confirmed that the upgrade correctly restored the register date fields

@seamuslee001 seamuslee001 merged commit d7dd560 into civicrm:master Jun 6, 2019
@eileenmcnaughton
Copy link
Contributor Author

thanks @seamuslee001 that was playing on my mind

@eileenmcnaughton eileenmcnaughton deleted the search_upgrade branch June 6, 2019 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants