Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
- CommentVariablePerCommentType
and mentions, related #3069260: Deprecate Drupal\comment\Plugin\migrate\source\d6\Comment::prepareComment().
- src/Tests/CommentTestBase.php
- src/Tests/Views/CommentTestBase.php
- tests/src/Kernel/CommentLegacyTest.php
- procedural wrappers
- actions and related config schema
- constants
Comment | File | Size | Author |
---|---|---|---|
#24 | 3092606-24.patch | 54.81 KB | Wim Leers |
#24 | interdiff.txt | 6.08 KB | Wim Leers |
Comments
Comment #2
andypostComment #3
andypostComment #4
Wim Leers👍
Comment #5
catchNeeds a re-roll.
Comment #6
andypostThere's more removals for 9.0 so looks now all covered
Comment #8
andypostRevert removal of comment actions used in upgrade tests
Looks it needs separate issue to fix dump usage
Comment #9
longwave@andypost #3087644: Remove Drupal 8 updates up to and including 88** will solve that I think? Should we postpone on that?
Comment #11
andypost@longwave thank you! looks it should be blocked on it
Revert one more action
Comment #13
andypostso no way to remove actions
Comment #14
BerdirYes, we should probably wait until the updates are removed, or we'll need another issue for the actions?
Comment #15
andypostFiled follow-up specifically for actions - #3097204: Remove deprecated action plugins from 9.0.x
Comment #16
andypostAdd changes from #3069260: Deprecate Drupal\comment\Plugin\migrate\source\d6\Comment::prepareComment().
Comment #17
andypostused or not?!
Comment #19
andypostprobably better to revert last changes as they are not commited
Comment #20
andypostReverted changes from #16 and updated summary with follow-ups
Comment #21
longwave"plugin" not "plugins"
But we are deleting it here anyway, so why still reference it at all?
Comment #22
Wim LeersWith this patch applied, I still find 8
@deprecated
occurrences incore/modules/comment
. But all of those are either for@Action
plugins or forcomment.schema
entries for those@Action
plugins. Per #3097204 and specifically #3097204-5: Remove deprecated action plugins from 9.0.x, we should not remove@Action
plugins in this issue.#21: Agreed, fixed that. Note that that code already points to #3069260: Deprecate Drupal\comment\Plugin\migrate\source\d6\Comment::prepareComment(). as the issue to remove that code altogether, so I'm not touching the code, only changing the comments as requested.
Other than that, this looks ready to me. 🚢
Comment #23
Berdir> Per #3097204 and specifically #3097204-5: Remove deprecated action plugins from 9.0.x, we should not remove @Action plugins in this issue.
Except now the upgrade path issue is in, so we could just as well remove them now and the others in the respective module's issue.
Comment #24
Wim Leers#23: Done. Since
system_post_update_change_action_plugins()
+system_post_update_change_delete_action_plugins()
also provide an automatic update path away from the deprecated@Action
plugins, I can see how we can consider them properly deprecated.(Unlike migration plugins, which can have migration definitions referring to migration source/destination/process plugins explicitly, hence making an automatic update path impossible.)
Comment #25
BerdirThanks. IMHO, these classes/plugins are deprecated "enough" (we have the @trigger_error() in the constructor) and are safe to remove. The other issue is IMHO more about handling them in the UI, but core doesn't show non-configurable plugins in the UI atm, so that's not a problem. They might have usages in other places like views_bulk_operations but that will have to deal with that.
Alternatively, if someone disagrees, then we can still commit the patch in #22.
Comment #26
alexpottI agree with @Berdir that a plugin with a deprecation in the constructor is fair game for removal.
Comment #28
Wim LeersRandom failure in
Drupal\Tests\media_library\FunctionalJavascript\WidgetUploadTest
strikes again.Comment #29
andypostfixed summary
Comment #30
alexpottCommitted fc46c7f and pushed to 9.0.x. Thanks!