canvas-lms/lib
Brian Palmer 032a317cf1 use defined discussion formats in assignment and submission apis
fixes #6560

The assignment and submission apis were written before the discussion
api, and the response formats diverged. This merges the two formats so
that all apis return the same data structures.

Also, removed the attachments relation from DiscussionEntry, it's cruft.
We have to continue returning the attachments array in the json for now,
for backwards compatibility, since it includes the .attachment field as
well.

test plan: API calls to read discussion assignments and their
submissions should now include the full json response data, see the api
documentation for the discussions api.

Change-Id: Ib394d7e5c3fcf261adb8663470c6822fe2476b03
Reviewed-on: https://gerrit.instructure.com/7395
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2011-12-12 09:03:09 -07:00
..
api/v1 use defined discussion formats in assignment and submission apis 2011-12-12 09:03:09 -07:00
basic_lti implement blti extensions 0.0.4 outcome service, refs #5892 2011-11-08 08:25:20 -07:00
canvas cleaning up grade exchange 2011-12-09 13:45:19 -07:00
cc blti extensions in common cartridge export/import 2011-12-09 12:24:53 -07:00
ext try_rescue speedup 2011-12-12 08:36:59 -07:00
handlebars register handlebars templates even if not require()d 2011-11-09 12:18:39 -07:00
i18n_extraction extractor support for multi-line define/require 2011-11-18 10:12:58 -07:00
kaltura rewrite user content in the api for file links and media comments 2011-10-10 15:05:28 -06:00
reporting replace ActiveRecord::Base calls with subclass calls where it makes sense 2011-07-18 13:56:08 -06:00
sis make sure sis import libraries depend on the right files 2011-11-15 16:00:53 -07:00
tasks make rake js:test task fail when a qunit test fails 2011-12-08 12:45:23 -07:00
api.rb don't break in a proc; fixes #6452 2011-11-28 16:12:12 -07:00
api_route_set.rb launch lti tool when viewing external_tool assignment 2011-11-04 09:42:13 -06:00
api_routes.rb don't require loading the whole rails stack to generate api docs 2011-07-19 14:15:39 -06:00
authentication_methods.rb don't use the alternate CAS login url during api oauth flow 2011-12-08 13:07:25 -07:00
auto_handle.rb use ActiveSupport::SecureRandom when generating random tokens 2011-07-18 14:44:59 -06:00
basic_lti.rb external tool resource selector in WYSIWYG editor 2011-11-22 16:12:12 -07:00
canvas.rb use the redis data instance rather than rails cache for oauth codes 2011-08-10 13:10:49 -06:00
cc.rb add calendar events to export/import 2011-04-26 12:28:31 -06:00
color.rb Initial commit. 2011-01-31 18:57:29 -07:00
content_zipper.rb remove deprecated ruby syntax 2011-09-27 10:28:22 -06:00
copy_authorized_links.rb Initial commit. 2011-01-31 18:57:29 -07:00
custom_validations.rb adding content tag url validation 2011-11-09 13:38:42 -07:00
cutycapt.rb add some url filtering to cutycapt websnap processing 2011-09-06 14:46:14 -06:00
delicious_diigo.rb fix cert verification in delicious calls 2011-11-18 09:12:03 -07:00
enrollments_from_user_list.rb refactor user creation/invitations closes #5833 2011-10-24 12:07:08 -06:00
eportfolio_page.rb preliminary i18n setup, closes #4124 2011-06-06 14:19:03 -06:00
external_feed_aggregator.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
external_statuses.rb Initial commit. 2011-01-31 18:57:29 -07:00
facebook.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
file_in_context.rb handle repeated qti imports of the same filename better, closes #4411 2011-04-29 12:33:31 -06:00
file_splitter.rb Initial commit. 2011-01-31 18:57:29 -07:00
google_doc_entry.rb fixing google doc deletion. refs #5796 2011-10-31 17:13:06 -06:00
google_docs.rb update oauth lib to 0.4.5 and our usage to oauth 1.0a 2011-11-01 12:08:10 -06:00
grade_calculator.rb explicit utc db times in update_all 2011-08-30 16:46:25 -06:00
gradebook_csv_parser.rb csv lib compat in ruby 1.9.x 2011-10-12 09:36:18 -06:00
gradebook_importer.rb optimize gradebook uploads refs #6088 2011-12-08 16:15:44 -07:00
has_content_tags.rb allow module progression when background job hasn't finished 2011-12-09 12:52:36 -07:00
host_url.rb reset HostUrl caches between specs 2011-11-14 16:01:05 -07:00
i18n_time_zone.rb localize Profile 2011-06-24 09:32:53 -06:00
imported_html_converter.rb add id to wiki page urls. fixes #2635. 2011-12-01 12:22:16 -07:00
incoming_message_processor.rb fix incoming message processing; fixes #5962 2011-10-15 11:30:42 -06:00
linked_in.rb update oauth lib to 0.4.5 and our usage to oauth 1.0a 2011-11-01 12:08:10 -06:00
locale_selection.rb localize notifications according to user's locale (or browser_locale) 2011-08-03 13:13:29 -06:00
message_dispatcher.rb deliver messages to all recipients in one job, closes #1 2011-02-22 16:23:58 -07:00
multipart.rb folder_controller optimizations stopped sending filename field 2011-08-04 16:49:55 -06:00
mutable.rb hide existing stream items when an assignment is muted 2011-12-11 16:56:49 -07:00
nil_store.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_question_link_migrator.rb don't die if a file or question is missing 2011-11-22 17:36:40 -07:00
request_context_generator.rb log context when using local rails buffered logger 2011-07-25 13:25:18 -06:00
scribd_api.rb preliminary i18n setup, closes #4124 2011-06-06 14:19:03 -06:00
send_to_inbox.rb fix send_to_inbox for submission comments, closes #4898 2011-06-16 13:20:30 -06:00
send_to_stream.rb generate an error report for all errors, not just some of them 2011-05-11 10:36:56 -06:00
sis.rb new generic-format importer classes 2011-09-26 11:24:58 -06:00
skip_callback.rb refactor sticky sis fields 2011-09-27 16:34:37 -06:00
ssl_common.rb support funky characters in username/passwords for http url parsing 2011-09-08 14:21:50 -06:00
stats.rb simplifying and correcting the stats library 2011-11-29 13:22:59 -07:00
sticky_sis_fields.rb allow sis imports to make things sticky or clear stickiness altogether 2011-10-13 10:54:58 -06:00
submission_list.rb display gradebook history properly. fixes #6051 2011-10-24 12:25:27 -06:00
summary_message_consolidator.rb explicit utc db times in update_all 2011-08-30 16:46:25 -06:00
syslog_wrapper.rb log context when using local rails buffered logger 2011-07-25 13:25:18 -06:00
text_helper.rb truncate text to max bytes; fixes #5881 2011-10-10 08:30:19 -06:00
tinychat.rb moving tinychat config to /plugins; refs #4194 2011-06-01 22:04:26 -06:00
tmail_parser.rb Initial commit. 2011-01-31 18:57:29 -07:00
turnitin.rb assignment-level turnitin settings, closes #4938 2011-09-27 16:02:01 -06:00
twitter.rb update oauth lib to 0.4.5 and our usage to oauth 1.0a 2011-11-01 12:08:10 -06:00
twitter_searcher.rb check all models for protecting attributes refs #3847 2011-05-25 17:38:50 -06:00
twitter_user_poller.rb fix twitter poller x-ratelimit-reset handling 2011-08-24 15:15:41 -06:00
unzip_attachment.rb set max_attempts to 1 for submit_to_scribd 2011-10-15 08:06:00 -06:00
user_content.rb allow basic lti links from arbitrary content 2011-11-07 12:38:19 -07:00
user_list.rb don't create temp users for closed registration refs #5833 2011-11-16 14:18:57 -07:00
uuid_singleton.rb Initial commit. 2011-01-31 18:57:29 -07:00
workflow.rb fix licensing on workflow library 2011-05-03 12:25:21 -06:00
xmlcanonicalizer.rb Initial commit. 2011-01-31 18:57:29 -07:00
zip_extractor.rb Initial commit. 2011-01-31 18:57:29 -07:00