Skip to content

Provide Person-centric Group management; includes subnavigation refactoring (CFM-291) #367

Merged
merged 3 commits into from
Mar 13, 2026

Conversation

arlen
Copy link
Contributor

@arlen arlen commented Feb 11, 2026

This PR provides Group management from the Person view:
image

This PR also refactors subnavigation handling so that all subnavigation tabs are now configured at the view level in fields.inc or columns.inc.

@arlen arlen force-pushed the feature-cfm291-personGroupMemberships branch from b2c6239 to 80ca5d9 Compare March 12, 2026 18:24
Copy link
Contributor

@Ioannis Ioannis left a comment

Choose a reason for hiding this comment

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

LGTM

@arlen arlen merged commit 2a37581 into COmanage:develop Mar 13, 2026
@arlen arlen deleted the feature-cfm291-personGroupMemberships branch March 13, 2026 16:53
Comment on lines +51 to +61
public function beforeRender(EventInterface $event) {
$link = $this->getPrimaryLink(true);

if(!empty($link->value)) {
$this->set('vv_bc_parent_obj', $this->FileProvisioners->ProvisioningTargets->get($link->value));
$this->set('vv_bc_parent_displayfield', $this->FileProvisioners->ProvisioningTargets->getDisplayField());
$this->set('vv_bc_parent_primarykey', $this->FileProvisioners->ProvisioningTargets->getPrimaryKey());
}

return parent::beforeRender($event);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We seem to be adding a bunch of copy/paste boilerplate to plugins for logic that should instead be dynamically calculated in a parent controller (ie: StandardPluginController) or possibly a Trait. It looks like we're trying to render the breadcrumbs like

ProvisioningTargets > FileProvisioners

but for the most part we can determine our parent object via getPrimaryLink and then automatically inflect that and inject the appropriate breadcrumb without needing to hardcode this in every plugin controller. (There may be a small number of exceptions that need to be hand crafted, but those should be the exception, not the rule.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Indeed, there actually already seems to be similar logic in StandardPluginController::beforeRender (and StandardEnrollerController), so why are we not using/updating that?

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants