hasura / hasura/graphql-engine

Format dependent objects list in untrack failure error message

Open
#9,853 0 comments 0 reactions 0 assignees View on GitHub
c/console k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Problem
When I want to untrack a table that has many dependent objects like relationships, it's hard to read what all of those objects are because the error message is not formatted.

![image](https://github.com/hasura/graphql-engine/assets/14282652/fa1efecb-0981-4f40-bc8b-ee4cedfbbf6b)

### Proposed Solution
This error message would be easier to read if there was a separate line, and possibly a bullet point, for each individual object in the list. For example:

> cannot drop due to the following dependent objects:
> - relationship ArticlesToArea.area in source "default", relationship Company.area in source "default"
> - relationship Event.area in source "default", relationship EventPro.area in source "default"
> ...
> - relationship app.users.area in source "default"

### Alternatives Considered
Sometimes, I just copy this output and paste it into another window to read more easily. Otherwise, I just read through the error output more slowly than I would be able to with an easier to read format.

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.