Problem:
In T237333 we built the UI part of deciding the right edit flow (fixing or updating a value). We now need to add the correct edit flow in the backend.
BDD
GIVEN a Bridge edit
AND the editor chooses fix
WHEN saving the edit
THEN the new value overwrites the existing value
AND the rank of the value is not changed
AND the qualifiers and references are preserved
GIVEN a Bridge edit
AND the editor chooses update
WHEN saving the edit
THEN the rank of the existing value is set to normal
AND the new value is stored with preferred rank without qualifiers and references
AND the old value keeps the existing qualifiers and references
Acceptance criteria:
- the new statement is stored with preferred rank (update flow)
- the old value is either overwritten (fix flow) or kept with normal rank (update flow)
Notes
- We do the update flow in one edit; for now, this will result in an unhelpful edit summary, but we hope to improve that later with T233395: Step 1.2: more precise edit summaries for Bridge edits (impact: high).