undo type rename in af2dacd242

This avoids making a breaking change.

Test plan: specs pass

Change-Id: I758354b38adf98069f8b22658e79368bf4874ea1
Reviewed-on: https://gerrit.instructure.com/206102
Tested-by: Jenkins
QA-Review: Cameron Matheson <cameron@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
Reviewed-by: Matt Sessions <msessions@instructure.com>
This commit is contained in:
Cameron Matheson 2019-08-21 12:55:45 -06:00
parent 84ca391dab
commit 14f1b8b0c7
2 changed files with 22 additions and 22 deletions

View File

@ -54,7 +54,7 @@ module Types
].to_set
class AssignmentSubmissionType < Types::BaseEnum
graphql_name "AssignmentSubmissionType"
graphql_name "SubmissionType"
description "Types of submissions an assignment accepts"
SUBMISSION_TYPES.each { |submission_type|
value(submission_type)

View File

@ -161,7 +161,7 @@ type Assignment implements ModuleItemInterface & Node & Timestamped {
quiz: Quiz
rubric: Rubric
state: AssignmentState!
submissionTypes: [AssignmentSubmissionType!]
submissionTypes: [SubmissionType!]
"""
submissions for this assignment
@ -480,24 +480,6 @@ enum AssignmentState {
unpublished
}
"""
Types of submissions an assignment accepts
"""
enum AssignmentSubmissionType {
attendance
discussion_topic
external_tool
media_recording
none
not_graded
on_paper
online_quiz
online_text_entry
online_upload
online_url
wiki_page
}
interface AssignmentsConnectionInterface {
"""
returns a list of assignments.
@ -984,7 +966,7 @@ input CreateAssignmentInput {
position: Int
postToSis: Boolean
state: AssignmentState
submissionTypes: [AssignmentSubmissionType!]
submissionTypes: [SubmissionType!]
unlockAt: DateTime
}
@ -2902,6 +2884,24 @@ enum SubmissionState {
unsubmitted
}
"""
Types of submissions an assignment accepts
"""
enum SubmissionType {
attendance
discussion_topic
external_tool
media_recording
none
not_graded
on_paper
online_quiz
online_text_entry
online_upload
online_url
wiki_page
}
"""
statistics based on timeliness of student submissions
"""
@ -2991,7 +2991,7 @@ input UpdateAssignmentInput {
position: Int
postToSis: Boolean
state: AssignmentState
submissionTypes: [AssignmentSubmissionType!]
submissionTypes: [SubmissionType!]
unlockAt: DateTime
}