Problem/Motivation

This module needs to be updated to Drupal 10.

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhedstrom created an issue. See original summary.

marciaibanez’s picture

Assigned: Unassigned » marciaibanez

I'll work on this.

marciaibanez’s picture

Assigned: marciaibanez » Unassigned
Status: Active » Needs review

I updated the .info file adding the Drupal 10 compatibility. Kindly review it :)

jhedstrom’s picture

jhedstrom’s picture

Thanks! I'm guessing once some of the test dependencies of this module are ready, there may be a bit more work to get tests passing on Drupal 10.

jhedstrom credited bsuttis.

jhedstrom’s picture

Adding issue credits from work done in #3172799: D9 testing readiness .

jhedstrom’s picture

Still one failing test on the search api view. Finding only 5 of the expected 8 items...

RenatoCostaDev’s picture

Assigned: Unassigned » RenatoCostaDev

I will try to help in it.

RenatoCostaDev’s picture

Assigned: RenatoCostaDev » Unassigned
Status: Needs review » Needs work

I run the Drupal check and the error below came, so just after fix this problem will be possible to go through it.

Child process error (exit code 255): PHP Fatal error: During class fetch: Uncaught PHPStan\Broker\ClassAutoloadingException: Class Drupal\Tests\search_api\Functional\ExampleContentTrait not found. in
phar:///app/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/Runtime/RuntimeReflectionProvider.php:185

And also the module csv_serialization is not compatible with Drupal10.

alanmoreira’s picture

Assigned: Unassigned » alanmoreira

I'll work on this

alanmoreira’s picture

Assigned: alanmoreira » Unassigned

As said before, the tests need to be fixed. Also, it depends on modules not compatible with Drupal 10. I'll unassign and leave the status as "Needs work".

Berdir’s picture

csv_serialization has a D10 compatible 3.x release, you need to test with that. also the error above means you don't have the require-dev dependency search_api.

Berdir’s picture

That said, composer.json needs to be updated to allow 3.x for csv_serialization.

Berdir’s picture

Or not :)

See #3294354: 3.x composer.json was not updated to require D9/10, blocked by that to test on CI, but you can still check it out locally with git.

Also, the test fails do not even require D10, they fail on D9 too.

Berdir’s picture

Status: Needs work » Needs review

Adjusted the assertions for the included header row, as far as I can see this should have been always there. Maybe #3087166: Unable to Override Headers/Labels with hook_views_pre_render() changed something? not sure.

alanmoreira’s picture

Assigned: Unassigned » alanmoreira

I'll review this

alanmoreira’s picture

Assigned: alanmoreira » Unassigned
Status: Needs review » Reviewed & tested by the community

I reviewed and those are my observations about this issue:

1 - I installed the module and checked out to the branch related to this issue.
2 - At first, when i ran the tests, there were some errors because it was missing some required modules.
3 - I cloned the repository from the following modules: csv_serialization, xls_serialization e search_api.
4 - After that, the tests were still breaking, so I had to make some changes in the Xls.php file of the xls_serialization module (lines 53 and 153).
5 - Afther those changes, all tests passed.
6 - I also runned "phpcbf" command to fix auto-fixable coding standards errors, then commited and pushed those changes.

I changed the status to "Reviewed & tested by the community" but i am not sure if it is OK, since there is still tests failures untill the problem mentioned on (4) be solved.

Berdir’s picture

> 6 - I also runned "phpcbf" command to fix auto-fixable coding standards errors, then commited and pushed those changes.

This is not on scope, coding standards should only be fixed/ensured on code that is touched by the patch. If you do the same in 3 different issues then they will conflict, making the process harder.

Also, making changes prevents you from RTBC'ing an issue as you should not do that for an issue that you worked on yourself.

xls_serialization has its own RTBC issue that just needs to be committed. It makes sense for that to happen first, but it's not a blocker to set this to RTBC.

alanmoreira’s picture

Thanks for the feedback @Berdir, i am new to the drupal community and still learning about the contribution proccess, Should I change the status to "Needs review" then?

Berdir’s picture

My suggestion would be to revert your commit, then you're technically allowed to mark it as RTBC again and then you can leave it again.

It's not a huge deal, not if it's only a few changes but core for example tends to be more strict about it.

Kristen Pol’s picture

Kristen Pol’s picture

Status: Reviewed & tested by the community » Needs review

Moving back to needs review based on #23.

jhedstrom’s picture

Status: Needs review » Reviewed & tested by the community

I reverted the phpcbf commit. I think this is good to go. Tests are still failing due to #3175420: Incomplete data export.

jhedstrom’s picture

  • jhedstrom committed c5aef6a on 8.x-1.x authored by marciaibanez
    Issue #3266389 by Berdir, marciaibanez, alanmoreira, rloos289, bsuttis:...
jhedstrom’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all!

Status: Fixed » Closed (fixed)

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