From c4cacac1c77086178c60dbb36ca1a0e4370f2b51 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 4 Feb 2020 22:05:12 +0100 Subject: [PATCH] Update schema, fix cypress test --- client/cypress/fixtures/schema.json | 1638 ++++++++++++++-------- client/cypress/fixtures/spell-check.json | 3 + server/api/schema.py | 4 +- 3 files changed, 1089 insertions(+), 556 deletions(-) diff --git a/client/cypress/fixtures/schema.json b/client/cypress/fixtures/schema.json index 034cd230..2b4f9f45 100644 --- a/client/cypress/fixtures/schema.json +++ b/client/cypress/fixtures/schema.json @@ -89,59 +89,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "myActivity", - "description": null, - "args": [ - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - } - ], - "type": { - "kind": "OBJECT", - "name": "StudentSubmissionNodeConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "project", "description": null, @@ -275,7 +222,7 @@ ], "type": { "kind": "OBJECT", - "name": "BasicKnowledgeNode", + "name": "InstrumentNode", "ofType": null }, "isDeprecated": false, @@ -348,7 +295,7 @@ ], "type": { "kind": "OBJECT", - "name": "BasicKnowledgeNodeConnection", + "name": "InstrumentNodeConnection", "ofType": null }, "isDeprecated": false, @@ -565,7 +512,7 @@ ], "type": { "kind": "OBJECT", - "name": "FilteredChapterNode", + "name": "ChapterNode", "ofType": null }, "isDeprecated": false, @@ -1004,7 +951,7 @@ ], "type": { "kind": "OBJECT", - "name": "FilteredChapterNodeConnection", + "name": "ChapterNodeConnection", "ofType": null }, "isDeprecated": false, @@ -1440,6 +1387,119 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "myActivity", + "description": null, + "args": [ + { + "name": "before", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "slug", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "slug_Icontains", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "slug_In", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "title_Icontains", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "title_In", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ModuleNodeConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "node", "description": "The ID of the object", @@ -1466,6 +1526,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "_debug", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "DjangoDebug", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -1683,6 +1755,11 @@ "name": "ContentBlockNode", "ofType": null }, + { + "kind": "OBJECT", + "name": "ContentBlockBookmarkNode", + "ofType": null + }, { "kind": "OBJECT", "name": "NoteNode", @@ -1690,7 +1767,22 @@ }, { "kind": "OBJECT", - "name": "FilteredChapterNode", + "name": "ChapterBookmarkNode", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ChapterNode", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "InstrumentBookmarkNode", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "InstrumentNode", "ofType": null }, { @@ -1728,11 +1820,6 @@ "name": "SubmissionFeedbackNode", "ofType": null }, - { - "kind": "OBJECT", - "name": "ChapterNode", - "ofType": null - }, { "kind": "OBJECT", "name": "TopicNode", @@ -1753,11 +1840,6 @@ "name": "ProjectEntryNode", "ofType": null }, - { - "kind": "OBJECT", - "name": "BasicKnowledgeNode", - "ofType": null - }, { "kind": "OBJECT", "name": "BookNode", @@ -1792,7 +1874,7 @@ "fields": [ { "name": "title", - "description": "The page title as you'd like it to be seen by the public", + "description": "Der Seitentitel, der \u00f6ffentlich angezeigt werden soll", "args": [], "type": { "kind": "NON_NULL", @@ -1808,7 +1890,7 @@ }, { "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", + "description": "Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/", "args": [], "type": { "kind": "NON_NULL", @@ -2144,6 +2226,218 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "mySubmissions", + "description": null, + "args": [ + { + "name": "before", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "StudentSubmissionNodeConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "myAnswers", + "description": null, + "args": [ + { + "name": "before", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "AnswerNodeConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "myContentBookmarks", + "description": null, + "args": [ + { + "name": "before", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ContentBlockBookmarkNodeConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "myChapterBookmarks", + "description": null, + "args": [ + { + "name": "before", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ChapterBookmarkNodeConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -2550,7 +2844,7 @@ "fields": [ { "name": "username", - "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", + "description": "Erforderlich. 150 Zeichen oder weniger. Nur Buchstaben, Ziffern und @/./+/-/_.", "args": [], "type": { "kind": "NON_NULL", @@ -3687,7 +3981,7 @@ "fields": [ { "name": "title", - "description": "The page title as you'd like it to be seen by the public", + "description": "Der Seitentitel, der \u00f6ffentlich angezeigt werden soll", "args": [], "type": { "kind": "NON_NULL", @@ -3703,7 +3997,7 @@ }, { "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", + "description": "Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/", "args": [], "type": { "kind": "NON_NULL", @@ -3995,7 +4289,7 @@ "fields": [ { "name": "id", - "description": "", + "description": "The ID of the object.", "args": [], "type": { "kind": "NON_NULL", @@ -4067,7 +4361,13 @@ } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, @@ -4144,6 +4444,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "instrumentbookmark", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "InstrumentBookmarkNode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "pk", "description": null, @@ -4274,7 +4586,7 @@ }, { "name": "id", - "description": "", + "description": "The ID of the object.", "args": [], "type": { "kind": "NON_NULL", @@ -4297,7 +4609,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "FilteredChapterNode", + "name": "ChapterNode", "ofType": null } }, @@ -4306,18 +4618,24 @@ } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", - "name": "FilteredChapterNode", + "name": "ChapterNode", "description": null, "fields": [ { "name": "title", - "description": "The page title as you'd like it to be seen by the public", + "description": "Der Seitentitel, der \u00f6ffentlich angezeigt werden soll", "args": [], "type": { "kind": "NON_NULL", @@ -4333,7 +4651,23 @@ }, { "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", + "description": "Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": "", "args": [], "type": { "kind": "NON_NULL", @@ -4435,6 +4769,107 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "bookmark", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ChapterBookmarkNode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "InstrumentBookmarkNode", + "description": null, + "fields": [ + { + "name": "user", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserNode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "note", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "NoteNode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the object.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "uuid", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "UUID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "instrument", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InstrumentNode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -4458,6 +4893,138 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "InstrumentNode", + "description": null, + "fields": [ + { + "name": "title", + "description": "Der Seitentitel, der \u00f6ffentlich angezeigt werden soll", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "slug", + "description": "Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "contents", + "description": "", + "args": [], + "type": { + "kind": "SCALAR", + "name": "GenericStreamFieldType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": "", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "BasicKnowledgeType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the object.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "bookmarks", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "InstrumentBookmarkNode", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "BasicKnowledgeType", + "description": "An enumeration.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "LANGUAGE_COMMUNICATION", + "description": "Sprache & Kommunikation", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SOCIETY", + "description": "Gesellschaft", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "ObjectiveGroupNodeConnection", @@ -6337,172 +6904,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "ChapterNode", - "description": null, - "fields": [ - { - "name": "title", - "description": "The page title as you'd like it to be seen by the public", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": "", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contentBlocks", - "description": null, - "args": [ - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "slug", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "title", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "type": { - "kind": "OBJECT", - "name": "ContentBlockNodeConnection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bookmark", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ChapterBookmarkNode", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "TopicNode", @@ -6510,7 +6911,7 @@ "fields": [ { "name": "title", - "description": "The page title as you'd like it to be seen by the public", + "description": "Der Seitentitel, der \u00f6ffentlich angezeigt werden soll", "args": [], "type": { "kind": "NON_NULL", @@ -6526,7 +6927,7 @@ }, { "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", + "description": "Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/", "args": [], "type": { "kind": "NON_NULL", @@ -6840,12 +7241,88 @@ "possibleTypes": null }, { - "kind": "SCALAR", - "name": "JSONString", - "description": "Allows use of a JSON String for input / output from the GraphQL schema.\n\nUse of this type is *not recommended* as you lose the benefits of having a defined, static\nschema (one of the key benefits of GraphQL).", - "fields": null, + "kind": "OBJECT", + "name": "StudentSubmissionNodeConnection", + "description": null, + "fields": [ + { + "name": "pageInfo", + "description": "Pagination data for this connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "edges", + "description": "Contains the nodes in this connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StudentSubmissionNodeEdge", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], "inputFields": null, - "interfaces": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "StudentSubmissionNodeEdge", + "description": "A Relay edge containing a `StudentSubmissionNode` and its cursor.", + "fields": [ + { + "name": "node", + "description": "The item at the end of the edge", + "args": [], + "type": { + "kind": "OBJECT", + "name": "StudentSubmissionNode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cursor", + "description": "A cursor for use in pagination", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], "enumValues": null, "possibleTypes": null }, @@ -7028,6 +7505,188 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "JSONString", + "description": "Allows use of a JSON String for input / output from the GraphQL schema.\n\nUse of this type is *not recommended* as you lose the benefits of having a defined, static\nschema (one of the key benefits of GraphQL).", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ContentBlockBookmarkNodeConnection", + "description": null, + "fields": [ + { + "name": "pageInfo", + "description": "Pagination data for this connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "edges", + "description": "Contains the nodes in this connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContentBlockBookmarkNodeEdge", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ContentBlockBookmarkNodeEdge", + "description": "A Relay edge containing a `ContentBlockBookmarkNode` and its cursor.", + "fields": [ + { + "name": "node", + "description": "The item at the end of the edge", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ContentBlockBookmarkNode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cursor", + "description": "A cursor for use in pagination", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ChapterBookmarkNodeConnection", + "description": null, + "fields": [ + { + "name": "pageInfo", + "description": "Pagination data for this connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "edges", + "description": "Contains the nodes in this connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ChapterBookmarkNodeEdge", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ChapterBookmarkNodeEdge", + "description": "A Relay edge containing a `ChapterBookmarkNode` and its cursor.", + "fields": [ + { + "name": "node", + "description": "The item at the end of the edge", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ChapterBookmarkNode", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "cursor", + "description": "A cursor for use in pagination", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "SurveyNodeConnection", @@ -7114,92 +7773,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "StudentSubmissionNodeConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": "Contains the nodes in this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "StudentSubmissionNodeEdge", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "StudentSubmissionNodeEdge", - "description": "A Relay edge containing a `StudentSubmissionNode` and its cursor.", - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge", - "args": [], - "type": { - "kind": "OBJECT", - "name": "StudentSubmissionNode", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "ProjectNode", @@ -7721,123 +8294,7 @@ }, { "kind": "OBJECT", - "name": "BasicKnowledgeNode", - "description": null, - "fields": [ - { - "name": "title", - "description": "The page title as you'd like it to be seen by the public", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contents", - "description": "", - "args": [], - "type": { - "kind": "SCALAR", - "name": "GenericStreamFieldType", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": "", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "BasicKnowledgeType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The ID of the object.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "BasicKnowledgeType", - "description": "An enumeration.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "LANGUAGE_COMMUNICATION", - "description": "Sprache & Kommunikation", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SOCIETY", - "description": "Gesellschaft", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BasicKnowledgeNodeConnection", + "name": "InstrumentNodeConnection", "description": null, "fields": [ { @@ -7868,7 +8325,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "BasicKnowledgeNodeEdge", + "name": "InstrumentNodeEdge", "ofType": null } } @@ -7884,8 +8341,8 @@ }, { "kind": "OBJECT", - "name": "BasicKnowledgeNodeEdge", - "description": "A Relay edge containing a `BasicKnowledgeNode` and its cursor.", + "name": "InstrumentNodeEdge", + "description": "A Relay edge containing a `InstrumentNode` and its cursor.", "fields": [ { "name": "node", @@ -7893,7 +8350,7 @@ "args": [], "type": { "kind": "OBJECT", - "name": "BasicKnowledgeNode", + "name": "InstrumentNode", "ofType": null }, "isDeprecated": false, @@ -7928,7 +8385,7 @@ "fields": [ { "name": "title", - "description": "The page title as you'd like it to be seen by the public", + "description": "Der Seitentitel, der \u00f6ffentlich angezeigt werden soll", "args": [], "type": { "kind": "NON_NULL", @@ -7944,7 +8401,7 @@ }, { "name": "slug", - "description": "The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/", + "description": "Der Name der Seite, wie er in URLs angezeigt werden soll, z.B. http://domain.com/blog/[my-slug]/", "args": [], "type": { "kind": "NON_NULL", @@ -8283,92 +8740,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "FilteredChapterNodeConnection", - "description": null, - "fields": [ - { - "name": "pageInfo", - "description": "Pagination data for this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "edges", - "description": "Contains the nodes in this connection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "FilteredChapterNodeEdge", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FilteredChapterNodeEdge", - "description": "A Relay edge containing a `FilteredChapterNode` and its cursor.", - "fields": [ - { - "name": "node", - "description": "The item at the end of the edge", - "args": [], - "type": { - "kind": "OBJECT", - "name": "FilteredChapterNode", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "A cursor for use in pagination", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "DjangoDebug", @@ -8779,6 +9150,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "updateInstrumentBookmark", + "description": null, + "args": [ + { + "name": "input", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpdateInstrumentBookmarkInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "UpdateInstrumentBookmarkPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "updateAnswer", "description": null, @@ -9600,6 +9998,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "_debug", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "DjangoDebug", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -9687,6 +10097,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "sentenceOffset", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "length", "description": null, @@ -10035,11 +10457,21 @@ "defaultValue": null }, { - "name": "contentBlock", + "name": "block", "description": null, "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "type", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null @@ -10421,7 +10853,105 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ID", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "bookmarked", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "clientMutationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UpdateInstrumentBookmarkPayload", + "description": null, + "fields": [ + { + "name": "success", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "clientMutationId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "UpdateInstrumentBookmarkInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "uuid", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "UUID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "instrument", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -14113,11 +14643,11 @@ "fields": null, "inputFields": [ { - "name": "id", + "name": "slug", "description": null, "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "defaultValue": null diff --git a/client/cypress/fixtures/spell-check.json b/client/cypress/fixtures/spell-check.json index d2400ac5..c1075aa5 100644 --- a/client/cypress/fixtures/spell-check.json +++ b/client/cypress/fixtures/spell-check.json @@ -5,6 +5,7 @@ "sentence": "Hir ist ein Feler gewesen", "offset": 0, "length": 3, + "sentenceOffset": 0, "affected": "Hir", "corrected": "Dir", "__typename": "SpellCheckStepNode" @@ -13,6 +14,7 @@ "sentence": "Hir ist ein Feler gewesen", "offset": 12, "length": 5, + "sentenceOffset": 0, "affected": "Feler", "corrected": "Fehler", "__typename": "SpellCheckStepNode" @@ -21,6 +23,7 @@ "sentence": "Hir ist ein Feler gewesen", "offset": 18, "length": 7, + "sentenceOffset": 0, "affected": "gewesen", "corrected": "gewesen.", "__typename": "SpellCheckStepNode" diff --git a/server/api/schema.py b/server/api/schema.py index 77de5fb6..85fb202f 100644 --- a/server/api/schema.py +++ b/server/api/schema.py @@ -31,14 +31,14 @@ class Query(UsersQuery, AllUsersQuery, ModuleRoomsQuery, RoomsQuery, ObjectivesQ node = relay.Node.Field() if settings.DEBUG: - debug = graphene.Field(DjangoDebug, name='__debug') + debug = graphene.Field(DjangoDebug, name='_debug') class Mutation(BookMutations, RoomMutations, AssignmentMutations, ObjectiveMutations, CoreMutations, PortfolioMutations, ProfileMutations, SurveyMutations, NoteMutations, RegistrationMutations, SpellCheckMutations, graphene.ObjectType): if settings.DEBUG: - debug = graphene.Field(DjangoDebug, name='__debug') + debug = graphene.Field(DjangoDebug, name='_debug') schema = graphene.Schema(query=Query, mutation=Mutation)