-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
Don't put API calls in the upgrader #24364
Conversation
(Standard links)
|
In case the log disappears they're all this one in the stock preupgrade messages
|
@totten FYI there was some work done last year to make APIv4 calls upgrade-safe, because it filters values by |
retest this please |
Patch no longer applies. Github says yes, git says no. One of them is lying. |
9f1ffbe
to
d0b26d9
Compare
@demeritcowboy @colemanw I've rebased, and... it does pass now... though it's slightly deceptive, because |
I'm just wondering if it's too harsh to completely prevent it. For example one of them is just setting a setting, which ok could be a SQL query where you serialize it yourself, but it seems like the risks in using the function is low. Or some of them are ensureOptionValueExists(), which is intended to be used in upgrade scripts, so if that one's dangerous we should update that function. |
@totten What do you want to do with this one? Close for now as being too nuanced to be so strict? |
Since the last action here was to propose closing this in June I'm gonna do just that - I've opened a ticket to track it - https://lab.civicrm.org/dev/core/-/issues/4823 |
n/t