- Issue created by @kristiaanvandeneynde
- 🇧🇪Belgium gorkagr
Hi!
Thanks a lot for the roadmap :)Maybe
Stop saving an entity when it gets added to a group
is linked to #3057483 (core) 📌 [PP-2] Better describe how SynchronizableInterface should be used for content entities Needs work and/or #2872697 (group) → / #3478088 (group) 🐛 Group relationship saving/deletion resaves entities without using ::setSyncing() ActiveBest
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
Uh yeah, there's an issue for that one already I just had to find it :) Thanks
- heddn Nicaragua
I thought I saw that
Disallow automatic membership outside of form approach
already made it in. Can we confirm?
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
From Group:
/** * {@inheritdoc} */ public function postSave(EntityStorageInterface $storage, $update = TRUE) { parent::postSave($storage, $update); // If a new group is created and the group type is configured to grant group // creators a membership by default, add the creator as a member unless it // is being created using the wizard. // @todo Deprecate in 8.x-2.x in favor of a form-only approach. API-created // groups should not get this functionality because it may create // incomplete group memberships. $group_type = $this->getGroupType(); if ($update === FALSE && $group_type->creatorGetsMembership() && !$group_type->creatorMustCompleteMembership()) { $values = ['group_roles' => $group_type->getCreatorRoleIds()]; $this->addMember($this->getOwner(), $values); } }
- 🇧🇪Belgium gorkagr
I have opened https://www.drupal.org/project/group/issues/3494986 🐛 Review DI in classes and their construct methods Needs work to check the DI in controllers there (and maybe the __construct methods) :)
Best
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
Added to the list, along with "Drop constructor documentation and use property promotion where possible"
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
Added a kickass idea for a new editorial workflow