- 🇺🇸United States dillix
@ravi.shankar
I reviewed you patch all works fine, but you need to fix translated text in views:
previous: ‹‹ next: ››
- Status changed to Needs review
about 2 years ago 12:34am 29 June 2023 - last update
about 2 years ago 30,343 pass - Status changed to Needs work
about 2 years ago 2:41pm 29 June 2023 - 🇺🇸United States smustgrave
This will have to be committed to 11.x first.
- 🇩🇪Germany sachbearbeiter
dawehner already has a long beard ... 10 years ...
- last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - Status changed to Needs review
about 2 years ago 7:25am 5 July 2023 - last update
about 2 years ago 29,802 pass, 2 fail - 🇮🇳India mrinalini9 New Delhi
Rerolled patch #111 for 11.x branch, please review it.
Thanks!
The last submitted patch, 115: 2086125-115.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 12:23pm 19 December 2023 - Assigned to capysara
- 🇺🇸United States capysara
capysara → changed the visibility of the branch 11.x to hidden.
- 🇺🇸United States capysara
capysara → changed the visibility of the branch 2086125-last-read-comment to hidden.
- Merge request !59042086125 updated last read comment field/filter/argument. → (Open) created by capysara
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:20pm 20 December 2023 - 🇺🇸United States capysara
I moved this into a MR instead of a patch. I'm attaching an interdiff, but I only changed the $field_alias property to allow it to be nullable to address the failed test.
- 🇬🇧United Kingdom jonathanshaw Stroud, UK
#115 introduced a schema.orig file I'm not familiar with. Is that correct? Otherwise I'd RTBC it.
- 🇺🇸United States capysara
Ooops. That was unintentional. Thanks for catching!
I updated the MR to remove it.
- Status changed to Needs work
over 1 year ago 5:28pm 21 December 2023 - Status changed to Needs review
over 1 year ago 6:20pm 21 December 2023 - Status changed to RTBC
over 1 year ago 7:40pm 21 December 2023 - 🇺🇸United States smustgrave
Hiding all patches for clarity.
Ran the test-only feature
1) Drupal\Tests\comment\Functional\Views\CommentStatisticsTest::testEntityMulChanged Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for views.view.test_ces_entity_test_mul_changed with the following errors: views.view.test_ces_entity_test_mul_changed:display.default.display_options.fields.last_updated.date_format missing schema, views.view.test_ces_entity_test_mul_changed:display.default.display_options.fields.last_updated.custom_date_format missing schema, views.view.test_ces_entity_test_mul_changed:display.default.display_options.fields.last_updated.timezone missing schema, 0 [display.default.display_options.fields.last_updated.date_format] 'date_format' is not a supported key., 1 [display.default.display_options.fields.last_updated.custom_date_format] 'custom_date_format' is not a supported key., 2 [display.default.display_options.fields.last_updated.timezone] 'timezone' is not a supported key. /builds/issue/drupal-2086125/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:98 /builds/issue/drupal-2086125/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111 /builds/issue/drupal-2086125/core/lib/Drupal/Core/Config/Config.php:230 /builds/issue/drupal-2086125/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:278 /builds/issue/drupal-2086125/core/lib/Drupal/Core/Entity/EntityStorageBase.php:486 /builds/issue/drupal-2086125/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257 /builds/issue/drupal-2086125/core/lib/Drupal/Core/Entity/EntityBase.php:352 /builds/issue/drupal-2086125/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609 /builds/issue/drupal-2086125/core/modules/views/src/Tests/ViewTestData.php:49 /builds/issue/drupal-2086125/core/modules/comment/tests/src/Functional/Views/CommentStatisticsTest.php:42 /builds/issue/drupal-2086125/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 ERRORS! Tests: 1, Assertions: 2, Errors: 1.
Applying locally on a standard install and doesn't appear to have issues.
Created a test view with the Comment Statistics: Updated/commented date field added, no issues
Created some test Articles adding comments as I went.
Date seems correct to me. - Status changed to Needs work
over 1 year ago 11:59pm 21 December 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Left some comments on the MR
Some regarding new coding standards, but also some about making sure the field-type is what we expect and some missing test coverage.
I'm keeping a close eye on this one as I'm keen to see it resolved too.
- Assigned to capysara
- 🇬🇧United Kingdom jonathanshaw Stroud, UK
For anyone following, this is still NW for the test coverage.
- 🇺🇸United States capysara
I'm still working on the test, but that will take me a bit longer. If someone else can create the test quicker, feel free to grab it. Or if anyone has thoughts or pointers, you can also ping me in Slack.
- Issue was unassigned.
- First commit to issue fork.
- 🇺🇸United States Kasey_MK
I'm having trouble parsing the status of this issue and getting a working patch out of it. Unknown column 'node.changed' on filter by 'Updated/commented date' 🐛 Unknown column 'node.changed' on filter by "Updated/commented date" Closed: duplicate has been closed as a duplicate in favor of this issue, but it did have a patch that ( with a little tweak as I commented 🐛 Unknown column 'node.changed' on filter by "Updated/commented date" Closed: duplicate ) seems to get my 10.3.7 site back to working without errors. Sharing here in case it helps others.
- 🇪🇸Spain pandepoulus
Hello, not sure if i should comment here or create a new issue. None of the patches work for me, (i'm using the sort StatisticsLastUpdated handler).
blame is on the field_alias parameter, which is non nullable, and $this->query->addOrderBy(.....) is being called.
That function does return null, so the non nullable parameter raises an exception.For me the solution was as easy as just call the orderBy without assigning it to a field_alias parameter, which i think is unnecesary in a sort filter.
- First commit to issue fork.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
@pandepoulus yep assigning the return $this->query->orderBy() to a property is pointless. I've updated the MR to fix this for 11.x.
We still need to add test coverage for the comments on entity types that do not implement EntityChangedInterface
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
So I think we only need the StatisticsLastUpdated field, filter and sort to entity types which implement EntityChangedInterface and have a changed field. That way we avoid quite a few issues. If you want to filter on the last_updated time in comment_entity_statistics then you can use the last comment timestamp field, filter and sort... you do not need this special implementation.
- 🇨🇦Canada joelpittet Vancouver
This is looking good. Due to the changes not applying in D10, it’s trickier for me to test manually right now.
I’ve postponed 🐛 Views ‘last updated/commented’ field fails to sort entities without comment statistics Active on this, it’s related but not the same issue, just commenting for awareness. It's related to the stats not being populated in D8+