Skip to content

Commit

Permalink
Fixes #4354: fixed gql schema for environment filter input (#4415)
Browse files Browse the repository at this point in the history
* Fixes #4354: fixed gql schema for environment filter input

Signed-off-by: Saranya-jena <[email protected]>

* updated the gql schema in frontend

Signed-off-by: Saranya-jena <[email protected]>

---------

Signed-off-by: Saranya-jena <[email protected]>
  • Loading branch information
Saranya-jena authored Feb 11, 2024
1 parent 3e858b2 commit 7b4bedb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 69 deletions.
4 changes: 2 additions & 2 deletions chaoscenter/graphql/definitions/shared/environment.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ input EnvironmentFilterInput {
"""
Type name of environment
"""
type: String
type: EnvironmentType
"""
Tags of an environment
"""
tags: [EnvironmentType]
tags: [String!]
}
enum EnvironmentSortingField {
NAME
Expand Down
68 changes: 4 additions & 64 deletions chaoscenter/graphql/server/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions chaoscenter/graphql/server/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chaoscenter/web/src/api/entities/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Environment extends Audit, ResourceDetails {
export interface EnvironmentFilterInput {
name?: string;
description?: string;
type?: string;
type?: EnvironmentType;
tags?: Array<string>;
}

Expand Down

0 comments on commit 7b4bedb

Please sign in to comment.