- π©πͺGermany Anybody Porta Westfalica
Great work! Confirming this works fine and is super helpful! :)
Still needs tests, I'll see what we can do.
- First commit to issue fork.
- @grevil opened merge request.
- π©πͺGermany Grevil
Applied the patch as an MR and added appropriate tests.
Note, that the "default_open" test is currently not added for the menu test, because the test will get moved eventually inside π Move the 'menu_link_content' 'link' base field widget overwrite into its own submodule Fixed , if it gets approved. Please review!
- π©πͺGermany Anybody Porta Westfalica
Thanks for the tests @Grevil! Wondering why automated tests for issues is not enabled?
As the tests are green locally and changes LGTM, I'll set this RTBC. @larowlan would you mind to enable tests for issues perhaps?
- Status changed to RTBC
over 1 year ago 11:41am 15 May 2023 - last update
over 1 year ago Composer require failure - last update
over 1 year ago 5 pass - last update
over 1 year ago 5 pass - last update
over 1 year ago Composer require failure - Status changed to Needs work
over 1 year ago 7:44pm 18 May 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
+++ b/src/Plugin/Field/FieldWidget/LinkWithAttributesWidget.php @@ -96,7 +97,7 @@ class LinkWithAttributesWidget extends LinkWidget implements ContainerFactoryPlu - '#open' => count($attributes), + '#open' => $this->getSetting('default_open'),
This will cause a regression for existing sites as we're defaulting to FALSE.
We either need to default to TRUE in defaultSettings or we need an update hook to loop over all form displays and set the default value to TRUE for existing items
- π©πͺGermany Anybody Porta Westfalica
We either need to default to TRUE in defaultSettings or we need an update hook to loop over all form displays and set the default value to TRUE for existing items
@larowlan I'd prefer the second option, as I think collapsed is typically what you want in the future for a better and comprehensive UX.
Do you agree?Do you know about any snippet in core or another module for that loop? Might be complicated from scratch...
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
How about we make it support three options
1) Expand if any values set (Current behaviour)
2) Collapse
3) ExpandWe could make the default 1 (current behaviour) but support the two new options.
Then we don't need an update path, which I'd rather avoid
- Open on Drupal.org βCore: 9.5.x + Environment: PHP 8.0 & MySQL 5.7last update
over 1 year ago Not currently mergeable. - Status changed to Needs review
over 1 year ago 10:25am 22 May 2023 - last update
over 1 year ago 4 pass - π©πͺGermany Grevil
I agree! I rewrote the logic and tests accordingly.
Please review once again!
- last update
over 1 year ago 5 pass - last update
over 1 year ago 5 pass - last update
over 1 year ago 5 pass - last update
over 1 year ago 5 pass - Status changed to RTBC
over 1 year ago 11:19am 22 May 2023 - π©πͺGermany Anybody Porta Westfalica
Nice work @Grevil, I like it! Let's see what @larowlan thinks about it finally.
- Status changed to Needs work
over 1 year ago 8:32am 2 June 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Great work, a few things pointed out in the MR
- π©πͺGermany Anybody Porta Westfalica
Thanks @larowlan
@Grevil: Please have a look next week to finish this :)Nice!!
- Assigned to Grevil
- last update
over 1 year ago 5 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:00am 28 June 2023 - last update
over 1 year ago 5 pass - Status changed to RTBC
over 1 year ago 6:55am 5 July 2023 - π©πͺGermany Anybody Porta Westfalica
Code looks fine to me, tests are green. RTBC from the community :)
- last update
over 1 year ago 5 pass -
larowlan β
committed 00c2772c on 2.x authored by
Anybody β
Issue #3267374 by Grevil, Anybody, larowlan, maursilveira: Add option to...
-
larowlan β
committed 00c2772c on 2.x authored by
Anybody β
- Status changed to Fixed
over 1 year ago 11:29pm 11 July 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Thanks, committed and cutting 2.0.1
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
- πΊπΈUnited States Jonathan_W Austin, TX, USA
Please note that Drupal 9 still supports PHP 7.3 and 7.4. If you're going to set the minimum supported PHP to 8, then you should consider dropping support of Drupal 9 for this version of Link Attributes so you don't cause confusion and unnecessary issue tickets.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
@Jonathan_W we added the php version limit into the info file thinking that would be taken into account by composer, but it appears it isn't
I think we should create a 2.0.2 with a composer.json change to prevent that
Thanks for reaching out
- π©πͺGermany Grevil
Thought so too! It doesn't? That's quite annoying...
Anyway, thanks for the fast reaction @larowlan! -
larowlan β
committed 4f260cb2 on 2.x authored by
Anybody β
Issue #3267374 by Grevil, larowlan, Anybody, maursilveira: Add option to...
-
larowlan β
committed 4f260cb2 on 2.x authored by
Anybody β
Automatically closed - issue fixed for 2 weeks with no activity.