canvas-lms/app/controllers
Benjamin Porter 2d4e4f5c92 Add ability to set calculation_method and calculation_int when creating
an outcome

When creating an outcome, allow the ability to specify
a calculation_method and/or a calculation_int

Fixes CNVS-17681

Test Plan:
    - Using the outcome groups API link action, create a new outcome with
      a specific calculation_method and calculation_int
      ('decaying_average' and 65 are a good test case)
    - Observe that an outcome was successfully created with the
      specified calculation_method and calculation_int
    - Attempt to create another outcome, this time specifying an invalid
      calculation_method (like 'foo bar baz qux')
    - Observe that the call fails with an explanatory error message
    - Repeat with a valid calculation_method but an invalid
      calculation_int (such as 'decaying_average' and 15000)
    - Observe a failed call with an explanatory error message

Change-Id: I7aacb66fa2b70291d7b09c53214191e1ed770a1a
Reviewed-on: https://gerrit.instructure.com/46326
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Benjamin Porter <bporter@instructure.com>
2015-01-07 18:12:50 +00:00
..
data_exports_api data export api 2014-03-07 22:31:43 +00:00
filters QLA - use the submission's question set 2014-12-18 23:39:54 +00:00
live_assessments no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
lti create lti_app collection api 2014-12-17 22:34:31 +00:00
polling update API doc required params - 9 2014-08-26 16:14:19 +00:00
quizzes OQAAT QLA events are captured successfully 2015-01-05 18:22:44 +00:00
account_authorization_configs_controller.rb add redirect config to account authorization 2014-08-14 15:12:41 +00:00
account_notifications_controller.rb fix account notification course roles 2014-12-17 20:10:03 +00:00
account_reports_controller.rb update API doc required params - 4 2014-08-18 16:40:55 +00:00
accounts_controller.rb add used storage quota include to courses api 2015-01-06 20:39:54 +00:00
admins_controller.rb fix admin controller index api find 2014-11-10 23:36:58 +00:00
alerts_controller.rb new roles 2014-10-31 19:44:14 +00:00
announcements_controller.rb create temporary records with .scoped.new for rails 3 compatibility 2014-02-20 20:55:11 +00:00
app_center_controller.rb Rebuilt App Center in React 2015-01-05 21:34:02 +00:00
application_controller.rb remove non-draft-state everything 2014-12-10 17:57:18 +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 gradebook default view should not throw error with MGP on 2014-12-18 00:36:07 +00:00
assignment_groups_controller.rb DA - restrict assignment_visibilities in api requests 2014-11-24 20:38:06 +00:00
assignment_overrides_controller.rb update API doc required params - 2 2014-08-18 16:40:31 +00:00
assignments_api_controller.rb update rubric criteria api docs 2014-12-30 15:37:49 +00:00
assignments_controller.rb adding term and section dates to due date validations 2015-01-05 16:00:52 +00:00
auditor_api_controller.rb enable Audit log search 2014-08-16 01:53:39 +00:00
authentication_audit_api_controller.rb update API doc required params - 2 2014-08-18 16:40:31 +00:00
calendar_events_api_controller.rb calendar events api: include user_submitted on assignments 2014-10-15 03:28:38 +00:00
calendar_events_controller.rb DA - change warning dialog (quiz/discussion/calendar event) 2014-10-20 15:35:30 +00:00
calendars_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
canvadoc_sessions_controller.rb handle crocodoc/canvadocs timeouts when creating sessions 2014-10-30 23:05:44 +00:00
collaborations_controller.rb set collaborations tab as active when page is accessed 2015-01-02 20:44:56 +00:00
comm_messages_api_controller.rb Update parameters in the following API docs - 3 2014-08-26 16:42:33 +00:00
communication_channels_controller.rb prevent userobserver pairs from merging together 2014-11-25 16:36:22 +00:00
conferences_controller.rb no more dynamic finders 2014-10-03 16:22:49 +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 no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
content_imports_controller.rb don't delete from params in ContentImportsController 2014-11-13 19:50:54 +00:00
content_migrations_controller.rb improve course copy source selection with many courses 2014-12-17 23:19:22 +00:00
context_controller.rb security.yml encryption key rotation support 2014-10-27 20:50:45 +00:00
context_module_items_api_controller.rb remove non-draft-state everything 2014-12-10 17:57:18 +00:00
context_modules_api_controller.rb remove non-draft-state everything 2014-12-10 17:57:18 +00:00
context_modules_controller.rb remove non-draft-state everything 2014-12-10 17:57:18 +00:00
conversations_controller.rb verify context_code on conversation create api 2014-12-12 20:22:28 +00:00
course_audit_api_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
courses_controller.rb add used storage quota include to courses api 2015-01-06 20:39:54 +00:00
crocodoc_sessions_controller.rb handle crocodoc/canvadocs timeouts when creating sessions 2014-10-30 23:05:44 +00:00
custom_data_controller.rb update API doc required params - 12 2014-08-25 16:50:04 +00:00
custom_gradebook_column_data_api_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +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 to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
discussion_entries_controller.rb no more dynamic finders 2014-10-03 16:22:49 +00:00
discussion_topics_api_controller.rb DA - more refactoring 2014-10-08 16:32:18 +00:00
discussion_topics_controller.rb adding term and section dates to due date validations 2015-01-05 16:00:52 +00:00
enrollments_api_controller.rb don't count deleted enrollments in grade calculations 2014-12-17 21:07:34 +00:00
eportfolio_categories_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
eportfolio_entries_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
eportfolios_controller.rb fix eportfolio export cleanup if export has been re-uploaded to canvas 2014-10-09 15:29:11 +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 order error reports by created_at, not id 2014-01-03 23:11:47 +00:00
external_content_controller.rb improve external tool return experience 2014-08-21 14:54:00 +00:00
external_feeds_controller.rb update API doc required params - 4 2014-08-18 16:40:55 +00:00
external_tools_controller.rb add file_menu external tools to new files cog menu 2014-12-05 22:04:05 +00:00
facebook_controller.rb ensure all notification policy creation handles unique constraint violations 2014-12-02 18:56:33 +00:00
favorites_controller.rb update API doc required params - 5 2014-08-18 16:41:06 +00:00
feature_flags_controller.rb make 'development' features invisible in production 2014-09-25 14:47:10 +00:00
file_previews_controller.rb return lock explanation message from preview 2014-11-26 18:14:30 +00:00
files_controller.rb unbreak legacy JSON files endpoint with new files enabled 2014-12-10 00:41:40 +00:00
folders_controller.rb no more dynamic finders 2014-10-03 16:22:49 +00:00
grade_change_audit_api_controller.rb update API doc required params - 6 2014-08-18 16:43:17 +00:00
gradebook_history_api_controller.rb don't use preload_associations 2014-09-30 18:04:00 +00:00
gradebook_uploads_controller.rb fix CSV uploading GPA scores issue 2014-11-07 23:30:33 +00:00
gradebooks_controller.rb remove non-draft-state everything 2014-12-10 17:57:18 +00:00
grading_periods_controller.rb add grading period group model 2014-11-14 22:07:00 +00:00
grading_standards_api_controller.rb update API doc required params - 6 2014-08-18 16:43:17 +00:00
grading_standards_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
group_categories_controller.rb don't show deleted group categories in the api 2014-12-11 20:50:32 +00:00
group_memberships_controller.rb update API doc required params - 7 2014-08-18 16:43:26 +00:00
groups_controller.rb don't use group_category param on group update 2014-12-12 20:21:03 +00:00
info_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
jobs_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
lti_api_controller.rb xapi: handle requests without durations 2014-10-16 22:55:47 +00:00
media_objects_controller.rb change api doc examples to be https instead of http 2013-10-25 18:32:42 +00:00
media_tracks_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
messages_controller.rb moving mail processor to module 2014-04-25 23:05:39 +00:00
migration_issues_controller.rb Update parameters in the following API docs 2014-08-18 16:43:37 +00:00
notification_preferences_controller.rb update API doc required params - 8 2014-08-25 16:49:44 +00:00
outcome_groups_api_controller.rb Add ability to set calculation_method and calculation_int when creating 2015-01-07 18:12:50 +00:00
outcome_groups_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00
outcome_results_controller.rb update API doc required params - 8 2014-08-25 16:49:44 +00:00
outcomes_api_controller.rb Add ability to set calculation_method and calculation_int when creating 2015-01-07 18:12:50 +00:00
outcomes_controller.rb Cleanup the outcomes controller a bit to make it easier to read through 2014-11-20 00:41:06 +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
plugins_controller.rb pass :all param in form and redirect 2013-06-14 22:15:38 +00:00
profile_controller.rb separate :read_profile from :rename rights 2015-01-07 18:01:13 +00:00
progress_controller.rb converting @object notation to @model part 9/11 2014-02-12 16:21:37 +00:00
pseudonym_sessions_controller.rb add trusted referrer header 2015-01-07 16:14:11 +00:00
pseudonyms_controller.rb add and use :delete permission on pseudonym 2014-11-03 23:04:06 +00:00
question_banks_controller.rb clean up permission calls for grants_rights? 2014-06-19 18:10:30 +00:00
role_overrides_controller.rb UI and API update for role overrides to allow editing name 2014-11-12 15:29:36 +00:00
rubric_assessments_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
rubric_associations_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
rubrics_controller.rb no more dynamic finders (controllers) 2014-09-17 02:42:30 +00:00
search_controller.rb course catalog 2014-11-07 17:15:10 +00:00
sections_controller.rb add argument to sections api documentation 2014-12-26 17:29:13 +00:00
self_enrollments_controller.rb self-enrollment API, fixes CNVS-10419 2014-01-15 21:17:04 +00:00
services_api_controller.rb canvas kaltura gem 2014-04-16 19:39:45 +00:00
sis_imports_api_controller.rb add option to filter sis imports api index by date 2014-12-31 16:57:05 +00:00
sub_accounts_controller.rb fix /accounts/X/sub_accounts with more than 100 subaccounts 2014-10-06 18:05:01 +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 submissions bulk grading api 2015-01-05 13:31:44 +00:00
submissions_controller.rb SubmissionController#create() refactor round 2 2014-11-26 16:18:50 +00:00
tabs_controller.rb update API doc required params - 11 2014-08-25 16:49:57 +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 add sis_term_id support to term api 2015-01-02 19:43:01 +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 Option to publish when setting usage_rights 2014-12-05 05:05:22 +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 update API doc required params - 12 2014-08-25 16:50:04 +00:00
users_controller.rb improve course copy source selection with many courses 2014-12-17 23:19:22 +00:00
wiki_pages_api_controller.rb remove non-draft state wiki pages 2014-12-09 20:12:24 +00:00
wiki_pages_controller.rb remove non-draft state wiki pages 2014-12-09 20:12:24 +00:00
zip_file_imports_controller.rb to_json unnecessary (and wrongish) in render :json 2013-10-02 18:05:22 +00:00