Just out of curiosity, any thoughts on removing the module's dependencies on jQuery? I know it's just an admin-side dependency, but it'd be nice to not need it!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3546338 after, updates.png | 371.16 KB | csakiistvan |
| #8 | 3546338 after, uninstall.png | 434.73 KB | csakiistvan |
| #8 | 3546338 after, permissions.png | 267.81 KB | csakiistvan |
| #8 | 3546338 after, filter.png | 354.04 KB | csakiistvan |
Issue fork module_filter-3546338
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
Comment #2
sluc23 commented+1
Comment #5
smustgrave commentedSorry unfortunately got like 80+ modules and this one just doesn't get the attention. So I'm disclosing I ran it through an LMM reviewing the changes along the way. This would be a new 6.0.x branch but just testing for now. Notable changes
1. Removed all uses with jQuery and replaced with vanilla JavaScript
2. Dropped .module legacy hooks and turned fully to OOP and services
3. Limting to 11.4/12
4. Using a template for the tabs to avoid layout shifts.
Comment #6
smustgrave commentedThink ready for eyes.
Comment #7
csakiistvanComment #8
csakiistvan@smustgrave Reviewed the rewrite as requested in #6, no issues found.
✅ Tested and works — checked out MR !62 and rebuilt caches, then uninstalled
jquery_ui,jquery_ui_menuandjquery_ui_autocomplete: Module Filter stayed enabled and the filter works on/admin/modules,/admin/modules/uninstall,/admin/people/permissionsand/admin/reports/updates, with no console errors and no tab layout shift. So the jQuery removal holds and the OOP/template rewrite keeps functional parity.Comment #9
csakiistvanComment #10
smustgrave commentedComment #12
nick hope commentedThanks for removing the jQuery dependency. I encountered one upgrade-path issue when moving from Module Filter 5.0.5 to 6.0.0.
Composer removed `jquery_ui_autocomplete` and its `jquery_ui_menu` dependency, but both modules were still recorded as installed in `core.extension`. This caused `drush updatedb` to stop because their code was missing, giving this message:
[error] (Currently using Missing or invalid modules The following modules are marked as installed in the core.extension
configuration, but they are missing:
* jquery_ui_autocomplete
* jquery_ui_menu
I resolved it by temporarily restoring the packages, uninstalling the modules through Drupal in dependency order, and then removing the packages again:
If no other enabled module requires `jquery_ui`, also run:
drush pm:uninstall jquery_ui -yThen finish with:
Comment #13
jwintx commentedI had the same upgrade-path issue as Nick in #12
Comment #14
mekal commentedAlso same upgrade-path issue as Nick in #12
Comment #15
smustgrave commentedMost I can do is put a disclaimer. This module doesn’t get a lot of attention but I would of needed to have done a
6.0.x with the dependencies still there but not used
7.0.x to drop the dependencies after some time
Comment #16
arx-e commentedThis removal of jquery_ui modules is a problem. I any update I did up to now I had to go and re-require the modules.