canvas-lms/app/controllers
Josh Orr d2925d4c58 Add courses for user endpoint
FIXES MBL-4841

New Endpoint:
  get api/v1/users/:user_id/courses/

Test Plan

1. Create student account with course enrollment on one shard.
2. Create an account to act as a parent on a different shard from student.
3. Add student as an observee of parent using the student's token to
create the association.
4. Call the new endpoint using the parent's auth token and the student's
id. Ensure that you can see the students courses on the student's shard.

Change-Id: Ie3fc15bc2c70a9e219d14c1a91e90eccfabc2559
Reviewed-on: https://gerrit.instructure.com/64943
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Ben Kirato <benk@instructure.com>
Product-Review: Josh Orr <jgorr@instructure.com>
2015-11-03 22:48:07 +00:00
..
bookmarks bookmark api: handle string position, fixes CNVS-20628 2015-05-26 22:37:18 +00:00
data_exports_api data export api 2014-03-07 22:31:43 +00:00
filters rails4: change allow_app_profiling #filter to #before 2015-07-15 20:30:52 +00:00
live_assessments no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
login correctly record login events in login/logout audit log 2015-10-06 18:27:46 +00:00
lti add split secret support for lti 2 2015-09-18 16:41:04 +00:00
polling update API doc required params - 9 2014-08-26 16:14:19 +00:00
quizzes Fix practice quiz creation 2015-10-29 23:20:00 +00:00
account_authorization_configs_controller.rb rename account authorization configs to authentication providers in routes 2015-07-21 23:58:23 +00:00
account_notifications_controller.rb fix account notification course roles 2014-12-17 20:10:03 +00:00
account_reports_controller.rb Removed unnecessary parameter from report status doc 2015-03-24 15:00:48 +00:00
accounts_controller.rb fix avatar pagination limit 2015-10-27 17:07:01 +00:00
admins_controller.rb be more lenient in interpreting send_confirmation boolean 2015-06-18 17:05:51 +00:00
alerts_controller.rb new roles 2014-10-31 19:44:14 +00:00
announcements_controller.rb send asset accesses as live events 2015-05-05 12:52:50 +00:00
app_center_controller.rb Start Setting app_center_id via API POST and find installed apps via the app_center_id property 2015-06-16 14:48:40 +00:00
application_controller.rb accepting future enrollments should retain readonly access 2015-10-29 16:29:02 +00:00
appointment_groups_controller.rb don't use preload_associations 2014-09-30 18:04:00 +00:00
assessment_questions_controller.rb remove move_question 2014-03-07 17:47:12 +00:00
assignment_groups_api_controller.rb fix move_assignments_to documentation, fixes CNVS-20773 2015-06-01 17:07:01 +00:00
assignment_groups_controller.rb grading period filtering respects overrides 2015-10-05 15:01:14 +00:00
assignment_overrides_controller.rb update API doc required params - 2 2014-08-18 16:40:31 +00:00
assignments_api_controller.rb observers using the api can see observees grades 2015-10-15 23:09:02 +00:00
assignments_controller.rb return deleted enrollments if requested in enrollments index 2015-10-29 18:41:27 +00:00
auditor_api_controller.rb enable Audit log search 2014-08-16 01:53:39 +00:00
authentication_audit_api_controller.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
brand_configs_controller.rb translate brandable css variable names 2015-10-27 18:26:39 +00:00
calendar_events_api_controller.rb fix the timezone problem with recurring events 2015-09-29 17:21:10 +00:00
calendar_events_controller.rb Recurring calendar events 2015-08-25 18:55:42 +00:00
calendars_controller.rb course nicknames 2015-10-21 23:03:51 +00:00
canvadoc_sessions_controller.rb canvadocs annotations 2015-09-04 16:42:17 +00:00
collaborations_controller.rb redirect to google drive auth for collaboration show 2015-10-28 18:29:20 +00:00
comm_messages_api_controller.rb delete facebook integration 2015-03-30 20:21:58 +00:00
communication_channels_controller.rb Link to reset bounce counts for communication channels 2015-11-03 00:43:35 +00:00
conferences_controller.rb Don't invite users with concluded enrollments to conferences 2015-09-22 15:18:13 +00:00
content_exports_api_controller.rb Update parameters in the following API docs - 3 2014-08-26 16:42:33 +00:00
content_exports_controller.rb adds UI & backend for offline content 2015-09-30 16:22:18 +00:00
content_imports_controller.rb fix Style/EmptyLineBetweenDefs issue 2015-04-29 16:28:39 +00:00
content_migrations_controller.rb Make LTI configurations accept canvas icon class 2015-09-21 17:59:40 +00:00
context_controller.rb show sis ids on course people page with :read_sis permission 2015-10-22 12:32:07 +00:00
context_module_items_api_controller.rb improve item_sequence endpoint 2015-06-24 20:23:33 +00:00
context_modules_api_controller.rb fix server error with modules api+inline items as observer 2015-10-08 14:02:25 +00:00
context_modules_controller.rb modules: don't show overdue icon when submission exists 2015-10-27 15:44:16 +00:00
conversations_controller.rb more accurate contextless send permission in conversations ui 2015-11-02 18:44:08 +00:00
course_audit_api_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
course_nicknames_controller.rb course nicknames 2015-10-21 23:03:51 +00:00
courses_controller.rb Add courses for user endpoint 2015-11-03 22:48:07 +00:00
crocodoc_sessions_controller.rb Stubbing out Crocodoc filter for moderated_grading 2015-09-04 02:15:00 +00:00
custom_data_controller.rb course nicknames 2015-10-21 23:03:51 +00:00
custom_gradebook_column_data_api_controller.rb implement notes column for react-gb 2015-10-28 14:39:22 +00:00
custom_gradebook_columns_api_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
developer_keys_controller.rb Dev keys created from site admin shouldnt have an account id 2015-10-05 16:06:36 +00:00
discussion_entries_controller.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
discussion_topics_api_controller.rb rails4: various api spec fixes 2015-07-21 15:44:32 +00:00
discussion_topics_controller.rb document `attachment` parameter to "Create discussion" endpoint 2015-10-10 03:35:19 +00:00
enrollments_api_controller.rb return deleted enrollments if requested in enrollments index 2015-10-29 18:41:27 +00:00
eportfolio_categories_controller.rb fix Style/EmptyLineBetweenDefs issue 2015-04-29 16:28:39 +00:00
eportfolio_entries_controller.rb use legacy verifiers for eportfolios 2015-05-04 16:16:44 +00:00
eportfolios_controller.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
epub_exports_controller.rb exportable considers sort setting; EpubExport hooked up to Exportable 2015-10-13 16:52:38 +00:00
equation_images_controller.rb make the codecogs equation base url a setting 2014-02-18 00:14:59 +00:00
errors_controller.rb record real user when error report is submitted in student view 2015-09-24 14:40:57 +00:00
external_content_controller.rb don't depend on placement advice for content-item 2015-10-22 19:39:57 +00:00
external_feeds_controller.rb remove unused external feeds columns 2015-01-07 23:36:18 +00:00
external_tools_controller.rb Use json-jwt instead of ruby-jwt 2015-10-31 13:05:59 +00:00
favorites_controller.rb Add group favorites 2015-09-17 19:22:54 +00:00
feature_flags_controller.rb make feature flag update deal with constraint race condition 2015-05-20 02:36:22 +00:00
file_previews_controller.rb s/jammit_css/css_bundle 2015-07-07 21:26:35 +00:00
files_controller.rb fix cross-shard submission file upload 2015-10-21 19:35:57 +00:00
folders_controller.rb allow users to view course files with :manage_files alone 2015-10-07 21:32:11 +00:00
grade_change_audit_api_controller.rb record anonymous grading in grade change audit log 2015-10-06 16:20:22 +00:00
gradebook_csvs_controller.rb Properly escape filenames with slashes on local storage 2015-10-13 15:11:51 -07:00
gradebook_history_api_controller.rb don't use preload_associations 2014-09-30 18:04:00 +00:00
gradebook_uploads_controller.rb gradebook uploads display error when no file is given 2015-07-27 17:50:50 +00:00
gradebooks_controller.rb disable SRGB's assignment editing for past grading periods 2015-11-02 19:30:23 +00:00
grading_periods_controller.rb one grading period save button 2015-06-18 18:46:22 +00:00
grading_standards_api_controller.rb Add ability to get grading standards via api 2015-07-30 22:14:44 +00:00
grading_standards_controller.rb make grading periods feature flag a course level flag 2015-04-16 15:19:49 +00:00
group_categories_controller.rb Allows teacher to clone a group set. 2015-08-07 16:31:52 +00:00
group_memberships_controller.rb add sis user id support to group memberships API 2015-09-29 05:32:53 +00:00
groups_controller.rb don't show deleted groups in admin page 2015-09-17 22:03:15 +00:00
info_controller.rb Encourage users to submit an email 2015-11-02 22:05:49 +00:00
jobs_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
jwts_controller.rb Add a JWT endpoint for generating services tokens 2015-11-03 19:32:45 +00:00
legal_information_controller.rb [SOC-2] use terms_of_use_url and privacy_policy_url helpers 2015-01-23 22:30:27 +00:00
login_controller.rb fix authentication_provider= with ids not names 2015-10-20 21:36:09 +00:00
lti_api_controller.rb submit orginal turnitin submission 2015-08-04 21:00:42 +00:00
media_objects_controller.rb don't show media preview thumbnails to students for locked files 2015-03-26 16:33:53 +00:00
media_tracks_controller.rb freeze constants in controllers 2015-04-27 20:04:40 +00:00
messages_controller.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
migration_issues_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
moderation_set_controller.rb move provisional grade endpoints to provisional_grades_controller 2015-09-28 21:05:39 +00:00
notification_preferences_controller.rb Enhancement for Notification Prefs 2015-08-05 19:21:35 +00:00
oauth2_provider_controller.rb Generate a access token with the refresh token 2015-10-08 21:53:53 +00:00
oauth_proxy_controller.rb Use json-jwt instead of ruby-jwt 2015-10-31 13:05:59 +00:00
outcome_groups_api_controller.rb allow teachers to unlink imported outcomes if unused 2015-10-29 18:41:33 +00:00
outcome_groups_controller.rb Outcomes API - switch default calculation_method to be 'highest' 2015-01-07 18:13:38 +00:00
outcome_results_controller.rb Don't show outcomes from deleted rubrics. 2015-10-12 21:00:43 +00:00
outcomes_api_controller.rb Learning Outcome: Don't allow changes after assessing 2015-06-09 19:54:52 +00:00
outcomes_controller.rb use manage_rubrics permission for rubrics pages 2015-08-10 15:07:16 +00:00
outcomes_import_api_controller.rb Outcomes Import API: Expose ISTE standards 2015-10-07 05:13:49 +00:00
page_comments_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
page_views_controller.rb update API doc required params - 12 2014-08-25 16:50:04 +00:00
peer_reviews_api_controller.rb peer reviews api 2015-07-08 21:18:59 +00:00
plugins_controller.rb Plugins UI needs 'dynamic_form' 2015-04-15 14:44:49 +00:00
profile_controller.rb hide "scores in email" notification setting if disabled by root account 2015-09-30 22:22:12 +00:00
progress_controller.rb converting @object notation to @model part 9/11 2014-02-12 16:21:37 +00:00
provisional_grades_controller.rb crocodoc filtering for moderated grading 2015-10-23 16:39:21 +00:00
pseudonym_sessions_controller.rb refactor PseudonymSessionsController 2015-05-15 14:44:38 +00:00
pseudonyms_controller.rb allow setting auth providers on sis import 2015-08-07 20:23:45 +00:00
question_banks_controller.rb allow users to view question banks without edit rights 2015-09-21 18:36:21 +00:00
role_overrides_controller.rb rails4: deprecate Relation#all in favor of Relation#to_a 2015-07-24 21:28:14 +00:00
rubric_assessments_controller.rb allow submissions graded through rubrics to be graded anonymously 2015-10-20 18:12:16 +00:00
rubric_associations_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
rubrics_controller.rb allow rubric_assessments to belong to provisional grades 2015-08-14 15:40:39 +00:00
search_controller.rb rails4: remove Relation#with_each_shard 2015-07-17 12:31:15 +00:00
sections_controller.rb add enable_sis_reactivation option to api creation endpoints 2015-05-27 16:18:36 +00:00
self_enrollments_controller.rb add authentication_provider support to self enrollment controller 2015-07-22 19:12:44 +00:00
services_api_controller.rb canvas kaltura gem 2014-04-16 19:39:45 +00:00
sis_api_controller.rb add code to sis assignments api errors 2015-09-25 22:35:17 +00:00
sis_imports_api_controller.rb fix pagination headers for sis API 2015-07-17 23:13:38 +00:00
sub_accounts_controller.rb Add sis_account_id to sub-account creation api 2015-08-13 22:21:43 +00:00
submission_comments_api_controller.rb set Attachment#user_id when uploading files via the API 2014-04-24 20:58:47 +00:00
submission_comments_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
submissions_api_controller.rb return deleted enrollments if requested in enrollments index 2015-10-29 18:41:27 +00:00
submissions_controller.rb fix "Download Submissions" in gradebook in concluded courses 2015-10-23 17:28:07 +00:00
tabs_controller.rb Fixes issue with updating tab via api 2015-07-31 01:30:46 +00:00
terms_api_controller.rb api: allow admins to create/edit/delete enrollment terms 2015-01-02 17:28:24 +00:00
terms_controller.rb remove N+1 queries on term index page 2015-07-31 20:21:20 +00:00
tokens_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
tours_controller.rb added tour guide libs 2013-05-22 19:30:13 +00:00
usage_rights_controller.rb copy-folder and copy-file endpoints 2015-02-09 22:13:55 +00:00
user_lists_controller.rb Capture a users initial_enrollment_type when invited to a course. Fixes #10893 2012-10-04 14:26:15 -06:00
user_notes_controller.rb disambiguate last_user_note usage 2014-11-26 20:13:04 +00:00
user_observees_controller.rb Add user avatars to observee's list return object 2015-10-22 16:52:43 +00:00
users_controller.rb performance improvements for dashboard sidebar 2015-10-30 13:08:21 +00:00
wiki_pages_api_controller.rb Decouple Wiki Page permissions logic from api index 2015-07-24 22:03:00 +00:00
wiki_pages_controller.rb make sure you can view all wiki pages from wiki front_page 2015-10-31 20:14:50 +00:00
zip_file_imports_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00