cancel
Showing results for 
Search instead for 
Did you mean: 
cesbrandt
Community Champion

Truncated Admin Logs

Jump to solution

Update 2018-10-29 9:37 GMT-4

I found the when in the commit logs on GitHub (truncate large syllabus changes in course change auditor · instructure/canvas-lms@f5d35de · GitHub). Seems the update was made on 2018-09-12, and the comment says that it "closes #CORE-1694," but I can't find what that's actually referring to. It's not an issue ID on GitHub and there's no other detail regarding the reasoning for the change.

I've also been through the release notes since the change was made and could find no mention of this change, which seems a bit odd for something used by the official UI.

Original Post 2018-10-22 12:06 GMT-4

So, we used to be able to look up changes to the syllabus and get the full code changes, but now the API appears to be truncating it.

BeforeAfter
294042_pastedImage_2.png294043_pastedImage_3.png

When did this happen? Why did this happen? Is there a way to get the non-truncated logs back? Some setting in the API call, maybe?

Here's why this is important to us: we use the syllabus page as the Course Homepage with a custom grid block display that faculty frequently break. Using the same API call used to retrieve the Admin Logs list (/api/v1/audit/course/courses/:course_id?id=:course_id), we created a little Userscript that allowed our support to basically 1-click fix the grid blocks by restoring them from the first log entry where the syllabus_body was modified. Now, these calls are being truncated at 997 characters (+ 3 for the ellipsis to make 1,000 displayed in the log entries), which breaks the script because the code is too long.

This also breaks manually looking up the code in the logs to restore them, requiring that the blocks be manually rebuilt from scratch.

0 Kudos
1 Solution

Accepted Solutions
cesbrandt
Community Champion

Go figure, I make the update to my initial question and I get the answer courtesy of the Canvas LMS IRC (thank you, kungfury!).

So, it seems the change was made to account for a limitation of Cassandra that resulted at times in the audit logs not being generated. The change was implemented in response to an internal issue tracker.

Basically, doesn't look like it'll be changed back to having the full entries. Smiley Sad

View solution in original post

1 Reply
cesbrandt
Community Champion

Go figure, I make the update to my initial question and I get the answer courtesy of the Canvas LMS IRC (thank you, kungfury!).

So, it seems the change was made to account for a limitation of Cassandra that resulted at times in the audit logs not being generated. The change was implemented in response to an internal issue tracker.

Basically, doesn't look like it'll be changed back to having the full entries. Smiley Sad

View solution in original post