Problem/Motivation

Applying a model change to the API the moment an editor adds a field would mean the front end learns about API changes in production. The whole design rests on a queue between the two: the model changes, the API does not, until someone says so.

Proposed resolution

  • Storage for pending entries: what changed, which endpoints and structures it affects, what is proposed, who queued it and when.
  • Entry kinds: new, removed, type changed, renamed, unmapped field, unmapped paragraph type, convention suggestion, generator conflict.
  • Idempotent — rescanning does not duplicate an entry, and an entry whose cause disappeared is withdrawn.
  • Survives a cache rebuild and a deployment, because a queue that empties itself is worse than no queue.

Remaining tasks

Everything.

Issue fork myrest-3622448

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed f5cacb93 on 1.0.x
    Issue #3622448: Store pending model changes in a queue
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)