Add all fields to frontend CreateDiscussionTopic mutation
refs VICE-2463 flag=discussion_create Test plan: 1. Mutation exists in file Change-Id: I313f5b51193e79e0e83dd51631a4d0612b8f4150 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/322715 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Drake Harper <drake.harper@instructure.com> Product-Review: Drake Harper <drake.harper@instructure.com> QA-Review: Caleb Guanzon <cguanzon@instructure.com> Build-Review: James Butters <jbutters@instructure.com>
This commit is contained in:
parent
58932497bd
commit
cd91836f18
|
@ -35,6 +35,12 @@
|
|||
"target": "ui/shared/graphql/Error.js",
|
||||
"request": "../../../shared/graphql/Error"
|
||||
},
|
||||
{
|
||||
"name": "SpecifierMismatchError",
|
||||
"source": "ui/features/discussion_topic_edit_v2/graphql/Mutations.js",
|
||||
"target": "ui/shared/graphql/Error.js",
|
||||
"request": "../../../shared/graphql/Error"
|
||||
},
|
||||
{
|
||||
"name": "SpecifierMismatchError",
|
||||
"source": "ui/features/discussion_topics_post/react/components/DueDateTray/DueDateTray.jsx",
|
||||
|
|
|
@ -21,23 +21,58 @@ import gql from 'graphql-tag'
|
|||
|
||||
export const CREATE_DISCUSSION_TOPIC = gql`
|
||||
mutation CreateDiscussionTopic(
|
||||
$context_id: ID!
|
||||
$context_type: String!
|
||||
$contextId: ID!
|
||||
$contextType: String!
|
||||
$isAnnouncement: Boolean!
|
||||
$title: String
|
||||
$message: String
|
||||
$discussionType: String
|
||||
$delayedPostAt: ISO8601DateTime
|
||||
$lockAt: ISO8601DateTime
|
||||
$podcastEnabled: Boolean
|
||||
$podcastHasStudentPosts: Boolean
|
||||
$requireInitialPost: Boolean
|
||||
$pinned: Boolean
|
||||
$todoDate: ISO8601DateTime
|
||||
$groupCategoryId: ID
|
||||
$allowRating: Boolean
|
||||
$onlyGradersCanRate: Boolean
|
||||
$sortByRating: Boolean
|
||||
$anonymousState: String
|
||||
$isAnonymousAuthor: Boolean
|
||||
$specificSections: [String!]
|
||||
$locked: Boolean
|
||||
$published: Boolean
|
||||
) {
|
||||
createDiscussionTopic(
|
||||
input: {
|
||||
contextId: $course_id
|
||||
contextType: $context_type
|
||||
contextId: $contextId
|
||||
contextType: $contextType
|
||||
isAnnouncement: $isAnnouncement
|
||||
title: $title
|
||||
message: $message
|
||||
discussionType: $discussionType
|
||||
delayedPostAt: $delayedPostAt
|
||||
lockAt: $lockAt
|
||||
podcastEnabled: $podcastEnabled
|
||||
podcastHasStudentPosts: $podcastHasStudentPosts
|
||||
requireInitialPost: $requireInitialPost
|
||||
pinned: $pinned
|
||||
todoDate: $todoDate
|
||||
groupCategoryId: $groupCategoryId
|
||||
allowRating: $allowRating
|
||||
onlyGradersCanRate: $onlyGradersCanRate
|
||||
sortByRating: $sortByRating
|
||||
anonymousState: $anonymousState
|
||||
isAnonymousAuthor: $isAnonymousAuthor
|
||||
specificSections: $specificSections
|
||||
locked: $locked
|
||||
published: $published
|
||||
}
|
||||
) {
|
||||
discussionTopic {
|
||||
_id
|
||||
contextType
|
||||
}
|
||||
errors {
|
||||
...Error
|
||||
|
|
Loading…
Reference in New Issue