- Issue created by @mstrelan
- π¦πΊAustralia mstrelan
Did the deprecation, needs a change record. Could possibly do a deprecation test but it would involve adding a test module with a form that calls
$view->getStandardButtons
similar to\Drupal\views_ui\Form\Ajax\ReorderDisplays
and also declare a function with the magic naming convention. - πΊπ¦Ukraine voleger Ukraine, Rivne
Link related issue https://www.drupal.org/project/drupal/issues/3043725 β¨ Provide a Entity Handler for user cancelation Needs work
- πΊπΈUnited States nicxvan
This needs a CR and the deprecation needs to be updated with the correct CR.
Deprecations don't need a test, the rest of the MR does look good.
I removed the unrelated issue.
- π¦πΊAustralia mstrelan
Agree we don't normally need a test for a deprecation, unless it's a weird implementation. I think what I really meant that we don't actually have any evidence that the behaviour we're deprecating even works in the first place, so we could test for that as a deprecation test. But I don't know if it's worth it.
- π¬π§United Kingdom catch
It feels very unlikely that anyone is relying on this, and fairly unlikely that it even works at all, so for me fine to skip deprecation test coverage here.
- πΊπΈUnited States nicxvan
Great thanks! I created a CR and added a suggestion to change the deprecation to use the CR.
It could use a pass.
- π¦πΊAustralia mstrelan
Applied the suggestion from the MR and updated the CR to make it specific to Views UI and with a more realistic example.
The Needs Review Queue Bot β tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- πΊπΈUnited States nicxvan
Huh it seemsmy comment was eaten but you got my suggestions anyway.
CR is far better now thanks!
Deprecation is correct now too.
Good to go.
- πΊπΈUnited States xjm
Nice find. This is an excellent cleanup, but we should probably have subsystem maintainer signoff to ensure we're not leaving behind any trailing related bits etc. I'm technically only a maintainer for Views, not Views UI, so bumping back to NR. I'll also ping Lendude.
- πΊπΈUnited States xjm
We might want to target Drupal 13 for this deprecation. I tried to search contrib, but ran into problems with the fuzziness (it refusing to do an exact search for
_cancel(
). - π³π±Netherlands Lendude Amsterdam
Can't think of (or find) anything either that could possibly rely on this. So great clean up as far as I can tell.
- π¦πΊAustralia mstrelan
So is this RTBC or need to be updated for D13? It seems incredibly niche.