My tests of the core extensions has intermittent failures in test Drupal\Tests\node\Kernel\Views\RevisionUidTest::testRevisionUid. The view does not have a sort order specified, yet the result is passed to assertIdenticalResultset().

We need to programmically Alter the view to add a sort to this test case.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Beakerboy created an issue. See original summary.

Beakerboy’s picture

Status: Active » Needs review
FileSize
977 bytes

Patch for review

Beakerboy’s picture

Beakerboy’s picture

Assigned: Beakerboy » Unassigned
daffie’s picture

I think that it is better to add the sorting to the view. The view is only used by this test class and there is no tests on sorting. Adding the extra code to the test class is to me a bit distracting for the person who is trying to understand what the test is testing. Big question is does this solution work for you @Beakerboy?

Different solution, therefore no interdiff file.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Beakerboy’s picture

Status: Needs review » Reviewed & tested by the community

#5 has been tested with sqlsrv and Drupal 9.1. It resolves the issue.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 19f12a5935 to 9.1.x and 07f46cc092 to 9.0.x and 32c22ef9d9 to 8.9.x. Thanks!

As a test-only fix backported to 8.9.x

  • alexpott committed 19f12a5 on 9.1.x
    Issue #3146016 by Beakerboy, daffie: Sort order not specified in view...

  • alexpott committed 07f46cc on 9.0.x
    Issue #3146016 by Beakerboy, daffie: Sort order not specified in view...

  • alexpott committed 32c22ef on 8.9.x
    Issue #3146016 by Beakerboy, daffie: Sort order not specified in view...
alexpott’s picture

I committed the wrong patch by mistake.

Committed and pushed 022eff4c37 to 9.1.x and fc261ca518 to 9.0.x and e4972ce5c4 to 8.9.x. Thanks!

  • alexpott committed 022eff4 on 9.1.x
    Issue #3146016 by Beakerboy, daffie: Sort order not specified in view...
  • alexpott committed 02729cd on 9.1.x
    Revert "Issue #3146016 by Beakerboy, daffie: Sort order not specified in...

  • alexpott committed d03ad8b on 9.0.x
    Revert "Issue #3146016 by Beakerboy, daffie: Sort order not specified in...
  • alexpott committed fc261ca on 9.0.x
    Issue #3146016 by Beakerboy, daffie: Sort order not specified in view...

  • alexpott committed 1effb46 on 8.9.x
    Revert "Issue #3146016 by Beakerboy, daffie: Sort order not specified in...
  • alexpott committed e4972ce on 8.9.x
    Issue #3146016 by Beakerboy, daffie: Sort order not specified in view...

Status: Fixed » Closed (fixed)

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