Skip to content

Add cascade support for removing remote schemas#10845

Open
hemraj-007 wants to merge 2 commits into
hasura:masterfrom
hemraj-007:codex/remove-remote-schema-cascade
Open

Add cascade support for removing remote schemas#10845
hemraj-007 wants to merge 2 commits into
hasura:masterfrom
hemraj-007:codex/remove-remote-schema-cascade

Conversation

@hemraj-007

Copy link
Copy Markdown

Description

Changelog

Component : server / cli / console / build

Type: bugfix / feature / enhancement

Product: community-edition

Short Changelog

Long Changelog

Related Issues

Solution and Design

Steps to test and verify

Limitations, known bugs & workarounds

Server checklist

Catalog upgrade

Does this PR change Hasura Catalog version?

  • No
  • Yes
    • Updated docs with SQL for downgrading the catalog

Metadata

Does this PR add a new Metadata feature?

  • No
  • Yes
    • Does run_sql auto manages the new metadata through schema diffing?
      • Yes
      • Not required
    • Does run_sql auto manages the definitions of metadata on renaming?
      • Yes
      • Not required
    • Does export_metadata/replace_metadata supports the new metadata added?
      • Yes
      • Not required

GraphQL

  • No new GraphQL schema is generated
  • New GraphQL schema is being generated:
    • New types and typenames are correlated

Breaking changes

  • No Breaking changes

  • There are breaking changes:

    1. Metadata API

      Existing query types:

      • Modify args payload which is not backward compatible
      • Behavioural change of the API
      • Change in response JSON schema
      • Change in error code
    2. GraphQL API

      Schema Generation:

      • Change in any NamedType
      • Change in table field names

      Schema Resolve:-

      • Change in treatment of null value for any input fields
    3. Logging

      • Log JSON schema has changed
      • Log type names have changed

@hemraj-007
hemraj-007 requested a review from a team as a code owner June 5, 2026 17:09
@hemraj-007

Copy link
Copy Markdown
Author

Implements #5122 by adding cascade_dependents support to remove_remote_schema, preserving the existing dependency error when the flag is omitted. Added a regression test for dropping remote relationships during cascade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant