-
Notifications
You must be signed in to change notification settings - Fork 132
Prepare release notes for upcoming 8.x-1.0-alpha6 release #699
Comments
Ready with the first draft. Unassigning. |
@pfrenssen when would you like to release this? |
I just checked https://github.com/Gizra/og/milestone/4 and it seems we are pretty close to release! It seems we just need 2 tickets merged and do some coding standards love. @claudiu-cristea has just now approved #692, and #693 is also in approved state even though some changes were done after the last approval. This is probably not blocking since it is a documentation issue. It is also not in the milestone, but since it is finished we can probably just merge it in and include it in the release. So those 2 can probably be merged, and then there are only the coding standards of #700. There is a false positive that affects a few of our "smart" lines of code, but I think it is OK to ignore the coding standards check for these lines, as long as we leave a comment there explaining why we are skipping the checks. |
@pfrenssen, all of these issues have been resolved and added to the release notes above:
@amitaibu, @pfrenssen, I created a draft release for 8.x-1.0-alpha6. |
I created the release on Github, see https://github.com/Gizra/og/releases/tag/8.x-1.0-alpha6 @amitaibu, can you push this on d.o? |
Thanks so much for handling this release! |
@MPParsley Awesome work, and great release notes. Release on d.o. will be published soon |
It's now available on https://www.drupal.org/project/og/releases/8.x-1.0-alpha6 Thank you guys! |
8.x-1.0-alpha6
This release adds support for Drupal 9.x and PHP 7.4, fixes a security vulnerability and has improved entity access.
There are some significant backwards compatibility breaks in this release, please refer to the dedicated section below.
Security fixes
New features
Improvements
GroupTypeManager::getAllGroupBundles()
with::getGroupMap()
t()
calls should be avoided in classes #543 Removet()
callsOgAccessHookTest
$ignore_admin
flag onOgAccess::userAccess()
#652 Remove$ignore_admin
flag onOgAccess::userAccess()
OgAccess::userAccess()
#654 Remove static cache inOgAccess::userAccess()
AssertLegacyTrait::assertOptionSelected()
is deprecatedOgMembership::preSave()
Bug fixes
OgAccess::userAccess()
doesn't differentiate between entity operations and group level permissions #659OgAccess::userAccess()
doesn't differentiate between entity operations and group level permissionsBackwards compatibility breaks
$ignore_admin
flag onOgAccess::userAccess()
has been removed. This was supported in D7 but barely used and it was currently unused in D8. Remove$ignore_admin
flag onOgAccess::userAccess()
#652administer group
permission has been renamed back to the originaladminister organic groups
since it was conflicting with a permission from the Group module. Rename 'administer group' permission to 'administer organic groups' #657OgAccess
were unintentionally processing both group level permissions and entity operations. These have now been split into separate methods. This is restoring the original access handling as it was designed for Drupal 7. SeeOgAccess::userAccess()
doesn't differentiate between entity operations and group level permissions #659 for the full low down.OgAccess::userAccess()
orOgAccess::userAccessEntity()
and passing an entity operation (e.g.update
,delete
, ...) instead of a group level permission (e.g.subscribe without approval
) should now callOgAccess::userAccessEntityOperation()
.OgAccess::userAccess()
and passing an entity operation (e.g.update
,delete
, ...) instead of a group level permission (e.g.subscribe without approval
) should now callOgAccess::userAccessEntityOperation()
.hook_og_user_access_alter()
hook implementations that are expecting the$context['permission']
data to contain an entity operation (such asupdate
ordelete
) rather than a permission (e.g.subscribe without approval
) will no longer be called. This code should instead be placed in an event subscriber that listens to theGroupContentEntityOperationAccessEvent::EVENT_NAME
event.$entity->access()
to check for group level permissions (e.g.subscribe without approval
) rather than an entity operation (e.g.update
,delete
, ...) was working before but was in violation of the Drupal API and will need to be replaced with a call toOgAccess::userAccess()
.GroupTypeManager::getAllGroupBundles()
was duplicating the functionality of two other methods and has been removed. All code that was calling::getAllGroupBundles()
without passing an argument should now call::getGroupMap()
. Code that was calling::getAllGroupBundles($type)
with an argument should now call::getGroupBundleIdsByEntityType($type)
. Remove getAllGroupBundles and replace with getGroupMap #402The text was updated successfully, but these errors were encountered: