Skip to content

enh(query): Use recursive mode by default#465

Merged
zkdev merged 2 commits into
open-component-model:masterfrom
zkdev:master
Jun 9, 2026
Merged

enh(query): Use recursive mode by default#465
zkdev merged 2 commits into
open-component-model:masterfrom
zkdev:master

Conversation

@zkdev

@zkdev zkdev commented Jun 9, 2026

Copy link
Copy Markdown
Member

User feedback showed that most of the times the query is used in recursive mode.

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Compliance query now uses "recursive" mode by default

User feedback showed that most of the times the query is used in
recursive mode.

Signed-off-by: Philipp Heil (zkdev) <philipp.heil@sap.com>
@zkdev zkdev requested a review from a team as a code owner June 9, 2026 08:04
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 076f3e0a-9034-41b9-b29b-b3000828bfac

📥 Commits

Reviewing files that changed from the base of the PR and between b6fca74 and 168c14b.

📒 Files selected for processing (1)
  • src/component/metadataBrowser.js

📝 Walkthrough

Walkthrough

The metadata browser's "Include dependencies" quick filter now defaults to enabled. The scopeRecursive state initialization in MetadataBrowserTab changes from false to true, updating the default checked state of the filter toggle and the query payload when an OCM scope is present.

Changes

Include Dependencies Default Behavior

Layer / File(s) Summary
Default scopeRecursive state initialization
src/component/metadataBrowser.js
scopeRecursive state hook is initialized to true instead of false, making the Include dependencies filter enabled by default and including recursive scope in search queries.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A rabbit hops through code with glee,
One boolean flipped—defaults now flee,
From false to true, the switch now gleams,
Dependencies included in search schemes,
🐰 State shifts true, and scope runs deep!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: enabling recursive mode by default in the query, matching the single-line code modification in metadataBrowser.js.
Description check ✅ Passed The description covers the rationale and includes a properly formatted release note, though some optional template sections remain unfilled (issue reference, reviewer notes).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@8R0WNI3 8R0WNI3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@zkdev zkdev merged commit 028ada3 into open-component-model:master Jun 9, 2026
9 checks passed
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.

2 participants