huskies: merge 1105 bug Freeze from Backlog stores wrong resume_to — Unfreeze restores to Coding instead of Backlog
This commit is contained in:
@@ -78,6 +78,16 @@ pub fn apply_transition(
|
||||
super::Stage::Rejected { reason, .. } | super::Stage::Blocked { reason } => {
|
||||
crate::crdt_state::set_resume_to_raw(story_id, reason);
|
||||
}
|
||||
// Story 1105: write the resume target so read-back can reconstruct the
|
||||
// correct variant. Without this, the register is stale (or empty) and
|
||||
// the deserialiser falls back to Coding regardless of where the story
|
||||
// was when it was frozen.
|
||||
super::Stage::Frozen { resume_to } => {
|
||||
crate::crdt_state::set_resume_to_raw(story_id, resume_to.dir_name());
|
||||
}
|
||||
super::Stage::ReviewHold { resume_to, .. } => {
|
||||
crate::crdt_state::set_resume_to_raw(story_id, resume_to.dir_name());
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user