canvas-lms/spec
Drake Harper d698b47c7b Process assignmet params from create discussion mutation
closes VICE-3799
flag=discussion_create

Test Plan:
- create an assignment on a discussion topic via graqhiql

Sample Mutation:
mutation MyMutation($topicTitle: String!) {
  __typename
  createDiscussionTopic(input: {
    contextId: "1",
    contextType: "Course",
    message: "Well hello there",
    published: true,
    title: $topicTitle,
    assignment: {courseId: "1",
      name: $topicTitle,
      pointsPossible: 15,
      gradingType: percent,
      peerReviews: {
        anonymousReviews: true,
        automaticReviews: true,
        count: 2,
        enabled: true,
        intraReviews: true,
        dueAt: "2023-11-23T17:44:51.014Z"
      }
    }
  }) {
    discussionTopic {
      _id
      title
      message
      assignment {
        _id
        name
        pointsPossible
        gradingType
        peerReviews {
          anonymousReviews
          automaticReviews
          count
          enabled
        }
      }
    }
  }
}

Variables: {
  "topicTitle": "GQL Test 5"
}

Change-Id: Ie19f0032a886f279ccbf7f924bc822e44d2ac480
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330897
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
2023-10-24 22:36:34 +00:00
..
apis Return "rejected" users in rollups api 2023-10-23 20:31:54 +00:00
coffeescripts hide anonymous grading for new quizzes unless ff on 2023-10-17 14:01:27 +00:00
contracts Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
controllers Remove no_redirect_on_oauth_token_method FF 2023-10-24 20:50:21 +00:00
factories include context module overrides in AssignmentOverrideApplicator 2023-09-29 12:54:04 +00:00
factory_bot Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
fixtures Fix import into module functionality 2023-06-15 14:58:19 +00:00
formatters update rubocop, and apply new cops 2023-07-03 22:11:42 +00:00
gem_integration/canvas_connect
graphql Process assignmet params from create discussion mutation 2023-10-24 22:36:34 +00:00
helpers display minus instead of en-dash 2023-10-09 16:24:10 +00:00
initializers bundle update switchman 2023-10-12 20:31:19 +00:00
integration enable granular permissions features in all envs 2023-09-25 23:17:32 +00:00
javascripts fix speed grader not showing updated status pill 2023-10-16 20:29:07 +00:00
lib don't null out lti_context_id in deleted shadow records 2023-10-24 18:48:32 +00:00
manual_seeding Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
messages update rubocop, and apply new cops 2023-07-03 22:11:42 +00:00
migrations use helper methods for check constraints on old migrations 2023-09-07 23:01:00 +00:00
models add TemporaryEnrollmentPairing model 2023-10-24 16:52:07 +00:00
observers Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
presenters display minus instead of en-dash 2023-10-09 16:24:10 +00:00
requests Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
schemas/lti rubocop: prep for updating rubocop-rspec 2023-04-12 19:30:10 +00:00
selenium spec: verify student visibility of modules 2023-10-23 18:24:31 +00:00
serializers bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
services aggregate points_possible for checkpointed assignments 2023-10-24 16:42:00 +00:00
shared_examples bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
support skip crystalball on package.json or yarn.lock changes 2023-10-23 15:27:26 +00:00
views replace module student peer review with react component 2023-10-18 19:29:41 +00:00
.eslintrc
.rspec_parallel
ams_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
broadcast_integration.rb
canvas_simplecov.rb
cassandra_spec_helper.rb Remove auditor cassandra support 2023-04-03 15:40:22 +00:00
conditional_release_spec_helper.rb Move Mastery Path to an account/course setting 2022-04-13 22:26:57 +00:00
coverage_tool.rb
factories.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
factory_bot_spec_helper.rb
feature_flag_helper.rb
file_upload_helper.rb
force_failure_spec.rb
import_helper.rb rubocop: Style/FileRead, Style/FileWrite 2023-04-10 20:57:32 +00:00
jspec.sh Improve Karma test loading 2022-10-12 18:23:35 +00:00
lti2_course_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti2_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_1_3_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_1_3_tool_configuration_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
lti_spec_helper.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
outcome_alignments_spec_helper.rb Update GraphQL Alignment loader to return aligned items 2023-05-11 15:57:34 +00:00
plagiarism_platform_spec_helper.rb bump rubocop gems and apply changes 2023-08-07 20:13:35 +00:00
quiz_spec_helper.rb
rcov.opts
rspec_mock_extensions.rb Rubocop for ruby 3.1 2023-06-06 16:44:26 +00:00
sharding_spec_helper.rb
simple_cov_result_merger.rb
spec.opts
spec_helper.rb bundle update redis 2023-09-28 15:49:47 +00:00