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

BAO - Deprecate setIsActive BAO functions #25976

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Apr 2, 2023

Overview

Sprinkles a garnish of deprecation annotations and notices to the copypasta function setIsActive which infest the BAO like meatballs on spaghetti code. 🍝 🧀

Before

Functions exist, mostly unused outside of unit tests

After

Functions still exist, but annotated @deprecated. The unused ones are given noisy deprecations.

@civibot
Copy link

civibot bot commented Apr 2, 2023

(Standard links)

@civibot civibot bot added the master label Apr 2, 2023
@colemanw colemanw force-pushed the deprecateSetIsActive branch from 2a0710c to f280e26 Compare April 2, 2023 00:47
@colemanw colemanw force-pushed the deprecateSetIsActive branch from f280e26 to e9d6557 Compare April 2, 2023 20:09
*/
public static function setIsActive($id, $is_active) {
Civi::cache('fields')->flush();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this could cause them not to flush but OTOT it is deprecated...

@eileenmcnaughton
Copy link
Contributor

Yep - they all look good.

Cloudy with a chance of meatballs

@eileenmcnaughton eileenmcnaughton merged commit c7cee01 into civicrm:master Apr 2, 2023
@eileenmcnaughton eileenmcnaughton deleted the deprecateSetIsActive branch April 2, 2023 23:52
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.

2 participants