hasura / hasura/graphql-engine

[Console] Modifying an inconsistent remote schema redirects to the 404 page

Open
#8,089 1 comment 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: 2.1.1

### What is the expected behaviour?

I should be able to modify or remove an inconsistent remote schema.

### What is the current behaviour?

When faced with an inconsistent remote schema (for example the remote URL changed), users are completely unable to modify or remove it through the web console.

### How to reproduce the issue?

1. Using `allow_inconsistent_metadata: true` in the metadata, add an invalid remote schema URL through the API's `replace_metadata`
2. In the console, you can't modify the remote schema (takes you to a 404 immediately)

Alternatively, correctly create a remote schema with a given URL. Then from that remote schema, change the API URL. Hasura will deem the remote schema inconsistent and you can't modify the URL.

### Screenshots or Screencast

![image](https://user-images.githubusercontent.com/11539524/151286526-5559d4a1-0f27-467e-9e14-e8f70b9c6763.png)

![image](https://user-images.githubusercontent.com/11539524/151286313-683bf81e-b31e-4a45-af3f-7e7483af6532.png)

Interestingly, the experimental feature "remote schema permissions" doesn't freak out as much.

![image](https://user-images.githubusercontent.com/11539524/151286642-0cbe2821-e625-4240-83b2-94cfb83b3120.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.