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

[code-quality] [jcalendar] remove jcalendar usage from participant_register_date on event search #14330

Merged
merged 2 commits into from
Jun 1, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This removes one more place where legacy jcalendar is used.

Before

Deprecated pattern used

After

preferred pattern used

Technical Details

There is actually still one left on the form (event date)
which I left out for now as it involves thinking about the fact event is a different entity & might warrant different representation in the arrays

Comments

@seamuslee001 @mattwire @colemanw maybe one last push will rid us of that pesky jcalendar....

@civibot
Copy link

civibot bot commented May 25, 2019

(Standard links)

@civibot civibot bot added the master label May 25, 2019
@seamuslee001
Copy link
Contributor

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 sigh - and I'm the one that wants to make it stricter!

This only converts one field (participant status) but lays the ground-work for converting more &
removing the jcalendar
…event search

This removes one more place where legacy jcalendar is used. There is actually still one left on the form (event date)
which I left out for now as it involves thinking about the fact event is a different entity & might warrant different
representation in the arrays
@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 @mattwire @colemanw so I think when converting these fields there are a few gotchas ./ things to check

  1. does a smart groups still work if it has been upgraded
  2. do the dates stay relative - in the brave new world the saved form values should look like
         [participant_register_date_relative] => this.month
                            [participant_register_date_low] => 
                            [participant_register_date_high] => 

But without this hack it was saving the resolved date - which we would expect to create issues like https://lab.civicrm.org/dev/core/issues/389

I would ideally like to get this one merged before the next rc is cut

@eileenmcnaughton
Copy link
Contributor Author

test this please

@mattwire
Copy link
Contributor

mattwire commented Jun 1, 2019

Tested and works here

@mattwire mattwire merged commit 892614b into civicrm:master Jun 1, 2019
@eileenmcnaughton eileenmcnaughton deleted the jcalendar branch June 1, 2019 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants