hasura / hasura/graphql-engine
console: uncheck `track this` checkbox at RawSQL when table identifier doesn't match createSQLRegex
Open
c/console
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
Steps to reproduce:
- type `create table a10$_abcde (id int);` at RawSQL
- and click Run
- There will be an error with message `no such table/view exists in source: "a10"`
Contributor guide
Research direction
Start at the console's RawSQL flow and locate createSQLRegex, then reproduce the issue with `create table a10$_abcde (id int);`. Trace how the table identifier is detected and how the `track this` checkbox is updated after Run. Done means the checkbox is unchecked when the identifier does not match the regex, with the reported error still handled correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql, typescript
- Domain
- databases, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100