Problem/Motivation

Our needs are quite simple - "if you a 'associated' with 'this', 'that' or 'the other' then you can view this node" .

We recognise that that kind of scenario can be covered by the well-known Group module but we are finding that it just doesn't afford the level of flexibility that we need right now plus the issue queue is too large and to make it a viable candidate

What we need is something simple, robust and flexible for Drupal 10.

This module seems absolutely right for easily enabling such 'group' access functionality BUT, what about Drupal 10?

Do you have plans to test/adjust/release for Drupal 10?

Thank you

Issue fork pbf-3348426

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SirClickALot created an issue. See original summary.

flocondetoile’s picture

I should release a Drupal 10 compatible version this year (before the end of life of D9). As soon as I have some times to work on. Or sooner if someone provides a working patch.

flocondetoile’s picture

Title: Roadmap and furture for Drupal 10 » Roadmap and future for Drupal 10

ChrisSnyder made their first commit to this issue’s fork.

chrissnyder’s picture

This is one of the few modules we need to update our site to D10.

Any update on any work done to support Drupal 10? I may have some time in a few weeks to help work on a patch. If something has already been started I can pick up from that.

flocondetoile’s picture

jjmackow’s picture

We are depending on this module in our update. Will look into issues.

chrissnyder’s picture

Version: 8.x-1.3 » 8.x-1.x-dev
StatusFileSize
new84.25 KB

The attached patch provides D10 compatibility.

Ahead of a new release of this module, you can apply this patch using composer-drupal-lenient to allow you to upgrade to Drupal 10.

chrissnyder’s picture

Status: Active » Needs review
chrissnyder’s picture

Title: Roadmap and future for Drupal 10 » Drupal 10 Support
dineshkumarbollu’s picture

StatusFileSize
new18.1 KB

Hi

Tested the module no D10 compatible issues found, i am attaching D10 report.

Thanks

flocondetoile’s picture

Added automated tests for D10.
Anybody have manually tested the module with the patch on D10 ?

  • ChrisSnyder authored 9f3395d8 on 8.x-1.x
    Issue #3348426 by ChrisSnyder, flocondetoile: Drupal 10 Support
    
flocondetoile’s picture

Committed only to be able to run the D10 tests.

flocondetoile’s picture

StatusFileSize
new318 bytes

Drop support of Drupal 8, and run tests on the -dev version.

Status: Needs review » Needs work

The last submitted patch, 15: 3348426-15.patch, failed testing. View results

flocondetoile’s picture

Status: Needs work » Needs review

tests needs to be refactored. Optionnal parameters must be placed at the end (no required parameters placed after them)

flocondetoile’s picture

Status: Needs review » Needs work
flocondetoile’s picture

Incoming patchs should be easier to review now. Keeping patch #8 in -dev branch

flocondetoile’s picture

Title: Drupal 10 Support » [PDF] Drupal 10 Support
chrissnyder’s picture

Title: [PDF] Drupal 10 Support » [PBF] Drupal 10 Support
chrissnyder’s picture

This patch attempts to get the tests running on PHP 8.0 by refactoring the method signature for a couple of the methods, placing the optional parameters last.

See https://php.watch/versions/8.0/deprecate-required-param-after-optional

chrissnyder’s picture

StatusFileSize
new11.54 KB

This patch to get the tests running on PHP 8.0 by refactoring the method signatures in the test, and adds Drupal 10 compatibility by removing use of deprecated core theme, classy.

chrissnyder’s picture

The last patch, #23, fixes some of the issues with the tests. However, it does look like a few tests are still failing because they are unable to count the number of results on the search page. My suspicion is that \Drupal\Tests\pbf\Functional\PbfBaseTest::checkSearchResults relies on classes provided by the classy theme that is no longer available and it needs to be updated with a new XPath.

@flocondetoile Do you have any idea what that xpath selector should be changed to?

flocondetoile’s picture

I guess we should change first the $defautTheme in PbfBaseTest.php, as classy doesn't exists anymore as a core theme in D10

/**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'classy';

We check this xpath

//ol[contains(@class, 'search-results')]/li

Olivero has the same markup because of web/core/themes/olivero/templates/dataset/item-list--search-results.html.twig. So Tests should pass with Olivero.

Stable9 has only this template web/core/themes/stable9/templates/dataset/item-list.html.twig. So with stable9 the xpath should be //ol/li I guess

flocondetoile’s picture

Switching to Olivero looks the best way to get green testss

chrissnyder’s picture

This patch includes an update to the theme used when testing and drops support for Drupal 8 which is EOL.

chrissnyder’s picture

Status: Needs work » Needs review

Tests pass latest patch.

  • ChrisSnyder authored 89bcd464 on 8.x-1.x
    Issue #3348426 by ChrisSnyder, flocondetoile: [PBF] Drupal 10 Support
    
flocondetoile’s picture

Status: Needs review » Fixed

Committed. A new release 8.x-1.4 has been published. Thanks everyone.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.