Repository navigation
Read a title refused with the text that stands as co-editing - #169
Merged
Merged
Conversation
docs edit now reads a 409 documentChanged on a title as the co-editing on the document's page whenever it was sent with --force or an --expect the document still stands at, with or without a body. The error is retryable and says to run the same command again later. Refused still, the last step on the page may never have been saved: the hint names the document's page, where somebody saves or resets the co-editing, and warns never to send a different text to get the title through. Minka counts a body equal, once cleaned, to the stored one as not named. A new title with the text that stands is then refused while the document is written together, like a title alone. Where the last step on the page was never saved, the refusal does not run out after 15 minutes. Only a save or a reset on the page, or a different text, ends it, and a different text loses what others typed. Previously, the CLI read only a 409 on a title without a body as the co-editing. A title sent with the text as it stands got the advice to merge and send it again, which met the same refusal. The CLI does not compare the body: Minka never holds a different one back, and a current --expect rules out a document written over. A stale --expect with a title and a body still names both causes. Its hint now names the condition. Where the body is the writer's own change, it is merged and sent again, which ends the co-editing. Where only the title is, the text as it stands goes with the new updatedAt, and a second refusal there is the co-editing. The fake keeps the co-editing as a log with the moment of its last step and whether that step was saved. A title is held back within the window or while the step is unsaved, and the body is compared as the fake's own cleaning keeps it. Resolves: https://minka.flownative.com/go/card/MNK-10A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #168. Minka now also holds back a new title sent with a body that, once cleaned, equals the stored text, while the document is being written together on its page (Minka PR 1124, not yet released). Where the last co-editing step was never saved, waiting alone does not help: the title is refused until somebody saves or resets the co-editing on the page. Until now,
docs editread the co-editing case only from a request without a body, so a title sent with the unchanged text got "written over since it was read" and advice to merge and send again.The case is now read from a request with
--title, sent with--forceor with an--expectthe document still stands at, whether or not a body went with it. No HTML comparison is needed: a different body is never held back, and a current--expectrules out a document written over. A race always lands on the stale path, never on this one.retryable, with a hint to run the same command again later;--expectwith a title: the ambiguous message from Tell a title held back by co-editing from a document written over #168. With a body, the hint now says which way to go: if the body is your own change, merge it and send it with the new--expect(which ends the co-editing); if only the title is, send it with the text as it stands.Register: C-203 rewritten, with C-012 and the output contract adjusted. Checked against Minka's edit handler and
ApiDocumentTitleTest, not live yet. One independent review, with every finding fixed. Each safeguard has a test and a sabotage proof.Resolves: https://minka.flownative.com/go/card/MNK-10A