Problem/Motivation

We’re trying to removing QuickEdit from core for 10.0.x. Per xjm, we want a separate issue for the deprecation part.

Steps to reproduce

Proposed resolution

Remaining tasks

Review and reproduce manual test steps at #3303780: Manually test QuickEdit module removal

User interface changes

API changes

Data model changes

Release notes snippet

The Quick Edit module has been deprecated in Drupal 9.5 and will be removed from Drupal 10.0. The module can be uninstalled safely without any impact on site data, and uninstalling it will result in very limited changes to the user interface for content authors.

Many Drupal site users do not use Quick Edit because it has a variety of user experience issues, so consider whether simply uninstalling Quick Edit might be the best choice for your site.

If you wish to continue using Quick Edit, you can add a dependency on the contributed Quick Edit module in order to continue using on Drupal 10.x.

CommentFileSizeAuthor
#13 3270434.4_13.interdiff.txt329 bytesdww
#13 3270434-13.patch8.48 KBdww
#4 3270434-4.patch9.09 KBdww

Issue fork drupal-3270434

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dww created an issue. See original summary.

dww’s picture

There’s already a patch for this at #3227033: Remove Quick Edit from core. When I’m not in my phone, I’ll transfer that here. Unless Spokje beats me to it. 😅

dww credited Spokje.

dww’s picture

Status: Active » Needs review
StatusFileSize
new9.09 KB

Here's exactly 3227033-9.4.x-deprecated-106.patch renamed for this issue. Still applies cleanly to 9.4.x. Crediting @Spokje since they wrote this patch.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

Let's do this.

xjm’s picture

Title: Mark QuickEdit deprecated in 9.4.x core » [P-4] Mark QuickEdit deprecated in 9.4.x core
Status: Reviewed & tested by the community » Postponed

As far as I know this is still blocked on four issues; see IS of #3228986: [Meta] Tasks to deprecate Quick Edit.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

spokje’s picture

Title: [P-4] Mark QuickEdit deprecated in 9.4.x core » [P-2] Mark QuickEdit deprecated in 9.5.x core
spokje’s picture

Title: [P-2] Mark QuickEdit deprecated in 9.5.x core » [PP-2] Mark QuickEdit deprecated in 9.5.x core
wim leers’s picture

Title: [PP-2] Mark QuickEdit deprecated in 9.5.x core » [PP-2] Mark Quick Edit deprecated in 9.5.x core
spokje’s picture

Title: [PP-2] Mark Quick Edit deprecated in 9.5.x core » [PP-1] Mark Quick Edit deprecated in 9.5.x core
dww’s picture

Title: [PP-1] Mark Quick Edit deprecated in 9.5.x core » Mark Quick Edit deprecated in 9.5.x core
Assigned: Unassigned » dww
Status: Postponed » Needs work

No longer postponed! All the blockers are in. Now we just need to update this to say "9.5.x" everywhere. I'll take a stab right now.

dww’s picture

Assigned: dww » Unassigned
Status: Needs work » Needs review
StatusFileSize
new8.48 KB
new329 bytes

Slick, I forgot there are no deprecation messages in here that need updating. Patch in #4 would basically still be valid. Except core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditIntegrationTest.php no longer exists in 9.5.x, even though it's in 9.4.x. Not sure why that is. I don't see it explicitly removed, but I've lost track of recent QE changes. Maybe @Spokje knows more. 😅

Anyway, this should apply cleanly to 9.5.x...

dww’s picture

p.s. Updated the CR to target 9.5.x, too.

mstrelan’s picture

@dww it looks like it got renamed but now I don't think it was meant to. There was a similar class that moved from LB to QE though.

https://git.drupalcode.org/project/drupal/-/commit/9423cae#de90f4354ad6d...

Status: Needs review » Needs work

The last submitted patch, 13: 3270434-13.patch, failed testing. View results

spokje’s picture

Assigned: Unassigned » spokje

spokje’s picture

Assigned: spokje » Unassigned
Issue summary: View changes
Status: Needs work » Needs review
spokje’s picture

Issue tags: +9.5.0 release notes
wim leers’s picture

Status: Needs review » Reviewed & tested by the community

🌅

spokje’s picture

spokje’s picture

Title: Mark Quick Edit deprecated in 9.5.x core » [PP-1] Mark Quick Edit deprecated in 9.5.x core
xjm’s picture

catch’s picture

The contrib module needs some updates for changes to quickedit in HEAD (see #3291700: new subtree split of core Quick Edit into contrib (v2)) and then some testing, but I think all the core blockers are done per #3228986: [Meta] Tasks to deprecate Quick Edit

spokje’s picture

longwave’s picture

Issue summary: View changes
Status: Postponed » Reviewed & tested by the community

I wrote manual test steps at #3303780: Manually test QuickEdit module removal - these work for me so I'm going to mark this as RTBC as I think we are ready to deprecate Quick Edit and the patch here is straightforward.

longwave’s picture

Title: [PP-1] Mark Quick Edit deprecated in 9.5.x core » Mark Quick Edit deprecated in 9.5.x core
catch’s picture

I don't think we can actually commit this until #3291700: new subtree split of core Quick Edit into contrib (v2) is merged but I've just marked that RTBC.

dww’s picture

quickedit 1.0.2 is out, so this can now be committed. Thanks!

wim leers’s picture

Yay!

quietone’s picture

I tweaked the change record so that all instructions are on the wiki page.

lauriii’s picture

Shouldn't we remove the code that integrates with Quickedit from core field formatter plugin definitions before doing this? See quickedit_field_formatter_info_alter, \Drupal\Core\Field\Plugin\Field\FieldFormatter\BasicStringFormatter, and \Drupal\Core\Field\Plugin\Field\FieldFormatter\StringFormatter.

Also noticed that the Quickedit is relying on core internal libraries, and those might break in the future.

longwave’s picture

@lauriii See #3304893: Add Quick Edit metadata to core field formatters which re-adds that code back to Quick Edit contrib version. I think it's fine to leave that in while the module is deprecated - users on the core version will still need it - and finally remove it from core when the module is removed.

Detangling from core's internal libraries will have to be done by whoever is maintaining the contrib module, I guess?

catch’s picture

Shouldn't we remove the code that integrates with Quickedit from core field formatter plugin definitions before doing this

I have a patch against the contrib module to add this back #3304893: Add Quick Edit metadata to core field formatters.

We could make the same change in the 9.5.x version of the module too to keep them inline. Could maybe just do that in here even since it's a small change?

Also noticed that the Quickedit is relying on core internal libraries, and those might break in the future.

IMO this is fine - part of the reason we're trying to deprecate quickedit is to make it easier to remove the core dependency on backbone during the 10.x cycle. If we made quickedit removal dependent on removing the backbone dependency from quickedit, then there's absolutely no reduction in the amount of work involved to remove backbone from core. Contrib modules depending on backbone will probably also switch to the internal versions of the libraries for Drupal 10 before refactoring away from it too.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work

Could maybe just do that in here even since it's a small change?

That seems fine since it's a very small change. Moving NW for this.

IMO this is fine - part of the reason we're trying to deprecate quickedit is to make it easier to remove the core dependency on backbone during the 10.x cycle.

Sorry for the confusion, definitely did not try to say we should block Quickedit on Backbone removal. It was more of an FYI for the maintainers. Quickedit could always directly depend on Backbone.

longwave’s picture

Status: Needs work » Needs review

Rebased and moved the Quick Edit metadata to quickedit_field_formatter_info_alter().

xjm’s picture

While suspiciously QE-related, the test fail occurs in HEAD once every couple weeks:

1) Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::testQuickEditIgnoresDuplicateFields
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     'node/1/title/en/layout_builder-default-non_component-868b6a3975e4e05e73f0e68903ab093ac7b5db85d5bab37718f4f8eba92f2b6c' => 'inactive'
+    'node/1/body/en/layout_builder-default-0-36822d63_c693_4753_a42f_3f0e83f0f72c-1-868b6a3975e4e05e73f0e68903ab093ac7b5db85d5bab37718f4f8eba92f2b6c' => 'inactive'
 )

E.g:

Therefore, requeuing it.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

#38 thank you for that info. Was going nuts on another ticket with that random failure.

MR doesn't seem to break anything and code was simple to review. I don't mind marking RTBC.

  • lauriii committed 6379200 on 10.1.x
    Issue #3270434 by Spokje, dww, longwave, catch, smustgrave: Mark Quick...

  • lauriii committed 36aedf0 on 10.0.x
    Issue #3270434 by Spokje, dww, longwave, catch, smustgrave: Mark Quick...
lauriii’s picture

Title: Mark Quick Edit deprecated in 9.5.x core » Mark Quick Edit deprecated
Status: Reviewed & tested by the community » Fixed

Committed 6379200 and pushed to 10.1.x. Cherry-picked to 10.0.x and 9.5.x. Thanks!

🌅 👋

  • lauriii committed 621ad0a on 9.5.x
    Issue #3270434 by Spokje, dww, longwave, catch, smustgrave: Mark Quick...

wim leers’s picture

👋🏻

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.