Skip to content

fix(databases): surface dataset dependents in the delete confirmation - #44392

Merged
rusackas merged 11 commits into
masterfrom
agorithm/database-delete-dataset-warning
Sep 29, 2026
Merged

rusackas merged 11 commits into
masterfrom
agorithm/database-delete-dataset-warning

Conversation

@geido

@geido geido commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

SUMMARY

Deleting a database connection opens a confirmation modal that enumerates the objects the delete will affect. That preview counted charts, dashboards and SQL Lab tabs — but not datasets, because GET /api/v1/database/<id>/related_objects/ never returned them.

That is the one dependency class the delete actually refuses on. DeleteDatabaseCommand.validate() raises DatabaseDeleteDatasetsExistFailedError (HTTP 422) while any SqlaTable row references the database, so for a connection whose only dependents are datasets the modal read:

The database qa_warehouse is linked to 0 charts that appear on 0 dashboards and users have 0 SQL Lab tabs using this database open. Are you sure you want to continue? Deleting the database will break those objects.

…which asserts nothing will break, and gates a confirmation that cannot succeed. The user types DELETE, confirms, and gets There was an issue deleting qa_warehouse: Cannot delete a database that has datasets attached — with the same misleading modal still on screen.

This adds datasets to the preview and rewords the confirmation when they are present:

  • DatabaseDAO.get_related_objects returns the SqlaTable rows referencing the database. It queries them under skip_visibility_filter, exactly as DeleteDatabaseCommand.validate() does — Database.tables hides soft-deleted datasets, which would otherwise let the preview report zero dependents for a database the delete still refuses.
  • related_objects gains a datasets block (count, result[{id, table_name, schema}]) and DatabaseRelatedObjectsResponse documents it.
  • The modal names the datasets under Affected Datasets and states the connection cannot be deleted until they are removed, instead of asking the user to confirm.

Design decision worth reviewing: dataset names are access-filtered with security_manager.can_access_datasource, the same way chart and dashboard names already are. The count is deliberately left unfiltered. This route only requires can_read on Database, and DatabaseFilter admits a caller holding datasource_access on a single dataset in that database — returning every name would let them enumerate datasets they hold no permission on. The count has to stay unfiltered because it is what explains the delete being blocked, and a bare number discloses far less than a name and schema. Both halves are pinned by tests. The result list is capped at ten authorized datasets—the same maximum the modal renders—while count remains complete; candidate details are read in bounded batches so the endpoint does not materialize or serialize every dataset.

The frontend tolerates a backend that predates the datasets block (json.datasets ?? { count: 0, result: [] }), so a version-skewed deployment degrades to the previous copy rather than throwing.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Verified in a running instance against a connection (qa_warehouse) whose only dependents are two datasets — no charts, no dashboards, no SQL Lab tabs. Exact modal text, captured from the app in both states:

Before — the preview reports nothing attached, and invites the delete:

Delete Data connection?
The data connection qa_warehouse is linked to 0 charts that appear on 0 dashboards and users have 0 SQL Lab tabs using this database open. Are you sure you want to continue? Deleting the database will break those objects.

Typing DELETE and confirming then fails, because the backend refuses it:

There was an issue deleting qa_warehouse: Cannot delete a database that has datasets attached

After — the preview names what is actually blocking the delete:

Delete Data connection?
The data connection qa_warehouse cannot be deleted because 2 datasets are still attached to it. Delete or move those datasets first.

Affected Datasets
• birth_names
• cleaned_sales_data

A connection with no datasets is byte-identical to before — the ordinary "Are you sure you want to continue?" confirmation is untouched.

TESTING INSTRUCTIONS

Automated:

# backend
pytest tests/unit_tests/databases/dao/related_objects_test.py
pytest tests/unit_tests/databases/api_test.py -k related_objects

# frontend
cd superset-frontend && npx jest src/pages/DatabaseList

Manual:

  1. Add a database connection.
  2. Create a dataset on it (Datasets → + Dataset), and no charts.
  3. Go to Settings → Database Connections, hover the connection, click the trash icon.
  4. The modal names the dataset under Affected Datasets and says the connection cannot be deleted until it is removed. Before this change it reported 0 charts / 0 dashboards / 0 SQL Lab tabs and offered to continue.
  5. Remove the dataset and reopen the modal — the ordinary "Are you sure you want to continue?" confirmation is unchanged.

To check the access-filtering: as a user holding datasource_access on only one of several datasets in the connection, the modal counts them all but names only the accessible one.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Deleting a database connection is refused while any dataset still
references it (DeleteDatabaseCommand.validate), but the confirmation
modal only enumerated charts, dashboards and SQL Lab tabs. A connection
whose only dependents were datasets therefore read as "linked to 0
charts that appear on 0 dashboards" and promised that deleting "will
break those objects" -- the user learned the delete was blocked only
after typing DELETE and confirming, from a toast.

Return a datasets block from the related_objects endpoint and render it
in the modal, and say the delete is blocked rather than destructive when
datasets are attached.

The datasets are counted with the soft-delete visibility filter bypassed,
matching how validate() counts them: database.tables hides soft-deleted
datasets, which would otherwise let the preview report zero dependents
for a connection the delete still refuses.
The datasets block added to this endpoint returned every dataset name and
schema on the connection. The route only requires can_read on Database,
and DatabaseFilter admits a caller holding datasource_access on a single
dataset in that database, so the response let such a caller enumerate
datasets they hold no permission on.

Filter the names with can_access_datasource, matching how charts and
dashboards are already filtered, and keep the count unfiltered so the
confirmation can still explain why the delete is blocked. The modal now
derives its overflow footer from what is actually listed, and renders no
list at all when none of the blocking datasets are visible.
@bito-code-review

bito-code-review Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #03994d

Actionable Suggestions - 0
Additional Suggestions - 3
  • superset-frontend/src/pages/DatabaseList/index.tsx - 1
    • Misleading soft-deleted dataset guidance · Line 1171-1172
      The blocked-delete copy says 'Delete or move those datasets first', but `datasets.count` includes soft-deleted datasets (`DatabaseDAO.get_related_objects` bypasses the visibility filter, and `DeleteDatabaseCommand.validate` blocks on them too), which the operator's dataset list does not show — so the instruction can be unactionable. Consider wording that covers hidden datasets, or a live/soft-deleted breakdown from the backend.
  • tests/unit_tests/databases/dao/related_objects_test.py - 1
    • Triplicated test setup · Line 40-54
      The setup block — function-local imports, `create_all`, `Database`/`SqlaTable` construction, and the `DatabaseDAO.find_by_id` mock with its base-filter comment — is repeated verbatim in all three tests (also lines 72-90 and 102-115). A shared fixture keeps the soft-delete-bypass rationale in one place and prevents silent divergence when the setup changes.
  • tests/unit_tests/databases/api_test.py - 1
    • Untyped lambda in mock · Line 2740-2740
      `side_effect` on the `can_access_datasource` mock at line 2740 uses an untyped lambda, which BITO.md rule 13350 asks to replace with a named helper carrying explicit type hints (`datasource: Any -> bool`). A named helper also documents what the fake models. Note the idiom is widespread in this suite (113 `side_effect=lambda` hits in tests/unit_tests), so treat as a light consistency fix.
Review Details
  • Files reviewed - 8 · Commit Range: ef153a8..9fce2a8
    • superset-frontend/src/pages/DatabaseList/DatabaseList.datasetDependents.test.tsx
    • superset-frontend/src/pages/DatabaseList/index.tsx
    • superset/daos/database.py
    • superset/databases/api.py
    • superset/databases/schemas.py
    • tests/integration_tests/databases/api_tests.py
    • tests/unit_tests/databases/api_test.py
    • tests/unit_tests/databases/dao/related_objects_test.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the api Related to the REST API label Sep 17, 2026
`related_objects` gained a `datasets` field, so the published spec no longer
matches what `superset update-api-docs` generates. Regenerate it: the diff is
limited to the two new component schemas and the added `$ref`.
@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Sep 17, 2026
@netlify

netlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 21c10ca
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ab54403632f860008dff8fe
😎 Deploy Preview https://deploy-preview-44392--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.55172% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.08%. Comparing base (613033b) to head (057cefd).

Files with missing lines Patch % Lines
...erset-ui-core/src/components/DeleteModal/index.tsx 80.00% 1 Missing ⚠️
superset/daos/database.py 95.83% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #44392       +/-   ##
===========================================
+ Coverage   57.12%   81.08%   +23.96%     
===========================================
  Files        2955     2955               
  Lines      178324   178374       +50     
  Branches    41313    41325       +12     
===========================================
+ Hits       101869   144638    +42769     
+ Misses      75475    31025    -44450     
- Partials      980     2711     +1731     
Flag Coverage Δ
hive 36.80% <42.50%> (+<0.01%) ⬆️
javascript 76.45% <94.44%> (+0.02%) ⬆️
mysql 55.99% <87.50%> (?)
postgres 56.00% <87.50%> (?)
presto 38.70% <42.50%> (+<0.01%) ⬆️
python 85.38% <97.50%> (+46.63%) ⬆️
sqlite 55.72% <87.50%> (?)
unit 77.67% <97.50%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sadpandajoe sadpandajoe added review:checkpoint Last PR reviewed during the daily review standup and removed review:checkpoint Last PR reviewed during the daily review standup labels Sep 17, 2026
@github-actions github-actions Bot added i18n Namespace | Anything related to localization risk:db-migration PRs that require a DB migration embedded plugins dependencies:npm github_actions Pull requests that update GitHub Actions code labels Sep 21, 2026

@EnxDev EnxDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency count matches the backend delete guard, including archived datasets, and the access filtering keeps the names scoped appropriately. I left one comment on the cleanup guidance and a smaller UX suggestion for the blocked state.

Validation: all 5 focused backend tests and all 8 dataset-dependent modal tests passed. Pre-commit passed except for frontend type checking, which hit missing generated workspace declarations (TS6305) in the temporary checkout; I could not complete that check. I did not verify the UI in a running Superset instance.

Comment on lines +1211 to +1212
'cannot be deleted because %s dataset is still attached to it. Delete or move that dataset first.',
'cannot be deleted because %s datasets are still attached to it. Delete or move those datasets first.',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make the cleanup guidance cover archived datasets here? With SOFT_DELETE enabled (the default), removing a dataset from the dataset list archives it, so it still contributes to this count and blocks the connection delete. Once only archived datasets remain, the normal dataset list is empty, and “Delete or move” gives the user no next step. Disabling the button also means they never see DatabaseDeleteSoftDeletedDatasetsExistFailedError, which explains the purge flow. Pointing them to Recently archived → Delete permanently, and covering the archived-only case in the modal tests, would make this actionable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I updated the blocked copy to point users to Recently archived → Delete permanently, and added coverage for the archived-only case.

}}
onHide={() => setDatabaseCurrentlyDeleting(null)}
open
disablePrimaryButton={databaseCurrentlyDeleting.datasets.count >= 1}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small UX suggestion: could the blocked state use an informational modal with a Close action and no confirmation input? DeleteModal still renders and focuses “Type DELETE to confirm”, even though typing it can never enable the button here. The new disabled-action test confirms that behavior. Hiding that prompt while datasets are attached would avoid inviting the user to complete a step that cannot do anything.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I kept the modal structure consistent, but the confirmation input is now disabled and no longer focused whenever deletion is blocked; the primary action stays disabled too. Covered in both the shared modal and database-list tests.

@EnxDev EnxDev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow-up. I reviewed the updated copy, the shared DeleteModal change, and the batched dataset lookup. The archived-dataset guidance addresses my earlier comment, and disabling the confirmation input avoids inviting users to type into a blocked action. I found no additional actionable issues in this pass.

Validation: 87 frontend tests passed across the database deletion, shared confirmation, and archived-item flows. The 6 related-object backend tests also passed, plus an extra local batching check: two entirely inaccessible pages followed by authorized datasets, including an archived row. That check confirmed the full count is preserved and the response stops at 10 authorized names.

Pre-commit passed except frontend type checking, which remains blocked locally by missing generated workspace declarations (TS6305). Live UI verification was unavailable.

@github-actions

Copy link
Copy Markdown
Contributor

🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️ 🙅‍♂️❗ @geido Your base branch master has also updated superset/migrations.

Please consider rebasing your branch and resolving potential db migration conflicts.

@bito-code-review

bito-code-review Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #f3ebff

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset/daos/database.py - 1
    • soft-delete filter inconsistency · Line 242-244
      `dataset_ids` now filters `deleted_at IS NULL` when `SOFT_DELETE` is on (default True), so charts/dashboards on soft-deleted datasets are dropped from `related_objects`. But `dataset_count` (line 275) deliberately bypasses soft-delete to match `DeleteDatabaseCommand`. The response can now report `count=12` while hiding the charts that reference the soft-deleted rows — an inconsistency the removed `database.tables` path did not have. Confirm intent or align both filters.
Review Details
  • Files reviewed - 9 · Commit Range: 9fce2a8..1250e2c
    • superset-frontend/src/pages/DatabaseList/DatabaseList.datasetDependents.test.tsx
    • superset-frontend/src/pages/DatabaseList/index.tsx
    • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/DeleteModal.test.tsx
    • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/index.tsx
    • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/types.ts
    • superset/daos/database.py
    • superset/databases/api.py
    • tests/unit_tests/databases/api_test.py
    • tests/unit_tests/databases/dao/related_objects_test.py
  • Files skipped - 1
    • docs/static/resources/openapi.json - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas

Copy link
Copy Markdown
Member

Heya @geido, nice write-up on this one.

One thing before it can merge, though: CI's failind due to this diff. DeleteModal's disablePrimaryButton now disables the confirmation input too, and that breaks DatasetList.integration.test.tsx ("bulk delete confirm cannot be submitted before the dependents lookup resolves"). The test types DELETE while the lookup's pending, expecting the button to enable once it resolves, but since the input's now disabled during that window, the DELETE never actually gets typed in, so it stays disabled for good.

disablePrimaryButton is used elsewhere too, so this needs a fix rather than a rerun. The threads from @EnxDev look addressed in the later commits already.

Say the word if you want a hand tackling any of the above.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Possible DB migration conflict

@geido the base branch master picked up a new database migration under superset/migrations/ after this PR was opened, and this PR adds or modifies migration files too. Alembic migrations form a single linear chain, so if both branch off the same parent revision, merging this PR as-is could leave the migration history with two heads instead of one, which makes superset db upgrade fail with Multiple head revisions are present.

To check and, if needed, fix this:

  1. Rebase this branch onto the latest master.
  2. Run superset db heads. If it lists more than one revision, you have a conflict.
  3. In your new migration's script, update down_revision (and the Revises comment) to point at the other head instead, so the chain has a single head again.

See Merging DB Migrations in the contributing guide for a worked example.

@github-actions github-actions Bot removed i18n Namespace | Anything related to localization risk:db-migration PRs that require a DB migration embedded plugins dependencies:npm github_actions Pull requests that update GitHub Actions code dependencies:python labels Sep 24, 2026
Comment thread superset/daos/database.py
Comment on lines +73 to +79
query = cls._related_datasets_query(database_id)
if last_id is not None:
query = query.filter(SqlaTable.id > last_id)
batch = query.order_by(SqlaTable.id).limit(RELATED_DATASET_BATCH_SIZE).all()
if not batch:
return
yield from batch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: When fewer than ten datasets are accessible, this iterator scans every related row in batches, making modal requests scale with all hidden datasets.

Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Performance

Use CodeAnt Skill Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** superset/daos/database.py
**Line:** 73:79
**Comment:**
	*Performance: When fewer than ten datasets are accessible, this iterator scans every related row in batches, making modal requests scale with all hidden datasets.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

class DatabaseRelatedDataset(Schema):
id = fields.Integer()
table_name = fields.String()
schema = fields.String()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Dataset schemas may be NULL, but this response schema declares schema as non-nullable, so generated API clients reject valid responses.

Assessment: 🟠 Major · 🔁 Occurrence: Often · 🏷️ Api mismatch

Use CodeAnt Skill Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** superset/databases/schemas.py
**Line:** 950:950
**Comment:**
	*Api Mismatch: Dataset schemas may be NULL, but this response schema declares `schema` as non-nullable, so generated API clients reject valid responses.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

@github-actions github-actions Bot added the i18n Namespace | Anything related to localization label Sep 24, 2026
@geido

geido commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Thanks @rusackas — fixed the shared modal so disablePrimaryButton blocks the action without blocking typing during the dataset lookup. The database deletion flow explicitly disables the input when attached datasets make deletion unavailable. The DatasetList regression test and all CI checks are green; I also merged latest master, and the migration-head check passes.

@bito-code-review bito-code-review Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #f0493f

Actionable Suggestions - 1
  • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/types.ts - 1
Additional Suggestions - 1
  • superset-frontend/src/pages/DatabaseList/index.tsx - 1
    • duplicated block condition · Line 1334-1336
      The condition `databaseCurrentlyDeleting.datasets.count >= 1` is now repeated at lines 1206, 1333, and 1335. If the blocking rule changes, all three must stay in sync or the message/button/input states diverge. Consider extracting `const deleteBlocked = databaseCurrentlyDeleting.datasets.count >= 1;` and reusing it in all three places.
Review Details
  • Files reviewed - 5 · Commit Range: 1250e2c..057cefd
    • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/DeleteModal.test.tsx
    • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/index.tsx
    • superset-frontend/packages/superset-ui-core/src/components/DeleteModal/types.ts
    • superset-frontend/src/pages/DatabaseList/index.tsx
    • superset/translations/messages.pot
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

/** Disable the primary action independently of the typed-text gate. */
disablePrimaryButton?: boolean;
/** Disable the confirmation input and primary action when deletion is blocked. */
disableConfirmationInput?: boolean;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misleading prop name

disableConfirmationInput also disables the primary action via confirmationBlocked (index.tsx:56-57), overlapping disablePrimaryButton. The DatabaseList consumer sets both to the same value (index.tsx:1333-1336), showing the overlap is confusing. A name like disableConfirmation would reflect that it gates the whole flow.

Code Review Run #f0493f


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@rusackas
rusackas merged commit 8bd92b7 into master Sep 29, 2026
83 checks passed
@rusackas
rusackas deleted the agorithm/database-delete-dataset-warning branch September 29, 2026 02:27
villebro pushed a commit that referenced this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the REST API doc Namespace | Anything related to documentation i18n Namespace | Anything related to localization packages size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants