Skip to content

chore: upsert any custom-node-kinds entries that are missing from kind table BED-7922#2829

Draft
AD7ZJ wants to merge 3 commits into
mainfrom
BED-7922--upsert-kind-from-cnk
Draft

chore: upsert any custom-node-kinds entries that are missing from kind table BED-7922#2829
AD7ZJ wants to merge 3 commits into
mainfrom
BED-7922--upsert-kind-from-cnk

Conversation

@AD7ZJ
Copy link
Copy Markdown
Member

@AD7ZJ AD7ZJ commented May 27, 2026

Description

This scans through the custom_node_kinds table and upserts to the kind table any kinds that are missing. It also gets rid of the custom_node_kind name column and makes a new kind_id column FK'ed to the kind table.

Motivation and Context

Resolves https://specterops.atlassian.net/browse/BED-7922

How Has This Been Tested?

A migration integration test has been created.

Screenshots (optional):

Types of changes

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

Checklist:

@AD7ZJ AD7ZJ self-assigned this May 27, 2026
@AD7ZJ AD7ZJ added the api A pull request containing changes affecting the API code. label May 27, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

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

Review profile: CHILL

Plan: Pro

Run ID: abb98f9d-be70-483c-ace5-87a0c117e5f4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch BED-7922--upsert-kind-from-cnk

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api A pull request containing changes affecting the API code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant