Unable to delete empty outcome

128 views
Skip to first unread message

Shane MacPhillamy

unread,
Jun 11, 2013, 8:16:00 PM6/11/13
to canvas-l...@googlegroups.com
When I click on the top level outcome "Level 1" the AJAX request is to https://education.blinkmobile.com.au/api/v1/outcomes/4 which receives an HTTP 404 response.

The screenshot shows the empty outcomes, is there a way to cleanup/remove these empty outcomes?



Louise Munnoch

unread,
Jun 28, 2013, 2:18:07 AM6/28/13
to canvas-l...@googlegroups.com
Anyone?

Daniel @ SMU

unread,
Jul 5, 2013, 2:13:51 PM7/5/13
to canvas-l...@googlegroups.com
Is the outcome aligned anywhere? That's one reason I know why deleting an outcome fails.

Louise Munnoch

unread,
Sep 10, 2013, 1:40:49 AM9/10/13
to canvas-l...@googlegroups.com
Yes Daniel, they are.
I drilled down to the course level, thinking that as I could delete it there and then move upward, but I still get an 'unable to delete' message. This is sort of embarassing; as they were only ever created for testing purposes.
Thanks for your help,
Louise

Louise Munnoch

unread,
Sep 10, 2013, 2:03:16 AM9/10/13
to canvas-l...@googlegroups.com
One more thing.. the 404 error still exists - it's as if the outcome HAS been deleted but still shows up. The outcomes are not aligned with any Rubrics; I deleted them -- so there really isn't any reason as to why they aren't being removed.


On Saturday, 6 July 2013 04:13:51 UTC+10, Daniel @ SMU wrote:

Simon Williams

unread,
Sep 10, 2013, 11:07:34 AM9/10/13
to canvas-l...@googlegroups.com
Hey Louise,

Sorry for the trouble.  The outcome data model is kind of messy, and we've recently fixed some bugs around un-aligning rubrics which may not be on our stable branch yet.  In the meantime, if you are a hosted account you can file a ticket at sup...@instructure.com to get them cleaned up, or if you are hosting canvas yourself, you should be able to run the following in the rails console to clean up the data:

LearningOutcome.find(4).destroy

Or you can replace the 4 with any id (the number after outcomes/ in the url)

For reference, the relevant commits that help correct this problem in the future are:

Hope that helps,
Simon


Simon Williams | Software Engineer

--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Louise Munnoch

unread,
Sep 10, 2013, 8:56:31 PM9/10/13
to canvas-l...@googlegroups.com
Simon - thanks for your  help.
All Outcomes deleted successfully!
Louise


On Wednesday, 12 June 2013 10:16:00 UTC+10, Shane MacPhillamy wrote:
Reply all
Reply to author
Forward
0 new messages