on master help sign in
gall-guide: lifecycle - add further versioned state explanation
commitb606cf6f0e8babd0c3f34d069377b4c3a9ff1bcc authorTinnus Napbus <admin@tinnus-napbus.xyz> dateWed 8 Dec 2021, 04:56 (5 years ago) parent3329d40
1 file changed+5
content/docs/userspace/gall-guide/4-lifecycle.md+5
content/docs/userspace/gall-guide/4-lifecycle.md+5
@@ -118,6 +118,11 @@ When you later update your agent with a new state version, you'd change it to:
118118--
119119```
120120
121+Another reason for versioning the state type is that there may be cases where
122+the state type doesn't change, but you still want to apply special transition
123+logic for an old state during upgrade. For example, you may need to reprocess
124+the data for a new feature or to fix a bug.
125+
121126## Adding the state
122127
123128Along with a core defining the type of the state, we also need to actually add