hasura / hasura/graphql-engine

One tables index is showing on anothers

Open
#9,027 2 comments 1 reaction 0 assignees View on GitHub
c/console estimate/M k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version:
CLI Version (for CLI related issue): v2.12.0 console

### Environment

selfhosted/docker

### What is the current behaviour?

If you have two tables in different schemas but named the same.
Their indexes are shown on both tables.
![image](https://user-images.githubusercontent.com/72418976/192919977-ff57fb6a-0321-4a90-b21d-2f711ccda0f3.png)
![image](https://user-images.githubusercontent.com/72418976/192919910-ce698d19-3635-4560-9c51-472cad05e4c4.png)

### What is the expected behaviour?

Their indexes should be treated as different.

### How to reproduce the issue?

1. Create a table named 'x' in one schema
2. Create a table named 'x' in another schema
3. Check their indexes

Contributor guide

Open the contributing guide

Research direction

Reproduce this in the self-hosted Docker console by creating tables named x in two different schemas, then inspect the indexes shown for each table. The issue is done when each table displays only its own indexes rather than indexes from the other same-named table.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.