canvas-lms/ui/features/learning_outcomes
Pat Renner ba9b7cc6cb add callback functionality to import outcomes modal
closes OUT-4097
flag=improved_outcomes_management

test-plan:
- enable feature flag
- visit account outcomes page
- click the "import" button
- verify uploading a CSV leads to a loading spinner
under the Manage tab
   - please ask me for a CSV if you need one!
- verify the import in progress spinner goes away
once the import is complete
- open the rails console
  - dc run --rm web bin/exec rails c
- update the last OutcomeImport:
  - oi = OutcomeImport.last
  - oi.workflow_state = 'importing'
  - oi.save!
- reload the outcomes tab
- verify you are met with a spinner
- verify switching to the 'mastery' or 'calculation'
tab hides the import in progress spinner
- verify switching to 'manage' shows the import
in progress spinner
- mark the import as failed:
  - oi.workflow_state = 'failed'
  - oi.save!
- verify a notification of failure appears on the screen
  - note that you may see a lot of notifications due to the
  network speed in local dev

Change-Id: I5cc41e0cd7bb717729415a6794871306491c58b5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/267531
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Manoel Quirino <manoel.quirino@instructure.com>
QA-Review: Manoel Quirino <manoel.quirino@instructure.com>
Product-Review: Ben Friedman <ben.friedman@instructure.com>
2021-07-06 14:55:41 +00:00
..
backbone/views
jst
index.js add callback functionality to import outcomes modal 2021-07-06 14:55:41 +00:00