[later phase] Generalize GET/PATCH/DELETE for individual auto-save entries: refactor `ApiConfigAutoSaveControllers` and `ApiAutoSaveController::delete()`

Created on 20 June 2025, 4 days ago

Overview

  • Auto-save code components Active introduced ApiConfigAutoSaveControllers, and restricted it to just code components + asset libraries, and exposes these under /xb/api/v0/config/auto-save/{xb_config_entity_type_id}/{xb_config_entity}, with GET + PATCH
  • 📌 For selective reverting add DELETE auto-save endpoint Active added the ::delete() method to ApiAutoSaveController and works for all entities and exposes this under /xb/api/v0/auto-saves/{entity_type}/{entity}' (with obviously only DELETE)

This is inconsistent. We should make it consistent. OTOH, if there's no need for the XB UI to access these, then perhaps it's fine as-is?

Most importantly: GET and PATCH of content entities happens via the /xb/api/v0/layout/{entity_type}/{entity} routes; additional requests would be worse for performance+scalability.

Still, it's possible that in the future we'll want to interact with auto-saves of content entities. Consider this the placeholder issue.

Proposed resolution

User interface changes

📌 Task
Status

Postponed

Version

0.0

Component

Auto-save

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

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

Comments & Activities

Production build 0.71.5 2024