Skip to content

ENG-2097 Exclude Page, Block, and Any from relation endpoint selectors - #1298

Open
sid597 wants to merge 1 commit into
mainfrom
eng-2097-exclude-page-block-and-any-from-relation-endpoint-selectors
Open

ENG-2097 Exclude Page, Block, and Any from relation endpoint selectors#1298
sid597 wants to merge 1 commit into
mainfrom
eng-2097-exclude-page-block-and-any-from-relation-endpoint-selectors

Conversation

@sid597

@sid597 sid597 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Builds the relation editor's Source and Destination options from configured discourse node types only (via the existing excludeDefaultNodes), so Page, Block, and Any can no longer be saved as new relation endpoints.

The full node map still includes Page/Block/Any because the relations table, sorting, and the selector's current-value button use it to display existing relations with generic endpoints — migrating those is out of scope per the ticket. MenuItemSelect renders activeItem independently of items, so editing such a relation still shows its current endpoint; it just can't be selected anew.

Closes ENG-2097


Open in Devin Review

@linear-code

linear-code Bot commented Aug 17, 2026

Copy link
Copy Markdown

ENG-2097

@supabase

supabase Bot commented Aug 17, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
discourse-graph Skipped Skipped Aug 17, 2026 12:01pm

Request Review

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f8eccc274b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1008 to +1010
const configuredNodeTypes = discourseNodes
.filter(excludeDefaultNodes)
.map((n) => n.type);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add unit coverage for endpoint option filtering

This introduces new selector-filtering behavior without a unit test proving that default Page/Block nodes and synthetic Any are excluded while user-configured node types remain selectable. A regression in getDiscourseNodes or this filtering logic could silently restore invalid relation endpoints or remove valid ones, and the repository explicitly requires unit tests for new functionality.

AGENTS.md reference: AGENTS.md:L82-L85

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant