- 🇧🇪Belgium Wim Leers Ghent 🇧🇪🇪🇺
📌 Compress aggregate URL query strings Fixed was committed last week — yay! Let's get this moving now? 🤓
- Status changed to Needs review
over 1 year ago 4:37pm 16 February 2023 - @taran2l opened merge request.
- Status changed to Needs work
over 1 year ago 10:22pm 17 February 2023 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- First commit to issue fork.
- 🇺🇦Ukraine Taran2L Lviv
hi @nod_, seems like rebase kinda "kills" notifications, sorry I've missed your comment. Added an explanation
MR removes all the weights throughout core, but before/after logic is still missing. However, as you can see all tests are passing, except the new one (before/after), and one that expected a specific weights (which are not there by the nature of the change)
- 🇫🇷France nod_ Lille
explanation is good, needs to be in comment inside the file
- 🇺🇦Ukraine Taran2L Lviv
accomplished so far:
- no assets use weight explicitly
- all tests are passing, except the new before/after and jQuery UI order one (as it needs to be heavily refactored)
- btw tests pass without after/before implemented at all
- weight is still being used
- to sort assets by their level (?) (base, layout, component, state, theme)
- by some alters in core
- 🇺🇦Ukraine Taran2L Lviv
Afaik, everything works as expected, but probably some manual testing is required
The one test that is failing checks whether jQueryUi assets have a specific weights, which is not true anymore. Thus, we need a decision what to do with it: remove or refactor to test whether everything is working properly rather than just checking weights.
A few places where weights are still in use:
1.
ckeditor5_js_alter()
- https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/modules/cke...Not sure what exactly Drupal tries to achieve here, someone else needs to take a look
2.
AttachedAssetsTest::testAlter()
- https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/tests/Drupa...Tests altering weight via a hook, but this should not be a case anymore. Remove?
3.
settings_tray.theme.css
- https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/modules/set...There is a mention of this issue, but a lot of things have changed since it has been added (not sure it is relevant anymore)
Next steps (imo)
1. Refactor existing library discovery to use different key for specifying an asset level (?) (btw, what should be the naming here?) - (can be a follow-up issue)
2. Deprecate usage of weight key with a deprecation message (can be a follow-up issue)
- 🇫🇷France nod_ Lille
Excellent, had a quick look and I like what I see :)
One question is how does it work when a library that has a before/after is added but the library it should be loaded before/after is not added to the page at the same time?
- 🇧🇪Belgium Wim Leers Ghent 🇧🇪🇪🇺
Yay, 🐛 Library order asset weights do not work properly when a large number of javascript files is loaded between two jQuery UI libraries Fixed landed, which means we'll be able to make this change with more confidence! 😊
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Is there an option to just use native es6 imports and type=module and just let the browser sort this out now we don't have to support IE
- 🇺🇦Ukraine Taran2L Lviv
One question is how does it work when a library that has a before/after is added but the library it should be loaded before/after is not added to the page at the same time?
So, in short, it collects all needed libraries first (pass one), and only after that (with the full list) it adds before/after logic (pass two)
- last update
about 1 year ago 29,360 pass, 2 fail - Status changed to Needs review
about 1 year ago 10:08am 28 April 2023 - Status changed to Needs work
about 1 year ago 4:16am 30 April 2023 - 🇺🇸United States smustgrave
Moving to NW for the issue summary update
And failure in MR seems to be legit to the issue at hand.
- last update
about 1 year ago 29,365 pass, 2 fail - last update
about 1 year ago 29,372 pass, 2 fail - last update
about 1 year ago 29,372 pass, 2 fail - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
11 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
11 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
11 months ago Not currently mergeable. - last update
11 months ago 29,873 pass, 5 fail - last update
11 months ago 29,875 pass, 3 fail - last update
11 months ago Custom Commands Failed - last update
11 months ago 29,881 pass, 1 fail - last update
11 months ago 29,811 pass, 11 fail - last update
11 months ago 29,874 pass, 9 fail - last update
11 months ago Build Successful - last update
11 months ago 29,884 pass - 🇦🇺Australia acbramley
Was hoping this would fix an issue I'm having with Paragraphs Library and Entity embed. For some reason in the final Entity embed modal while adding a paragraph library item, jquery ui's dialog button styling is overriding Claro's leading to some pretty ugly buttons:
This does not happen when embedding an entity in a paragraph on a node form, only via Paragraphs Library (i.e /admin/content/paragraphs/add/default)
Unfortunately the MR doesn't solve this particular issue.
- 🇺🇦Ukraine Taran2L Lviv
@acbramley, well, this is good to be honest, as this issue is pure DX change, i.e. it should not fix anything (yeah, maybe, accidentally)
- 🇦🇺Australia acbramley
@Taran2L no worries - this was a red herring anyway. My issue - 🐛 claro.jquery.ui css assets may be added the page multiple times Fixed