Skip to content

feat(wren-ui): Detects schema change - table & column#404

Merged
andreashimin merged 12 commits intomainfrom
feature/schema-changes
Jun 18, 2024
Merged

feat(wren-ui): Detects schema change - table & column#404
andreashimin merged 12 commits intomainfrom
feature/schema-changes

Conversation

@andreashimin
Copy link
Copy Markdown
Contributor

New PR from #339 (The old PR closed because it's base branch has been merged & deleted)

Description

  • Get schema change API - Query
    query SchemaChange {
        schemaChange {
          deletedTables
          deletedColumns
          modifiedColumns
       }
    }
  • Trigger schema change API - Mutation
     mutation Mutation {
        triggerDataSourceDetection
     }
  • Resolve schema change API - Mutation
     # The modified columns is not support for resolving schema changes
     enum SchemaChangeType {
       DELETED_TABLES
       DELETED_COLUMNS
       MODIFIED_COLUMNS
     }
    
     input ResolveSchemaChangeWhereInput {
       type: SchemaChangeType!
     }
    
     mutation Mutation($where: ResolveSchemaChangeWhereInput!) {
       resolveSchemaChange(where: $where)
     }

Copy link
Copy Markdown
Contributor

@onlyjackfrost onlyjackfrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andreashimin andreashimin merged commit 9e2c28a into main Jun 18, 2024
@andreashimin andreashimin deleted the feature/schema-changes branch June 18, 2024 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants