Create AutoSave service and HTTP API to retrieve all entities with pending changes

Created on 25 November 2024, about 1 month ago

Overview

Follow-up to 📌 Autosave PoC Active . We now need to a meet the auto-save requires of 🌱 Milestone 0.2.0: Experience Builder-rendered nodes Active

In #3478299 we implemented the basics, we auto-save the entity and allow the editor to load those changes back.

For Milestone 0.2 we will need be able to retrieve all auto-save entities and metadata about the auto-saves

List of all entities that have been changed

The API endpoint needs to have following information:

  1. Entity Label
  2. Entity type
  3. Entity ID
  4. Changed timestamp
  5. Author of the change

Proposed resolution

  1. Create an auto-save service that will replace NotTheGoodAutoSaveTrait

    This service will have to

    • Auto-save an individual entity, including metadata about the save
    • Retrieve the auto-save state of an entity
    • Provide a list of all auto-saved entities with there meta
  2. Replace the existing use of the NotTheGoodAutoSaveTrait in ApiPreviewController and ApiLayoutController with use of the new service

    Eventually the client may want to have have separate calls to the server to for auto-save operation but for now these are working and not changing that keeps the scope smaller and just to the backend

  3. Provide a controller that will use the service to retrieve a listing the entity auto-save and their metadata

User interface changes

📌 Task
Status

Active

Version

0.0

Component

Page builder

Created by

🇺🇸United States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024