hasura / hasura/graphql-engine

console: action relationships are broken when a mssql database is connected to the instance.

Open
#8,465 0 comments 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.6.1

### Environment

OSS

### What is the expected behaviour?

Users should be able to create relationships from action payloads to tables in postgres data sources

### Keywords

Action relationships postgres mssql

### What is the current behaviour?

When a mssql database is connected to the instance, and has a name that alphabetically comes before the first postgres data source,
the ui breaks and creating a relationship is impossible:

### How to reproduce the issue?

1. Create a hasura instance
2. Add a postgres source `pg1`
3. Add a mssql source `mssql1`
4. Create an action
5. Attempt to add a relationship from the action to the ps

### Screenshots or Screencast

![image](https://user-images.githubusercontent.com/25712958/166996907-ffb4b031-4e2e-40a4-a457-51164cc6adb7.png)

![image](https://user-images.githubusercontent.com/25712958/166996253-6b945bbe-ce55-4921-840f-e4ac55484d2b.png)
`error`, `code`, and `path` are not schemas in the pg1 data source, and most likely come from a graphql error.

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.