Skip to content

chore: Add Attack Paths Table feature flag BED-7775#2681

Merged
maffkipp merged 1 commit intomainfrom
BED-7775--ap-table-ff
Apr 20, 2026
Merged

chore: Add Attack Paths Table feature flag BED-7775#2681
maffkipp merged 1 commit intomainfrom
BED-7775--ap-table-ff

Conversation

@maffkipp
Copy link
Copy Markdown
Contributor

@maffkipp maffkipp commented Apr 20, 2026

Description

Adds a disabled, non user-updateable feature flag with the key attack_paths_table to the v9.1.0 migration file.

Motivation and Context

Resolves BED-7775

We want to gate the table view work on the Attack Paths page behind a feature flag.

How Has This Been Tested?

Screenshots (optional):

Types of changes

  • Chore (a change that does not modify the application functionality)
  • Database Migrations

Checklist:

Summary by CodeRabbit

  • Chores
    • Added database configuration for feature flag management.

@maffkipp maffkipp self-assigned this Apr 20, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 31a7c255-126c-42f7-9354-527ddd422756

📥 Commits

Reviewing files that changed from the base of the PR and between 99b761f and c1a6358.

📒 Files selected for processing (1)
  • cmd/api/src/database/migration/migrations/v9.1.0.sql

📝 Walkthrough

Walkthrough

A database migration adds a new attack_paths_table feature flag to the feature_flags table with both enabled and user_updatable set to false, using conflict-safe insertion to prevent duplicate key errors.

Changes

Cohort / File(s) Summary
Database Migration
cmd/api/src/database/migration/migrations/v9.1.0.sql
Inserts a feature flag row for attack_paths_table with enabled and user_updatable both set to false, with ON CONFLICT DO NOTHING for idempotent execution.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding a feature flag for Attack Paths Table, with the associated ticket reference.
Description check ✅ Passed The description includes required sections (Description, Motivation and Context, How Has This Been Tested, Types of changes, and Checklist) and covers the main change adequately.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch BED-7775--ap-table-ff

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bsheth711 bsheth711 self-requested a review April 20, 2026 19:56
@cweidenkeller
Copy link
Copy Markdown
Contributor

LGTM

@maffkipp maffkipp merged commit 3a8fd8f into main Apr 20, 2026
13 checks passed
@maffkipp maffkipp deleted the BED-7775--ap-table-ff branch April 20, 2026 20:43
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants