Uploaded image for project: 'National Data Service'
  1. National Data Service
  2. NDS-394

Editing a stack's label while it is running causes desynchronized state

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • Labs Workbench - Beta
    • None
    • Backend
    • None
    • NDS Sprint 9

      With the completion of NDS-177, we have our first valid case where an application should be editable while it is running. Currently, the API server assumes that the application is stopped which causes problems when the application is running.

      As a result, the following line in the API server will need to be removed and/or handled in a different way:
      https://github.com/nds-org/ndslabs/blob/master/apiserver/server.go#L1156

      Some options might include:

      • Add a specific "rename" API call that does not assume an application is stopped (this might make sense for a one-off case)
      • Prevent the operation in the case of an invalid state, instead of assuming or forcing a valid state (i.e. fail-fast)
      • Remove this line altogether and rely on the UI to enforce validation (with separation of concerns in mind, this is highly unfavorable)

      This ticket is closed when the end-user of NDS Labs is able to edit a running Application's label without causing the stack to go into a wonky state.

              willis8 Craig Willis
              lambert8 Sara Lambert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Time Spent - 30 minutes Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - 30 minutes Remaining Estimate - 30 minutes
                  30m