The Needs Review Queue Bot β tested this issue. It either no longer applies to Drupal core, or 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.
- @joachim opened merge request.
- Status changed to Needs review
almost 2 years ago 6:12pm 11 February 2023 - Status changed to Needs work
almost 2 years ago 10:35am 24 February 2023 - π³π±Netherlands Lendude Amsterdam
Back to NW for the update to the deprecation messages
ravi.shankar β made their first commit to this issueβs fork.
- Status changed to Needs review
almost 2 years ago 1:00pm 24 February 2023 - Status changed to RTBC
almost 2 years ago 11:16am 26 February 2023 - π³π±Netherlands Lendude Amsterdam
Per discussion around #26 if we should expand the deprecation message, I don't think we need it in the deprecation message, but I expanded the CR to at least provide some sort of example on how to replace this.
Looks nice and minimal otherwise.
- π¬π§United Kingdom catch
This looks like good clean-up.
My only question is that both this and π [PP-1] bundleFieldDefinitions() are not added in EntityViewsData Needs work which depends on it don't come with any test coverage. This issue is a good net reduction in code, and I'm sure the code that's executed is covered by existing tests, but at some point do we need something to show that bundle field definitions work so it doesn't eventually get regressed. Maybe that's for π [PP-1] bundleFieldDefinitions() are not added in EntityViewsData Needs work though?
- πΊπΈUnited States mglaman WI, USA
The problem is that Drupal doesn't have a bundle field paradigm yet, so I'm not sure how to test without adding that (like BundleFieldDefinition from Entity API module.)
Can we add the test coverage be added once Drupal adds that support? IMO π [PP-1] bundleFieldDefinitions() are not added in EntityViewsData Needs work needs another blocker β bringing BundleFieldDefinition into core which verifes this feature. Maybe that issue can handle that.
- π¬π§United Kingdom catch
Added some related issues on π [PP-1] bundleFieldDefinitions() are not added in EntityViewsData Needs work which are all heading in that direction, which also confirms we have plenty of other issues to add test coverage meaning I think it's fine for this to go in without and unblock them.
- π·π΄Romania amateescu
@mglaman, the BundleFieldDefinition problem is tackled in π Add the FieldStorageDefinition class to define field storage definitions in hook_entity_field_storage_info() Needs review
- Status changed to Needs review
over 1 year ago 3:52am 29 March 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Left a comment on the MR
- Status changed to Needs work
over 1 year ago 4:36pm 7 April 2023 - πΊπΈUnited States smustgrave
Only moving to NW for the open thread in the MR.
- First commit to issue fork.
- Merge request !10145EntityViewsData assumes BaseFieldDefinitions where it should use FieldDefinitionInterface β (Open) created by rodrigoaguilera
- πͺπΈSpain rodrigoaguilera Barcelona
DeprecatedServicePropertyTrait is used for when there is a \Drupal::service() replacement call
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Dependenc...So deprecation with no replacement I think is the appropriate thing to do here.
I rebased against 11.x and created a new MR.
Hopefully this can be merged for Drupal 11.2.0 - πͺπΈSpain rodrigoaguilera Barcelona
rodrigoaguilera β changed the visibility of the branch 2930736-10.1-entity-views-data-assumptions to hidden.
- πΊπΈUnited States smustgrave
11.2 is very feasible.
Probably should add deprecation test coverage though
- πͺπΈSpain rodrigoaguilera Barcelona
Isn't a bit too much adding deprecation tests for a protected method?
I'm curious about how to mark them so they will be removed along the deprecated code.
I tried to look for examples but couldn't find much. I guess it would be about setting up an artificial code path with a class that extends from EntityViewsData that calls the deprecated method.
- πΊπΈUnited States nicxvan
I'm not sure about needing deprecations for protected methods.
However to answer your second question, the nature of the test will necessitate its removal when the method is removed. The test will no longer see the deprecation so it will fail when you remove the function.
You then have to remove the deprecation test, it takes care of itself.
- π§πͺBelgium kristiaanvandeneynde Antwerp, Belgium
Yeah we could have a deprecation test here and then remove it when the deprecation is removed.
Generally speaking, I would agree that we don't need a deprecation test here, but we have way too much public API surface in core and I've been bitten before where it turned out we should have kept in mind that some people might be extending these classes.
Having said that, MR looks good to me and so does the CR. So that's great :)
- πͺπΈSpain rodrigoaguilera Barcelona
Added test for the deprecation so back to NR
- π³πΏNew Zealand quietone
No unanswered questions here, updated credit and hid files.