hasura / hasura/graphql-engine

console: uncheck `track this` checkbox at RawSQL when table identifier doesn't match createSQLRegex

Open
#6,905 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.