ToolJet / ToolJet/ToolJet

TJ DB: While creating a table if user changes data type of id column to boolean, show error state in that column row

Open
#9,746 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug database enhancement roadmap
Dominant language
JavaScript
Stars
40.9k
Forks
5.4k
Avg merge
2d 18h
Merged PRs (30d)
202

Description

What is the expected behaviour?

When such situation arises need to show an error: "Table must have at least one Primary key"

What is the current behaviour?

Current, when this happens, there is no clear indication of what happens next. Primary checkbox is unchecked, and disabled with tooltip that boolean cant be a PK. And create button stays disabled too.

Screenshots or Screencast
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Reproduce the table-creation flow by changing the id column type to boolean, then trace the table-column row validation and create-button state. Done means the affected row clearly shows "Table must have at least one Primary key" and the resulting disabled state is understandable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.