Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Store Customization > Enable DELETE request for the ai/patterns endpoint #11873

Closed
Tracked by #42103
nefeline opened this issue Nov 22, 2023 · 3 comments · Fixed by #11890
Closed
Tracked by #42103

Store Customization > Enable DELETE request for the ai/patterns endpoint #11873

nefeline opened this issue Nov 22, 2023 · 3 comments · Fixed by #11890
Assignees
Labels
focus: ai Issues related to AI generated content in blocks and patterns focus: patterns WooCommerce patterns team: Kirigami & Origami

Comments

@nefeline
Copy link
Contributor

nefeline commented Nov 22, 2023

Enable the DELETE request for the ai/patterns route within Store API to ensure all patterns have content reset to default. This goal can be achieved by simply deleting the post with the type 'patterns_ai_data' from the database (when this post doesn't exist, patterns are rendered based on the info provided by the patterns dictionary instead - the Patterns/dictionary.json file).

The DELETE request is required to ensure that if, for some reason, AI is not available, the user can still be guided to the Assembler with the patterns rendering their native/default content.

@nefeline nefeline added focus: ai Issues related to AI generated content in blocks and patterns focus: patterns WooCommerce patterns labels Nov 22, 2023
@nefeline
Copy link
Contributor Author

I am temporarily marking this issue as on hold until the proposed implementation is discussed with the engineering teams.

@nefeline nefeline added the status: on hold The issue is currently not prioritized or is awaiting something (for example, a fix upsteam). label Nov 22, 2023
@gigitux gigitux self-assigned this Nov 22, 2023
@gigitux gigitux removed the status: on hold The issue is currently not prioritized or is awaiting something (for example, a fix upsteam). label Nov 22, 2023
@gigitux
Copy link
Contributor

gigitux commented Nov 22, 2023

We agreed on the current implementation! I removed the on hold label! I'm going to work on it!

@nefeline nefeline changed the title Store Customization > Create the new ai/patterns/reset route Store Customization > Enable DELETE request for the ai/patterns endpoint Nov 22, 2023
@nefeline
Copy link
Contributor Author

Updated the title and description to change the scope here based on @gigitux 's great suggestion: instead of creating a new ai/patterns/reset route, let's add a DELETE request to the existing ai/patterns route instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: ai Issues related to AI generated content in blocks and patterns focus: patterns WooCommerce patterns team: Kirigami & Origami
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants