Created
May 10, 2016 20:30
-
-
Save adam-phillipps/588386440de6692136469eb3103fa845 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to observe it, run the email spec in catalog automation or add a module item via japanda using a published assignment, | |
published module in a published course or debug around line 30 in module_item.rb | |
notice the request has "published: true" and the response has "published: false" | |
response == {"id"=>48204, "title"=>"module-item568081ed870fb5e58aab7ccd606c247c", "position"=>1, "indent"=>0, "type"=>"Assignment", "module_id"=>16508, "html_url"=>"https://catalogautomation.instructure.com/courses/42006/modules/items/48204", "content_id"=>48732, "url"=>"https://catalogautomation.instructure.com/api/v1/courses/42006/assignments/48732", "completion_requirement"=>{"type"=>"must_view"}, "published"=>false} | |
@request == {:module_item=>{:title=>"module-item568081ed870fb5e58aab7ccd606c247c", :type=>"Assignment", :content_id=>48732, :completion_requirement=>{:type=>"must_view"}, :published=>true}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment