Skip to content

feat: add node and edge kinds to GET /kinds endpoint BED-7925#2678

Draft
mistahj67 wants to merge 4 commits intomainfrom
BED-7925
Draft

feat: add node and edge kinds to GET /kinds endpoint BED-7925#2678
mistahj67 wants to merge 4 commits intomainfrom
BED-7925

Conversation

@mistahj67
Copy link
Copy Markdown
Contributor

@mistahj67 mistahj67 commented Apr 20, 2026

Description

Describe your changes in detail
Extends /kinds with node_kinds and edge_kinds map to provide icon / display name information to be used by the UI

Motivation and Context

Resolves BED-7925

Why is this change required? What problem does it solve?

How Has This Been Tested?

Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc.

Screenshots (optional):

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

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

coderabbitai bot commented Apr 20, 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: 607f0384-69ac-4dc4-b6de-4982c863b421

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-7925

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

if nodeKind, ok := displayKinds[kind]; ok {
resp.NodeKinds[kind.String()] = nodeKind
// Asset group tags are node kinds as well as meta kinds, they do not have icons
} else if strings.HasPrefix(kind.String(), model.AssetGroupTagKindPrefix) || kind.Is(graph.StringKind("Meta"), graph.StringKind("MetaDetail"), graph.StringKind("MigrationData")) {
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 (non-blocking): it might be nice to consolidate all of these checks into a method on the kind that we could call

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm hesitant to codify this at such a basal type struct as "kind" as it is used quite extensively in this codebase

Base automatically changed from BED-7920 to main April 20, 2026 22:06
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.

2 participants