- π¬π§United Kingdom jonathan1055
Sorry, having trouble typing. I have cut my finger so using the wrong hand (well that's my excuse). Also forgetting to 'preview' :-)
- π¬π§United Kingdom jonathan1055
Added test first. This should fail.
- Merge request !22Issue #3335419: Add machine name to the uninstall page filter β (Merged) created by jonathan1055
- Status changed to Needs review
about 2 years ago 6:04pm 21 January 2023 - π¬π§United Kingdom jonathan1055
The log has
cd ${SOURCE_DIR} && sudo -u www-data curl https://git.drupalcode.org/project/drupal/-/merge_requests/3273.diff | sudo -u www-data patch -p1 --verbose
but there is no actual confirmation that the patch was sucessful. Anyway, lets try with the modified filter. - First commit to issue fork.
- Status changed to Postponed
about 2 years ago 7:07pm 23 January 2023 - πΊπΈUnited States smustgrave
postponing until π Modules uninstall filter does not filter by machine name Needs work is merged.
- last update
over 1 year ago 3 pass, 2 fail - last update
over 1 year ago 3 pass, 2 fail - last update
over 1 year ago 3 pass, 2 fail - π¬π§United Kingdom jonathan1055
The second patch I added here includes the small change in the first patch, and the patching failed, so I removed the first one. But there is still a problem applying the patch. I have already rebased the core MR so that is OK, but it is merging into 10.1.x. Maybe the pipeline is running 10.2?
- last update
over 1 year ago 3 pass, 2 fail - π¬π§United Kingdom jonathan1055
That's good in a way. We now have the drupalCI test failure matching the gitlab pipeline test failure, so we are at least testing the same thing and getting the same outcome.
Drupal\Tests\module_filter\FunctionalJavascript\ModuleFilterJavascriptUninstallPageTest::testUninstallPageFiltering Behat\Mink\Exception\ResponseTextException: The text "Roses" was not found anywhere in the text of the current page. /builds/issue/module_filter-3335419/tests/src/FunctionalJavascript/ModuleFilterJavascriptUninstallPageTest.php:33
The above failure is the new bit added to the uninstall test, to demonstrate the new functionality.
The DrupalCI tests were passing in Jan 2023 but failing in Nov 2023. Same D10.1, php 8.1.
Attached are screen shots of the downloaded html output. The second page is indeed not showing any modules at all. - π¬π§United Kingdom jonathan1055
The previous image did not have the description opened. This one shows the 'red' text which should be found and filtered on.
- π¬π§United Kingdom jonathan1055
Tested this in the UI on 10.1 and 10.2 and it fails exactly like the javascript test. It also does not seem to filter on the module readable name either. But it filter on the description (which is really weird). Using core modules for testing:
Readable name
- Enter "link" and we get the 'Contextual Links' and 'Custom Menu Links' modules
- Enter "cust" and we get just the Path module, which has description containing "custom". We do not get the 'Custom Menu Links' module
Machine name
- Enter "log" and we get the 'Database Logging' module
- Enter "logg" and we get nothing. It is the 'log' in the description which matches.
- Enter "dblog" and we get nothing. The machine name 'dblog' in not found
This used to work properly, so I don't know what has changed and whats gone wrong.
- last update
over 1 year ago Build Successful - last update
over 1 year ago 4 pass - Status changed to Needs review
over 1 year ago 3:52pm 29 November 2023 - π¬π§United Kingdom jonathan1055
I have found and fixed the problems:
- the
.module-machine-name
used to be on the td cell itself, but has now been moved into the span element. This must have been done some time in core since 23 Jan (the previous sucessful test) - to cater for the Claro theme we need to also add
.module-list__module-name
. It remains as.module-name
in Olivero [the commit msg should say Claro not Olivero]
Tests pass. Needs review.
- the
- Status changed to Needs work
over 1 year ago 5:32pm 29 November 2023 - πΊπΈUnited States smustgrave
Don't seem to be able to filter by machine name. Did a fresh install and searched for block_content and got no results.
- Status changed to Needs review
over 1 year ago 5:42pm 29 November 2023 - π¬π§United Kingdom jonathan1055
"block_content" It works for me. Although I am having real problems with getting any chnages to .js to be recognised in a timely fashion. I do not have javascript aggregated, and have no caching, I clear the cache via Devel, via admin/config/development/performance and via drush, and the updated .js is not acted on. It makes development impossible. I even restart my local server. But then I wait 5 mins, do something else, and come back to module_filter and the updated code is active. Its driving me nuts!
- π¬π§United Kingdom jonathan1055
oops, did not mean to change the status. I just refreshed the page, made my comment, after reading yours, but the stale form setting got saved.
- last update
over 1 year ago 4 pass - π¬π§United Kingdom jonathan1055
I forgot to ask what theme(s) you are using to test? I checked this lastest change for Claro and Olivero in 10.1 and 10.2.
Actually there may be a safer, more consistent and future-proof way to identify the elements for text filtering. There is a class
table-filter-text-source
which would seem to be designed specifically for this type of filtering. It is on the module name and machine name in both themes, but it is not on the description. But that will still simplyfy the coding. - last update
over 1 year ago 4 pass - Status changed to Needs work
over 1 year ago 9:41pm 7 December 2023 - πΊπΈUnited States smustgrave
Needs a rebase, also we can do it here or a follow up but think going to drop drupalCi file in favor of just gitlab.
- last update
over 1 year ago 4 pass - Status changed to Needs review
over 1 year ago 2:30pm 13 December 2023 - π¬π§United Kingdom jonathan1055
Rebased locally and pushed. Ready for review.
From your problem in #14 and my question in #17 - What theme are you using when you can't get the filter to work correctly?
-
smustgrave β
committed 83118b4a on 4.x authored by
jonathan1055 β
Issue #3335419: Add machine name to the uninstall page filter
-
smustgrave β
committed 83118b4a on 4.x authored by
jonathan1055 β
- Status changed to RTBC
over 1 year ago 4:11pm 19 December 2023 - πΊπΈUnited States smustgrave
Long time coming but welcomes addition!
- Status changed to Fixed
over 1 year ago 5:37pm 2 January 2024 - π¬π§United Kingdom jonathan1055
Updated IS to include a note about patching core in our test files.
Automatically closed - issue fixed for 2 weeks with no activity.