[PP-1] Convert storage backends into plugins

Created on 19 September 2024, 3 months ago

Problem/Motivation

Blocked by ✨ Create a new Checklist config entity type RTBC .

The next step in the modernization of Checklist API is to turn the two storage backends -- state and config -- into plugins, implementing a revamped and more tightly-scoped StorageInterface.

These plugins should do one thing, and one thing only: store the state of checklist tasks, and fetch that state upon request. The state, for what it's worth, is just an arbitrary string. The idea is to eventually map it to states defined in workflow config entities. The semantic meaning of any given state -- as in, does this state indicate that the task is complete, incomplete, or not applicable -- is not determined by the storage plugin. That will be dealt with in another issue.

Storage plugins should also have the ability to clear the stored data for a given checklist. They should NOT have the ability to report on or compute overall progress; that ability will live in another, separate service.

Checklist entities won't reference the storage plugins anywhere; that will be part of the configuration for individual task workflows. But having these plugins available is the first step towards any of that.

✨ Feature request
Status

Postponed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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

Merge Requests

Comments & Activities

  • Issue created by @phenaproxima
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί
    Checklist entities won't reference the storage plugins anywhere; that will be part of the configuration for individual task workflows. But having these plugins available is the first step towards any of that.
    

    So each task will have their own workflow associated, but the storage is associated to the checklist?

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    I haven't completely decided on that yet, @penyaskito. I think it probably makes for the least confusion if all items in the checklist are stored one way, although that is slightly less flexible.

  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    The blocker's in, so no longer postponed!

  • Merge request !15Start writing tests and stuff β†’ (Open) created by phenaproxima
  • Pipeline finished with Failed
    3 months ago
    Total: 146s
    #290571
  • Pipeline finished with Failed
    3 months ago
    Total: 142s
    #293480
  • Pipeline finished with Canceled
    3 months ago
    Total: 85s
    #293483
  • Pipeline finished with Failed
    3 months ago
    Total: 148s
    #293485
Production build 0.71.5 2024