Fixes #31348: Keep NLQ disabled in OSS - #31349
Conversation
afbc0a2 to
b00e098
Compare
✅ Playwright Results — workflow succeededValidated commit ✅ 550 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 1h 1m 30s ⏱️ Max setup 2m 56s · max shard execution 18m 11s · max shard-job elapsed before upload 24m 16s · reporting 4s 🌐 207.80 requests/attempt · 2.83 app boots/UI scenario · 21.36% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ Approved 1 resolved / 1 findingsDecouples NLQ capability from hybrid search and ensures it remains disabled in OSS deployments. No issues found. ✅ 1 resolved✅ Quality: NLQ support coupled to hybrid-search-weights flag
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
| Count | Rule |
|---|---|
| 5 | sonarjs/no-duplicate-string |
| 3 | i18next/no-literal-string |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:56:60 |
i18next/no-literal-string |
disallow literal string: dp-icon |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:60:50 |
i18next/no-literal-string |
disallow literal string: domain-icon |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:116:51 |
i18next/no-literal-string |
disallow literal string: search |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:159:31 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 13 times. |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:165:42 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 4 times. |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:292:33 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 5 times. |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:311:33 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 3 times. |
| 🟡 | src/components/DataMarketplace/MarketplaceSearchBar/MarketplaceSearchBar.test.tsx:333:28 |
sonarjs/no-duplicate-string |
Define a constant instead of duplicating this literal 3 times. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|



Describe your changes:
Fixes #31348
NLQ is a Collate-only feature, but the shared UI previously trusted the server deployment flag directly. This change adds an independent deployment-capability guard: OSS always reports NLQ unsupported and skips the NLQ settings request, while Collate explicitly enables the capability through its private override.
Companion Collate change: https://github.com/open-metadata/openmetadata-collate/pull/5671
Issue:

Fix:

Type of change:
High-level design:
SearchSettingsClassBase.isNLQSupported()returnsfalseindependently from hybrid-search settings. The Collate override returnstruein the companion private PR, after which the server deployment flag controls runtime enablement.Tests:
Use cases covered
Unit tests
useSearchStore.test.ts,SearchSettingsClassBase.test.ts,MarketplaceSearchBar.test.tsxBackend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Screenshots are included above.
Checklist:
Fixes <issue-number>: <short explanation>.Fixes #31348above.