canvas-lms/app/graphql/mutations
Drake Harper b522d8ae04 Add arguments for assignment input object
closes VICE-3798
flag=discussion_create

Test Plan:
- create an assignment via graphiql
 - with gradingStandardId

- create a discussion topic
 - with assignment

NOTE:
the assignment field will always return null
because the actual assignment creation will
be done in VICE-3799

Sample for discussion topic with assignment:
mutation MyMutation {
  __typename
  createDiscussionTopic(input: {contextId: "1",
    contextType: "Course",
    assignment: {
      name: "GQL Test Assignment Create 1",
      courseId: "1",
      pointsPossible: 15
    },
    title: "GQL Test Assignment Create 1"
  }) {
    discussionTopic {
      _id
      title
      assignment {
        _id
      }
    }
  }
}

Change-Id: Ib86f69307d6d2c91888cc88aab6d48d1fc163c44
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330480
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-10-17 20:34:41 +00:00
..
HOWTO Add Mutations.md GraphQL for outcome calculation methods 2020-07-27 23:40:41 +00:00
add_conversation_message.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
assignment_base.rb Add arguments for assignment input object 2023-10-17 20:34:41 +00:00
base_learning_outcome_mutation.rb Remove IORCM FF from backend and frontend code 2022-04-08 19:35:20 +00:00
base_mutation.rb rubocop: Style/MapToHash, Style/MapToSet 2023-04-11 14:41:55 +00:00
create_assignment.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
create_comment_bank_item.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
create_conversation.rb disable account level journal setting 2023-08-02 19:52:37 +00:00
create_discussion_entry.rb respect attach permissions in DiscussionEntry mutations 2023-08-24 16:07:23 +00:00
create_discussion_entry_draft.rb Remove depreciated include_reply_preview 2023-07-20 04:39:15 +00:00
create_discussion_topic.rb add sections to discussions create react 2023-10-05 18:13:28 +00:00
create_group_in_set.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
create_internal_setting.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
create_learning_outcome.rb Calculation and Criterion for GraphQL LearningOutcomeType 2022-01-05 19:22:04 +00:00
create_learning_outcome_group.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
create_module.rb RuboCop: Layout app 2021-09-22 19:35:01 +00:00
create_outcome_calculation_method.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
create_outcome_proficiency.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
create_submission.rb Track proxy submission usage 2023-08-11 16:15:35 +00:00
create_submission_comment.rb complete peer review when a new comment is added 2022-09-21 19:39:57 +00:00
create_submission_draft.rb allow cross shard users to upload files 2023-07-13 14:46:49 +00:00
create_user_inbox_label.rb Update user inbox labels mutations to accept bulk 2023-07-26 18:04:39 +00:00
delete_comment_bank_item.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
delete_conversation_messages.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
delete_conversations.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
delete_custom_grade_status.rb Track usage of custom status labels 2023-09-29 19:27:20 +00:00
delete_discussion_entry.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
delete_discussion_topic.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
delete_internal_setting.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
delete_outcome_calculation_method.rb RuboCop: Layout app 2021-09-22 19:35:01 +00:00
delete_outcome_links.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
delete_outcome_proficiency.rb RuboCop: Layout app 2021-09-22 19:35:01 +00:00
delete_submission_draft.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
delete_user_inbox_label.rb Update user inbox labels mutations to accept bulk 2023-07-26 18:04:39 +00:00
discussion_base.rb Add arguments for assignment input object 2023-10-17 20:34:41 +00:00
hide_assignment_grades.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
hide_assignment_grades_for_sections.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
import_outcomes.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
mark_submission_comments_read.rb Observers observing a student show a blue dot for unread feedback 2022-10-13 15:30:49 +00:00
move_outcome_links.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
outcome_calculation_method_base.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
outcome_proficiency_base.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
post_assignment_grades.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
post_assignment_grades_for_sections.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
set_assignment_post_policy.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
set_course_post_policy.rb RuboCop: Layout app 2021-09-22 19:35:01 +00:00
set_friendly_description.rb Fix data returned in setFriendlyDescription graphql mutation 2023-08-23 18:24:42 +00:00
set_module_item_completion.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
set_override_score.rb RuboCop: Layout app 2021-09-22 19:35:01 +00:00
set_override_status.rb Track usage of custom status labels 2023-09-29 19:27:20 +00:00
subscribe_to_discussion_topic.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
update_assignment.rb RuboCop: Style/RedundantSelf 2021-11-20 16:41:21 +00:00
update_comment_bank_item.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
update_conversation_participants.rb bundle update rubocop-performance 2023-08-17 23:05:06 +00:00
update_discussion_entries_read_state.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
update_discussion_entry.rb respect attach permissions in DiscussionEntry mutations 2023-08-24 16:07:23 +00:00
update_discussion_entry_participant.rb Increment disscussion entry reported 2022-04-08 15:20:04 +00:00
update_discussion_read_state.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
update_discussion_thread_read_state.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
update_discussion_topic.rb hook up update_discussion mutation 2023-10-17 15:00:55 +00:00
update_internal_setting.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
update_isolated_view_deeply_nested_alert.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
update_learning_outcome.rb Remove IORCM FF from backend and frontend code 2022-04-08 19:35:20 +00:00
update_learning_outcome_group.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
update_notification_preferences.rb Throw error when channel doesn't belong to user 2022-07-19 19:36:53 +00:00
update_outcome_calculation_method.rb Add create learning outcome mutation 2021-05-04 15:42:43 +00:00
update_outcome_proficiency.rb Add create learning outcome mutation 2021-05-04 15:42:43 +00:00
update_submission_grade.rb Create mutation for grading submission by submission id 2022-08-09 17:21:47 +00:00
update_submission_student_entered_score.rb Add mutation to update what if scores 2023-09-29 18:17:18 +00:00
update_submissions_read_state.rb Create submission mutation 2022-07-12 17:17:51 +00:00
update_user_discussions_splitscreen_view.rb Add graphql user.discussions_splitscreen_view and mutation 2022-11-10 22:27:07 +00:00
upsert_custom_grade_status.rb Track usage of custom status labels 2023-09-29 19:27:20 +00:00
upsert_standard_grade_status.rb add mutation to set custom status on override score 2023-08-07 18:21:55 +00:00