Skip to content

Commit b89aab5

Browse files
authored
chore: Update GraphQL schema to latest release (#364)
1 parent 5430275 commit b89aab5

2 files changed

Lines changed: 85 additions & 7 deletions

File tree

openhexa/graphql/schema.generated.graphql

Lines changed: 84 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,8 @@ enum CreateTemplateVersionPermissionReason {
10521052
enum CreateWebappError {
10531053
ALREADY_EXISTS
10541054
PERMISSION_DENIED
1055+
SUPERSET_INSTANCE_NOT_FOUND
1056+
SUPERSET_NOT_CONFIGURED
10551057
WORKSPACE_NOT_FOUND
10561058
}
10571059

@@ -1060,8 +1062,7 @@ input CreateWebappInput {
10601062
description: String
10611063
icon: String
10621064
name: String!
1063-
type: WebappType!
1064-
url: String!
1065+
source: WebappSourceInput!
10651066
workspaceSlug: String!
10661067
}
10671068

@@ -1447,6 +1448,7 @@ type DatasetVersionFile implements MetadataObject {
14471448
filename: String!
14481449
id: ID!
14491450
properties: JSON
1451+
rows: Int
14501452
size: BigInt!
14511453
targetId: OpaqueID!
14521454
uri: String!
@@ -2198,6 +2200,7 @@ input GenerateDatasetUploadUrlInput {
21982200
"""Result of creating an upload url"""
21992201
type GenerateDatasetUploadUrlResult {
22002202
errors: [CreateDatasetVersionFileError!]!
2203+
headers: JSON
22012204
success: Boolean!
22022205
uploadUrl: String
22032206
}
@@ -2321,6 +2324,15 @@ type IASOQueryResultPage {
23212324
totalPages: Int!
23222325
}
23232326

2327+
type IframeSource {
2328+
url: String!
2329+
}
2330+
2331+
"""Iframe webapp source."""
2332+
input IframeSourceInput {
2333+
url: String!
2334+
}
2335+
23242336
"""
23252337
The InviteOrganizationMemberError enum represents the possible errors that can occur during the inviteOrganizationMember mutation.
23262338
"""
@@ -2852,6 +2864,7 @@ type Mutation {
28522864

28532865
"""Stops a pipeline."""
28542866
stopPipeline(input: StopPipelineInput!): StopPipelineResult!
2867+
testConnection(input: TestConnectionInput!): TestConnectionResult!
28552868
updateAccessmodAccessibilityAnalysis(input: UpdateAccessmodAccessibilityAnalysisInput): UpdateAccessmodAccessibilityAnalysisResult!
28562869
updateAccessmodFileset(input: UpdateAccessmodFilesetInput!): UpdateAccessmodFilesetResult!
28572870
updateAccessmodProject(input: UpdateAccessmodProjectInput!): UpdateAccessmodProjectResult!
@@ -3237,6 +3250,14 @@ enum PipelineNotificationLevel {
32373250
ERROR
32383251
}
32393252

3253+
"""Enum representing the possible orderings for pipelines."""
3254+
enum PipelineOrderBy {
3255+
LAST_RUN_DATE_ASC
3256+
LAST_RUN_DATE_DESC
3257+
NAME_ASC
3258+
NAME_DESC
3259+
}
3260+
32403261
"""Represents a parameter of a pipeline."""
32413262
type PipelineParameter {
32423263
choices: [Generic!]
@@ -3605,6 +3626,7 @@ The result of preparing to upload an object to a workspace's bucket. It contains
36053626
"""
36063627
type PrepareObjectUploadResult {
36073628
errors: [PrepareObjectUploadError!]!
3629+
headers: JSON
36083630
success: Boolean!
36093631

36103632
"""
@@ -3708,12 +3730,13 @@ type Query {
37083730
pipelineVersion(id: UUID!): PipelineVersion
37093731

37103732
"""Retrieves a page of pipelines ordered by relevant name."""
3711-
pipelines(functionalType: PipelineFunctionalType, lastRunStates: [PipelineRunStatus!], name: String, page: Int, perPage: Int, search: String, tags: [String!], workspaceSlug: String): PipelinesPage!
3733+
pipelines(functionalType: PipelineFunctionalType, lastRunStates: [PipelineRunStatus!], name: String, orderBy: PipelineOrderBy, page: Int, perPage: Int, search: String, tags: [String!], workspaceSlug: String): PipelinesPage!
37123734
searchDatabaseTables(organizationId: UUID, page: Int = 1, perPage: Int = 15, query: String!, workspaceSlugs: [String]): DatabaseTableResultPage!
37133735
searchDatasets(organizationId: UUID, page: Int = 1, perPage: Int = 15, query: String!, workspaceSlugs: [String]): DatasetResultPage!
37143736
searchFiles(organizationId: UUID, page: Int = 1, perPage: Int = 15, prefix: String, query: String!, workspaceSlugs: [String]): FileResultPage!
37153737
searchPipelineTemplates(organizationId: UUID, page: Int = 1, perPage: Int = 15, query: String!, workspaceSlugs: [String]): PipelineTemplateResultPage!
37163738
searchPipelines(functionalType: PipelineFunctionalType, organizationId: UUID, page: Int = 1, perPage: Int = 15, query: String!, workspaceSlugs: [String]): PipelineResultPage!
3739+
supersetInstances(workspaceSlug: String!): [SupersetInstance!]!
37173740
team(id: UUID!): Team
37183741
teams(page: Int, perPage: Int, term: String): TeamPage!
37193742

@@ -4154,6 +4177,24 @@ type Subscription {
41544177
subscriptionId: UUID!
41554178
}
41564179

4180+
"""Represents a Superset instance."""
4181+
type SupersetInstance {
4182+
id: UUID!
4183+
name: String!
4184+
url: String!
4185+
}
4186+
4187+
type SupersetSource {
4188+
dashboardId: String!
4189+
instance: SupersetInstance!
4190+
}
4191+
4192+
"""Superset dashboard source."""
4193+
input SupersetSourceInput {
4194+
dashboardId: String!
4195+
instanceId: UUID!
4196+
}
4197+
41574198
type TableColumn {
41584199
name: String!
41594200
type: String!
@@ -4238,6 +4279,24 @@ type TemplateVersionPage {
42384279
totalPages: Int!
42394280
}
42404281

4282+
"""Represents the input for testing a connection."""
4283+
input TestConnectionInput {
4284+
"""The fields containing the connection parameters to test."""
4285+
fields: [ConnectionFieldInput!]!
4286+
4287+
"""The type of the connection to test."""
4288+
type: ConnectionType!
4289+
4290+
"""The workspace in which the connection is being tested."""
4291+
workspaceSlug: String!
4292+
}
4293+
4294+
"""Represents the result of testing a connection."""
4295+
type TestConnectionResult {
4296+
errors: String
4297+
success: Boolean!
4298+
}
4299+
42414300
scalar TimeThresholds
42424301

42434302
scalar URL
@@ -4897,6 +4956,9 @@ type UpdateUserResult {
48974956
"""Represents the error message for a web app update."""
48984957
enum UpdateWebappError {
48994958
PERMISSION_DENIED
4959+
SUPERSET_INSTANCE_NOT_FOUND
4960+
SUPERSET_NOT_CONFIGURED
4961+
TYPE_MISMATCH
49004962
WEBAPP_NOT_FOUND
49014963
}
49024964

@@ -4906,8 +4968,7 @@ input UpdateWebappInput {
49064968
icon: String
49074969
id: UUID!
49084970
name: String
4909-
type: WebappType
4910-
url: String
4971+
source: UpdateWebappSourceInput
49114972
}
49124973

49134974
"""Represents the result of updating a web app."""
@@ -4917,6 +4978,12 @@ type UpdateWebappResult {
49174978
webapp: Webapp
49184979
}
49194980

4981+
"""Source update for a webapp - exactly one field must be provided."""
4982+
input UpdateWebappSourceInput @oneOf {
4983+
iframe: IframeSourceInput
4984+
superset: SupersetSourceInput
4985+
}
4986+
49204987
"""
49214988
Enum representing the possible errors that can occur when updating a workspace.
49224989
"""
@@ -5096,6 +5163,7 @@ type Webapp {
50965163
name: String!
50975164
permissions: WebappPermissions!
50985165
slug: String!
5166+
source: WebappSource!
50995167
type: WebappType!
51005168
url: String!
51015169
workspace: Workspace!
@@ -5107,6 +5175,16 @@ type WebappPermissions {
51075175
update: Boolean!
51085176
}
51095177

5178+
union WebappSource = IframeSource | SupersetSource
5179+
5180+
"""
5181+
Source configuration for a webapp - exactly one field must be provided.
5182+
"""
5183+
input WebappSourceInput @oneOf {
5184+
iframe: IframeSourceInput
5185+
superset: SupersetSourceInput
5186+
}
5187+
51105188
"""Represents the type of a web app."""
51115189
enum WebappType {
51125190
BUNDLE
@@ -5269,4 +5347,4 @@ type WorkspacePermissions {
52695347
type WorkspaceRef {
52705348
id: UUID!
52715349
slug: String!
5272-
}
5350+
}

scripts/check_schema_compatibility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def fetch_server_schema(graphql_url: str):
3939

4040
def main():
4141
"""Execute main function."""
42-
stored_schema = build_schema(BUNDLED_SCHEMA_PATH.read_text())
42+
stored_schema = build_schema(BUNDLED_SCHEMA_PATH.read_text(), assume_valid_sdl=True)
4343
server_schema = fetch_server_schema(f"{PRODUCTION_URL}/graphql/")
4444

4545
breaking_changes = find_breaking_changes(stored_schema, server_schema)

0 commit comments

Comments
 (0)