Description
Under certain condition, when discovery for "Terraform Enterprise" is cancelled, UI get stuck with message"Discovery In Progress" state
Steps to Reproduce
1. On Admin portal, goto Manage > Config Management
2. Follow doc and configure a dummy "Terraform Enterprise"
3. On the UI launch the discovery for "Terraform Enterprise" config
4. Goto Discovery > Status page and you will see an empty Discovery Status created. Cancel this discover status.
5. Go back to Admin Portal config UI and verify that it gets stuck in "Discovery In Progress" state and never change
Workaround
1. Goto "sn_cmp_order" table
2. Search for entry for the "Terraform Enterprise" discovery with "Operation Name" = "Terraform Enterprise Interface.Discover"
3. Change the "Status" to Error.
Related Problem: PRB1414308