Skip to content

Releases: Gizra/og

8.x-1.0-alpha10

21 Nov 09:21
213a9c1
Compare
Choose a tag to compare

Changes

#754: Add support for Drupal 10.

8.x-1.0-alpha9

05 Oct 06:00
a808daa
Compare
Choose a tag to compare

Fixed

Full Changelog: 8.x-1.0-alpha8...8.x-1.0-alpha9

8.x-1.0-alpha8

26 Aug 13:52
406a715
Compare
Choose a tag to compare

Changes

  • #732: Add support for Drupal 9.3
  • #747: Remove support for Drupal 9.2
  • #729: Drop custom cache handling
  • #728: Drop support for Drupal 8 which is now End of Life
  • #746: Upgrade to coder 8.3

Bug fixes

  • #731 & #709: Revert fix now #2730631 is in core
  • #727: Use the RouteProviderInterface
  • #739: Fix OgMembership::getCreatedTime
  • #740: Pending and Blocked users are not removed on user delete.

Known issues

  • #736: Access to Revisions of Group content is broken

8.x-1.0-alpha7

04 Oct 06:52
f41da3f
Compare
Choose a tag to compare

New features

  • #231: Add UI for adding, editing, and removing group memberships
  • #723: Add support for Drupal 9.2

Bug fixes

  • #704: Remove any null values when building the list of target groups
  • #709: Fix error when resolving the entity on entity.node.revision route
  • #724: Remove config hash

Backwards compatibility breaks

  • #721: Remove support for Drupal 8.7

8.x-1.0-alpha6

22 Apr 11:17
ac73d77
Compare
Choose a tag to compare

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

  • #694 Users should not be able to subscribe to closed groups

New features

  • #672 Provide dedicated methods to check for access on group content entity operations
  • #674 Provide "delete" entity operation access checks on group entities
  • #675 Provide a hook for altering access on group content entity operations

Improvements

  • #402 Replace GroupTypeManager::getAllGroupBundles() with ::getGroupMap()
  • #543 Remove t() calls
  • #640 Support Drupal 9.0
  • #641 Drupal 9.0 compatibility: Use PHPUnit 7 for Drupal 9 builds
  • #648 Remove dead code in OgAccessHookTest
  • #649 Drop support for Drupal 8.7.x
  • #650 Support Drupal 9.1
  • #651 Switch CI integration to Github Apps
  • #652 Remove $ignore_admin flag on OgAccess::userAccess()
  • #654 Remove static cache in OgAccess::userAccess()
  • #657 Rename 'administer group' permission to 'administer organic groups'
  • #662 Drupal 9.1 compatibility: AssertLegacyTrait::assertOptionSelected() is deprecated
  • #663 Drupal 9.1 compatibility: Do not fail 9.x builds on deprecation warnings
  • #665 Drop support for PHP 7.1
  • #667 Drupal 9.1 compatibility: Function ReflectionType::__toString() is deprecated
  • #668 Use PHPUnit 7 for all builds
  • #677 Add support for PHP 7.4
  • #682 OgRoleInterface now extends RoleInterface
  • #685 Clean up OgMembership::preSave()
  • #688 Adopt the strict types declaration
  • #690 Update SPDX licence identifier to the correct format
  • #697 Document why we are doing an interface check
  • #693 Document how OG handles access and permissions

Bug fixes

  • #643 Other groups field ignoring bundles settings
  • #659 OgAccess::userAccess() doesn't differentiate between entity operations and group level permissions
  • #666 Fix grammar
  • #670 Remove obsolete service definition
  • #671 User access check should no longer accept operations, only permissions
  • #692 Permission based access checks should return neutral if a permission is not granted
  • #700 Fix PHP CS issues
  • #720 Fix GroupSubscribeTest::testSubscribeAccess

Backwards compatibility breaks

  • Support for PHP 7.1 has been dropped. There is at the moment no new code added that requires PHP 7.2 or higher, but we have stopped supporting and testing PHP 7.1. #665
  • The $ignore_admin flag on OgAccess::userAccess() has been removed. This was supported in D7 but barely used and it was currently unused in D8. #652
  • The administer group permission has been renamed back to the original administer organic groups since it was conflicting with a permission from the Group module. #657
  • Some methods in OgAccess 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. See #659 for the full low down.
    • Any code that was calling into OgAccess::userAccess() or OgAccess::userAccessEntity() and passing an entity operation (e.g. update, delete, ...) instead of a group level permission (e.g. subscribe without approval) should now call OgAccess::userAccessEntityOperation().
    • Any code that was calling into OgAccess::userAccess() and passing an entity operation (e.g. update, delete, ...) instead of a group level permission (e.g. subscribe without approval) should now call OgAccess::userAccessEntityOperation().
    • Any hook_og_user_access_alter() hook implementations that are expecting the $context['permission'] data to contain an entity operation (such as update or delete) 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 the GroupContentEntityOperationAccessEvent::EVENT_NAME event.
    • Any code that was calling into $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 to OgAccess::userAccess().
  • The method 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). #402
  • Support for Drupal 8.7 has been dropped #649

8.x-1.0-alpha5

26 Mar 20:20
b15d8ec
Compare
Choose a tag to compare

Fifth alpha release for Organic Groups. This release adds support for Drupal 8.9 and is removing deprecated code in preparation for Drupal 9.

Improvements

  • #513 Add OgAccessInterface::userAccessGroupContentEntityOperation
  • #544 Namespace all dependencies
  • #545 Remove unused variables
  • #546 User::load() calls should be avoided in classes
  • #547 \Drupal calls should be avoided in classes
  • #548 Remove @ExpectedException tags
  • #549 Check for undefined variables
  • #550 Global constants should not be used
  • #580 Deprecate Og::getSelectionHandler()
  • #617 Remove unused access_override setting
  • #619 Remove deprecated sudo property
  • #629 Use custom phpcs configuration
  • #630 Begin support for Drupal 9
  • #634 EntityTypeInterface::isSubclassOf() is deprecated

Bug fixes

  • #540 MembershipManager::createMembership() is accepting invalid account objects

8.x-1.0-alpha4

09 Dec 07:55
e44ae5a
Compare
Choose a tag to compare

Fourth alpha release for Organic Groups. This release adds support for Drupal 8.8 and is paving the way towards Drupal 9 by removing lots of deprecated code.

Improvements

  • #499 Test that an exception is thrown when a membership is saved using invalid roles
  • #524 Code example to add a group content type is not valid PHP
  • #529 Consolidate the permissions regarding roles and permissions
  • #530 Replace deprecated EntityManager service with EntityTypeManager
  • #532 Create CHANGELOG.md
  • #533 Fixed missing member variable doc comment
  • #537 Add uuid field to OgMembership
  • #538 Fix codesniffer errors
  • #541 Do not require to pass the full user object when only the ID is required
  • #551 Start using the DrupalPractice set of codesniffer rules
  • #555 Improve performance of working with large numbers of memberships
  • #559 Speed up retrieval of membership data by using a SELECT query
  • #561 Create a test for OgMembershipInterface::getRolesIds()
  • #563 Upgrade Travis CI infrastructure to Ubuntu Xenial
  • #575 Make field.widget.settings.og_complex schema extend field.widget.settings.entity_reference_autocomplete
  • #577 The 'handler_settings' plugin config is deprecated
  • #578 Add the 'match_limit' new setting
  • #583 Test against currently supported versions of PHP and Drupal
  • #584 Specify a default theme in BrowserTestBase tests
  • #587 Use getSingularLabel() instead of deprecated getLowercaseLabel()
  • #589 assertTrue() is a strict assertion
  • #590 Views BulkForm has been moved from system to views module
  • #593 Require tests to pass on Drupal 8.8.x

Bug fixes

  • #523 Uncaught Error: Cannot use object of type stdClass as array
  • #573 MembershipManager should support UpdateBackend as cache backend during updates
  • #592 Make the array comparison predictable

8.x-1.0-alpha3

10 Jun 15:04
f58b7f1
Compare
Choose a tag to compare

Third alpha release for Organic Groups. This release brings many small improvements and adds support for Drupal 8.7.

Starting with this release PHP 7.1 or higher is required,

Improvements

  • #311 Throw an exception when calling MembershipManager::getGroupIds() with an entity which is not group content.
  • #433 Remove obsolete "Use queue" setting.
  • #450 Use Cache API to store the group relation map.
  • #455 Early exit if there are no memberships to process.
  • #458 Show UID in LogicException for existing membership.
  • #462 Add default access check.
  • #467 Use full pager on member overview.
  • #468 Small optimization for adding/removing roles to/from memberships.
  • #472 Provide a list cache tag for group memberships.
  • #473 Add support for Drupal 8.7.
  • #475 Provide a method to retrieve the membership IDs of a given group.
  • #482 Allow to retrieve groups and roles by permissions.
  • #483 Provide a list cache tag for group content.
  • #489 Declare PHP 7.1 as the minimum supported version.
  • #491 Update URL of repository now that Drupal has moved to Gitlab.
  • #492 Add Slack to support channels.
  • #493 Introduce strict typing in the OgMembership entity.
  • #495 Use better way to check if an entity represents a user.
  • #496 Adopt new module dependency format.
  • #498 Improve documentation.
  • #514 Fix coding standards violations.
  • #516 Do not require to pass full OgRole objects when we only need the ID.

Bug fixes

  • #443 OgRole actions config throws error on import.
  • #461 Fix minor typo in subscribe form.
  • #465 Fix broken/missing handler for roles in OG membership view.
  • #471 Fix unnecessarily gendered language in comments.
  • #476 Only allow users with "access user profiles" permission to access the members overview.
  • #479 MembershipManager returns memberships of the wrong group.
  • #480 MembershipManager still returns memberships after a user is deleted.
  • #503 Fix random failure when time service is instantiated one second too late
  • #509 Do not invalidate group content list cache tags when the group itself changes.

8.x-1.0-alpha2

19 Dec 10:43
dcb1bca
Compare
Choose a tag to compare

Second alpha release of the Drupal 8 port of Organic Groups. This release adds support for Drupal 8.6 and PHP 7.3.

New features

  • #451 Provide a method on the MembershipManager to retrieve all group memberships filtered by role.

Improvements

  • #447 Add support for Drupal 8.6 and PHP 7.3. Start preliminary testing on Drupal 8.7.
  • #446 Avoid double caching of OgMembership entities. This reduces memory consumption.
  • #449 Clarify how to work with membership states by providing a new constant and improving documentation.
  • #437 Streamline the Travis CI installation procedure.

8.x-1.0-alpha1

19 Dec 10:06
bb8dc16
Compare
Choose a tag to compare

Initial alpha release of the Drupal 8 port of Organic Groups.