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

[REF] extract function to get locks #20373

Merged
merged 1 commit into from
May 22, 2021
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 21, 2021

Overview

[REF] extract function to get locks

Before

The load() function is the heart of the groupContactCache - but other functions work quite hard to call it because it accepts a BAO as a parameter in order to get a single group ID. This extracts part of the function into a more re-usable chunk

After

Sadly a lot of indentation change - use w=1 to view

This is part of trying to make the logic more re-usable and make the
way of dealing with a single group more aligned with dealing with
multiple groups in this class

Technical Details

Comments

Test cover in CRM_Contact_BAO_GroupContactCacheTest - testManualAddRemove is a good one to step through the code via

@civibot
Copy link

civibot bot commented May 21, 2021

(Standard links)

This is part of trying to make the logic more re-usable and make the
way of dealing with a single group more aligned with dealing with
multiple groups in this class
@seamuslee001
Copy link
Contributor

This seems fine to me

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