Problem/Motivation

Refusing to write is only half an answer: the person now has a file the generator will not update and no path forward. Three ways out have to exist, and without them "the generator stopped touching my file" becomes a frozen endpoint nobody remembers freezing.

Proposed resolution

  • A conflict entry in the queue with the diff between what is on disk and what would be written.
  • Take generated — shows the diff, overwrites on confirmation, and says on the button that the edit will be lost.
  • Keep mine — marks the file frozen, never touched again, with a standing warning that the endpoint is behind the model.
  • Move to a subclass — shows which class to create and what to put in it, then returns the file to the generator.
  • Frozen files listed on the status page, because the cost of freezing is invisible six months later.

Remaining tasks

Everything.

Issue fork myrest-3621777

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 bd04dc59 on 1.0.x
    Issue #3621777: Handle a conflict between a generated file and a hand...
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)