- Issue created by @mstrelan
- Merge request !6988Issue #3426955: Convert ViewsField plugin discovery to attributes β (Closed) created by mstrelan
- Status changed to Needs review
about 1 year ago 6:06am 11 March 2024 - π¦πΊAustralia mstrelan
This adds ViewsHandlerAttributeBase which will be required for all related views handler plugin types. Not sure if ViewsHandlerManager will complain about other plugin attribute classes not existing yet, but we'll see what the tests say.
- Status changed to Needs work
about 1 year ago 7:34pm 12 March 2024 Changes look good, 0 results on search for
@ViewsField
, and tests are passing. This looks good, but I suggest adding one more change to update comments in\Drupal\views\Plugin\views\field\FieldPluginBase
to reference attribute instead of annotation.- Status changed to RTBC
about 1 year ago 9:58pm 12 March 2024 - π¬π§United Kingdom alexpott πͺπΊπ
Why are we adding ViewsHandlerAttributeBase - I can't see how it is used here?
- Status changed to Needs work
about 1 year ago 11:27am 13 March 2024 - π¬π§United Kingdom alexpott πͺπΊπ
We haven't added an equivalent to ViewsPluginAnnotationBase for views plugins so I don't think we should add one for views handlers.
- Status changed to Needs review
about 1 year ago 1:59am 14 March 2024 - π¦πΊAustralia mstrelan
Thanks @alexpott I wondered about that and have removed it now.
- Status changed to RTBC
about 1 year ago 4:32pm 14 March 2024 - πΊπΈUnited States smustgrave
Searched for @ViewsField and all 59 instanes have been replaced
Seems the feedback to remove ViewsHandlerAttributeBase has been addressed also.
- Status changed to Needs work
about 1 year ago 7:12pm 14 March 2024 - First commit to issue fork.
- π¦πΊAustralia mstrelan
I don't mind dropping named parameters, although it was advised again in another issue. I don't understand why you'd also swap back to double quotes when we general favour single quotes? Regardless, there seems to be a mix of both styles so no point changed back again now.
- Status changed to Needs review
about 1 year ago 10:37am 15 March 2024 - π·πΊRussia sorlov
@mstrelan where do we have a mix of both double and single quotes?
- Status changed to Needs work
about 1 year ago 12:19pm 15 March 2024 - πΊπΈUnited States smustgrave
Have not reviewed
But appears to have unit test failures
- Status changed to RTBC
about 1 year ago 2:48pm 15 March 2024 - πΊπΈUnited States smustgrave
Had some bandwidth and rebased which resolved the test failure and MR wasn't in draft so went ahead and reviewed.
Searching core all 59 instances of @ViewsField have been replaced
Attribute plugin looks fine (super simple).
- Status changed to Fixed
about 1 year ago 2:52pm 15 March 2024 - π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed e0f270ff66 to 11.x and 9d21eb5344 to 10.3.x. Thanks!
Did the 11.x/10.3.x commits get pushed? Getting 404 on both.
-
alexpott β
committed fc15d5ee on 10.3.x
Issue #3426955 by mstrelan, sorlov, alexpott, smustgrave, godotislate:...
-
alexpott β
committed fc15d5ee on 10.3.x
-
alexpott β
committed 86492193 on 11.x
Issue #3426955 by mstrelan, sorlov, alexpott, smustgrave, godotislate:...
-
alexpott β
committed 86492193 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.