hasura / hasura/graphql-engine
Untrack table not removing metadata files
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Version Information
Server Version: v2.6.2 (config v3)
### Environment
OSS
### What is the expected behaviour?
Clicking the "Untrack Table" button on "Data > Table > Modify" should additionally remove the referenced `metadata/databases/*/tables/*.yaml` files
### Keywords
untrack table, yaml, metadata, console
### What is the current behaviour?
While the `!include` array entries _are_ removed from `metadata/databases/*/tables/tables.yaml`, the referenced files are not removed
### How to reproduce the issue?
1. navigate to "Modify" tab of a table
2. click "Untrack Table" at the bottom
Contributor guide
Research direction
Start at the Data > Table > Modify view and trace the Untrack Table action. Check how it removes entries from metadata/databases/*/tables/tables.yaml and identify where referenced metadata/databases/*/tables/*.yaml files should also be removed. Done means both the include entries and referenced files are gone after untracking a table.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100