Consider implementing an allowedTransition map to explicitly define all valid phase transitions

XMLWordPrintableJSON

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the DAO methods handle acceptable previous states with explicit checks in the function. While this makes transitions obvious to readers, it can be verbose. An "allowedTransitions" map could reduce verbosity and serve as a single source of truth. This can be reused in unit tests to validate transitions, especially if new phases were added in the future.

            Assignee:
            Unassigned
            Reporter:
            Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: