I jumped the gun and tagged 1.0 without thinking about ensuring the commerce_cart_clear config object got installed on existing sites.

The endpoint was added in #2974429: Add a clear Cart API to empty the items in batch..

We can use the commerce.config_updater service in a post_update to import rest.resource.commerce_cart_clear

CommentFileSizeAuthor
#2 2996228-2.patch580 bytesmglaman

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review
StatusFileSize
new580 bytes

Import added. If the config exists, it does nothing.

  • mglaman committed 912d5b5 on 8.x-1.x
    Issue #2996228 by mglaman: Add update hook to install...
mglaman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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