{"push_id":2378039583,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"412e49baee3ba8b457a81c0a86851409b3aef101","before":"5b7e200bc033f529f0190e55def05b005bd0d3de","commits":[{"sha":"412e49baee3ba8b457a81c0a86851409b3aef101","author":{"name":"Augusto Callejas","email":"13cff03885407e4dcea880a44eeb95c2fa5749c0@instructure.com"},"message":"Outcome import creation/status endpoints\n\ncloses OUT-1534\n\nScheduling of outcome import jobs will occur in a separate PS,\nafter this merges and OUT-1997 is merged too.\n\ntest plan:\n  - start up canvas\n  - generate api docs:\n    > docker-compose run --rm web bundle exec rake doc:api\n  - load api docs in http://canvas.docker/doc/api/index.html\n  - read over the \"Outcomes CSV Format\" and make sure it reads well\n  - read over the \"Outcomes Import\" and make sure it reads well\n  - obtain an access token:\n    https://community.canvaslms.com/docs/DOC-10806-4214724194\n  - request an outcome import, replace \"canvas-path\" and \"token\" values:\n    curl -F attachment=@<canvas-path>/spec/lib/outcomes/fixtures/demo.csv \\\n         -F 'import_type=instructure_csv' \\\n         -H \"Authorization: Bearer <token>\" \\\n         http://canvas.docker/api/v1/accounts/1/outcome_imports\n  - in a rails console, confirm that the import was accepted:\n    > docker-compose run --rm web bin/rails console\n    % pp OutcomeImport.last\n    # confirm that the import is in the 'created' state, associated with\n      your user and associated with an account context\n    # note the \"id\" value for later use\n    % pp OutcomeImport.last.attachment\n    # confirm that the attachment is in the 'processed' state and has\n      the filename \"test_outcomes_1.csv\" passed in above\n  - request the status of the outcome import (should return a message\n    saying \"The specified resource does not exist\"):\n    curl -H \"Authorization: Bearer <token>\" \\\n         http://canvas.docker/api/v1/accounts/1/outcome_imports/latest\n  - back in the rails console created above, manually transition\n    the import to \"importing\":\n    % OutcomeImport.last.job_started\n  - run the above curl command again, and this time the latest outcome\n    import should be returned, in the 'importing' state\n  - run the above curl command again, replacing \"latest\" with the \"id\"\n    value obtained above. it should return the same response as the\n    previous step.\n\nChange-Id: Ice7d67b625b443cec70f531f2e673face6d6fbeb\nReviewed-on: https://gerrit.instructure.com/142024\nReviewed-by: Neil Gupta <ngupta@instructure.com>\nReviewed-by: Frank Murphy <fmurphy@instructure.com>\nTested-by: Jenkins\nQA-Review: Frank Murphy <fmurphy@instructure.com>\nProduct-Review: Neil Gupta <ngupta@instructure.com>","distinct":true,"url":"https://api.github.com/repos/instructure/canvas-lms/commits/412e49baee3ba8b457a81c0a86851409b3aef101"}]}
{"actor":{"display_login":"instructure-gerrit"}}