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

dev/report#90 - Don't crash search_kit on upgrade from 5.35 #22375

Merged

Conversation

demeritcowboy
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/report/-/issues/90
Running extension upgrades crashes if you upgrade search kit directly from 5.35 or earlier to 5.40 or later and have an existing search_display. Note that 5.35 was a security release so there are still lots of sites on 5.35 (http://stats.civicrm.org/?tab=sites)

Before

  1. Install 5.35.2 and enable search kit.
  2. Create a search with a display and save it.
  3. Upgrade to e.g. 5.44.0. The civi upgrade itself runs ok.
  4. Visit the system status page and run the extension upgrades.
  5. Error about "acl_bypass doesn't exist" because upgrade_1001 triggers something that doesn't exist until upgrade_1005.

After

Ok

Technical Details

While the right thing might be to do as suggested in https://docs.civicrm.org/dev/en/latest/framework/upgrade/#tips-prefer-simple-sql-semantics-over-apibaodao and rewrite the upgrade steps without using apis, this seems a simpler fix.

Comments

@civibot
Copy link

civibot bot commented Jan 5, 2022

(Standard links)

@civibot civibot bot added the master label Jan 5, 2022
@eileenmcnaughton eileenmcnaughton merged commit 366f44d into civicrm:master Jan 5, 2022
@demeritcowboy demeritcowboy deleted the searchkit-chicken-egg branch January 5, 2022 14:03
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.

3 participants