Repository navigation
Pr 27111 - #32
Closed
mohityadav766 wants to merge 166 commits into
Closed
Pr 27111#32mohityadav766 wants to merge 166 commits into
mohityadav766 wants to merge 166 commits into
Conversation
…hareLock (#29658) * Use AUTOCOMMIT for ingestion engines to release AccessShareLock Read-only metadata/profiler ingestion opened a transaction and never committed it until the run ended, pinning AccessShareLock on every crawled table (Redshift/Postgres release locks only at COMMIT) and blocking other users' DDL for hours. Build ingestion engines with isolation_level=AUTOCOMMIT in the shared create_generic_db_connection, guarded to dialects that support it, so locks release after each statement. An explicit caller isolation_level is respected. * Assert explicit isolation_level is honored via get_isolation_level
…ameModal (#29783) * refactor(entity-rename): replace antd components with core-components in EntityNameModal - Replace antd Form, Modal, Button, Typography with @openmetadata/ui-core-components equivalents (Dialog, ModalOverlay, Modal, Button, Typography) - Use react-hook-form (Controller/useForm) instead of antd Form context - Add SanitizedField helper wrapping InputBase in AriaTextField so onChange receives a string and id flows through to the DOM <input>, preserving Playwright locators (#name, #displayName, #name_help, [role="dialog"]) - Update EntityNameModal.interface.ts: remove antd Rule import, add EntityNameValidationRule object type - Update ManageButton.tsx: cast DISPLAY_NAME_FIELD_RULES as EntityNameValidationRule[] - Update SchemaTable.component.tsx: replace antd Form context for constraint with local editConstraint state; cast updateColumnDetails arg as Partial<Column> - Update entityPanel.ts: replace .ant-modal selector with [role="dialog"] Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(entity-rename): sort Controller props in EntityNameModal Move the rules prop after render on the name/displayName Controllers to satisfy the sort-props lint rule. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(entity-rename): address gitar-bot review on EntityNameModal - buildValidate: skip min/max/pattern for empty non-required values, mirroring antd async-validator behavior (clearing displayName no longer produces a spurious min-length error) - useEffect reset: depend on entity.name/entity.displayName primitives instead of the entity object reference, so inline object literals passed by callers (e.g. ManageButton) don't wipe in-progress edits on every parent re-render Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(entity-rename): restore DeleteWidgetModal import in ManageButton Previous commit accidentally renamed DeleteWidgetModal → DeleteEntityModal causing all test suites that import ManageButton to fail with "Cannot find module '../../DeleteWidget/DeleteEntityModal'". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(playwright): fix stale antd selectors after EntityNameModal migration - EntitySummaryPanel: replace .ant-modal with [role="dialog"] for cancel test - EntityVersionPages: replace .ant-modal-footer/.ant-modal-body with [role="dialog"] selectors for column display name edit step - EntityNameModal: add mode:'onChange' to useForm so validation errors appear on keystroke (glossary rename max-length test expects #name_help to populate without clicking save first) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(checkstyle): remove unused eslint-disable directive in EntityNameModal The react-hooks/exhaustive-deps directive is no longer needed because the deps array already uses the correct primitive values (entity.name, entity.displayName) and the linter does not flag a violation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(entity-rename): address gitar-bot and greptile review findings - buildValidate: enforce required rule for empty values — previously a rule with {required:true} and no min/max/pattern returned true for empty input instead of the error message - SchemaTable: narrow editConstraint state to Constraint|undefined (was string|undefined, losing enum-level type safety); add Constraint import from generated table types - EntityNameModal: add data-testid="entity-name-modal" to Dialog so Playwright selectors can be scoped to avoid collisions with other [role="dialog"] elements on the page - Update entityPanel.ts, EntitySummaryPanel.spec.ts, and EntityVersionPages.spec.ts to use getByTestId('entity-name-modal') Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix lint checks * nit * Refactor component * nit * nit * nit --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
* Removed bulk delete material ui component * nit
…al data (#29656) * feat(ui): scaffold Agents page prototype with header, route and preview harness Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(ui): point Agents token bridge at tw-prefixed theme tokens The Tailwind v4 theme is imported with prefix(tw), so the real tokens are --tw-color-*/--tw-shadow-*. The bridge targeted unprefixed --color-* names which resolve empty, leaving the page colorless. Retarget to --tw-* and add bare --shadow-* aliases. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): Agents page agent list, cards, group and tabs Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): Agents card action icons, line length, prop order, description copy Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): Agents page live simulation and deployment summary card Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat(ui): Agents page run history drawer Implements Task 4 of the ServiceAgents prototype: a slide-over run history drawer with a CI-style run rail, stat tiles, and per-step breakdown with promoted attention cards (copy, how-to-fix hint, show/hide raw logs toggle). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): Agents page raw log viewer drawer Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(ui): Agents page i18n sync, checkstyle and copy polish - Lowercase summary stat captions: assets-ingested → "assets ingested", est-remaining → "est. remaining" - Apply .toLowerCase() to error-plural callsite in DeploymentSummaryCard (no shared key mutation) - Add trailing period to message.no-lines-match - Add URL.revokeObjectURL after a.click() in LogViewerDrawer.handleDownload - Sync all 19 locale files via yarn i18n (adds ~40 Agents keys per locale) - Run full checkstyle sequence: organize-imports → lint:fix → prettier → license-header-fix - Reflow >200-col mock/agents.mock.ts lines via prettier (0 lint errors) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): Agents page agspin keyframe, title i18n, mock log seam Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): Agents real-data mapper (pipeline -> agent view-model) + tests Adds pure mapping functions that translate IngestionPipeline/PipelineStatus/ StepSummary API shapes into the Agents page view-model (Agent, AgentRun, RunStep, LogLine), reusing the existing AgentStatus classification and date-time utilities. Covered by 45 Jest unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(ui): remove Agents mock-page harness; add fqn/pipelineType to Agent view-model Deletes the standalone preview harness (AgentsPage.component, preview entry, agents-preview.html), the useSimulatedAgents hook, mock/agents.mock.ts, and the AGENTS_PREVIEW route + constant — the page now targets the real service Agents tab. Adds fqn + pipelineType to the Agent view-model so the run-history and log drawers can fetch by pipeline. runs.mock/logs.mock remain until the drawers are wired to real data. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): Agents real-data hooks (list poll, run history, logs, actions) - useMetadataAgents: maps pipelines -> Agent[] and polls running agents' latest status every 5s (skips polling when none running). - useAgentRuns: getRunHistoryForPipeline -> AgentRun[] for the history drawer. - useAgentLogs: getIngestionPipelineLogById -> parsed LogLine[] with after/total paginated load-more. - useAgentActions: trigger/deploy/kill/toggle with success+error toasts. Adds label.stopped-lowercase. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): wire Agents drawers to real data (runs, logs, attention stackTrace) - RunHistoryDrawer uses useAgentRuns (async/empty + loading states). - LogViewerDrawer uses useAgentLogs with paginated load-more. - RunStepRow attention raw-logs now render the real StackTraceError.stackTrace (toggle hidden when absent); adds RunAttention.stackTrace + mapper support. - Deletes mock/runs.mock and mock/logs.mock (no longer referenced). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): render new Agents design in service tab with real data Rewrites Ingestion.component to show the DeploymentSummaryCard status header + Metadata/Collate-AI sub-tabs; Metadata renders the new MetadataAgentsView (real agents via useMetadataAgents + actions via useAgentActions + run/log drawers + real AddIngestionButton), Collate keeps the existing widget. Filters and search dropped. AgentGroup gains an addAgentSlot for the real add button. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(ui): Agents real-data test, i18n sync and checkstyle - Rewrites Ingestion.test for the new container (airflow-error + Add Agent permission gating); drops removed filter/search/legacy-widget tests. - Adds message.no-recent-runs; syncs new keys to all locales. - Runs organize-imports + eslint + prettier across the changed files. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): Agents logs use LogViewerModal (+wrap), delete confirm, ongoing copy - Adds a Wrap toggle to the shared LogViewerModal (AlignLeft + LazyLog wrapLines) and uses it for agent logs; deletes the bespoke LogViewerDrawer. - Overflow Delete now opens a ConfirmationModal before calling the delete API. - DeploymentSummaryCard copy reworded for the ongoing tab (not first-deploy). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(ui): remove dead Agents standalone header/tab-bar components AgentsPageHeader and AgentsTabBar were only used by the deleted preview page; the service tab provides its own header + sub-tab switch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(ui): Agents components use core Box/Card/Grid primitives Replace hand-rolled flex divs and inline-style flex containers in the Agents UI with the shared Box/Card primitives from @openmetadata/ui-core-components. Purely mechanical - rendered classes/styles are preserved exactly; Grid was evaluated for the 5-tile run-history stat strip but its 24-column track doesn't divide evenly by 5, so that row stays a Box row per the documented fallback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): keep DeploymentSummaryCard gradient wrapper a block div The primitives sweep turned the outer gradient container (originally a block div, not flex) into a Box; revert it so block layout is preserved exactly. Inner rows remain Box. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Add new agents icons * Update localization changes * Update the agents list and details components to match the design * Fix the recent runs dots not showing per status * add the fetch-event-source package for SSE UI integration with jwt * Integrate the SSE live updates in the UI for agents status * Update the agents switch to tab and move the banner above tabs * add onRefresh handler to IngestionWorkflow component * Fix icon styling * Fix add ingestion button * Fix the agents status * Add agent button extensibility * Worked on comments * fix checkstyle * Fix tests * integrate the ingestion pipeline update logic when got pipeline through streaming data * Fix playwright and tab count not updating * Fix checkstyle * Fix permission fallback defaults and flaky trigger wait Agent action buttons now default to no permissions until an explicit permission set resolves, permissions are fetched for stream-discovered agents via FQN-keyed lookups, and the permission spec retries the trigger instead of a fixed 15s sleep. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Fix test connection modal not showing all step accordians * Fix TestConnectionModal unit tests after gate fallback change The gate fallback now requires a ConnectionGate category or a CheckAccess step, so gate-related specs mock CheckAccess/GetSchemas instead of generic step names. Adds coverage for the no-gate case where every step renders as a capability accordion. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Add empty placeholder * Fix the agents count not updating * Fix failed banner style * Work on comments * Add footer to the agents log * Fix the banner stuck in running state * Fix drawer closing on viewing logs --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Aniket Katkar <aniketkatkar97@gmail.com>
* Fixed the Certification icon rendering issue * Update openmetadata-ui/src/main/resources/ui/src/components/Certification/Certification.test.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * addressed gitar comment * addressed PR comment * addressed gitar comment * lint fix --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…ative @check framework (#29773) * Fixes #29765: refactor(databricks): migrate test-connection to declarative @check framework Replace the DatabricksConnection.test_connection override with a checks() provider driven by BaseConnection.test_connection. Implements all 13 seeded steps via DatabricksChecks, adds a Databricks ErrorPack folding in the shared network pack, gates on a TCP preflight, and marks CheckAccess as ConnectionGate. Adds the 7 greenfield lineage/tag/view-definition members to the shared DatabaseStep enum. * fix(databricks): defer inspector build so checks() never connects eagerly sqlalchemy.inspect(engine) opens a connection at construction (the dialect's _init_engine runs engine.connect().close()). Building it in DatabricksEngineWrapper.__init__ connected before the runner's CheckAccess gate, so an auth failure escaped the runner as a 500 and an unreachable host hung on the driver's own timeout instead of the 20s TCP preflight. Make the inspector lazy. Also classify NO_SUCH_CATALOG_EXCEPTION / NO_SUCH_SCHEMA_EXCEPTION (Databricks says 'was not found', not 'does not exist'). * fix(databricks): cap test-connection listing at the source, not after fetch The wrapper's catalog/table/view listing used fetchall() and get_schemas reflected the full name list, so GetSchemas on a 102-schema catalog reported '102+' and materialized the whole result. Cap at the fetch (fetchmany(DEFAULT_SAMPLE_ROWS)) and slice the schema reflection, so the count reads '100+' and memory stays bounded. Scoped to DatabricksEngineWrapper, which is test-connection only; real ingestion enumerates everything via CommonDbSourceService. * fix(databricks): diagnose MALFORMED_REQUEST as an invalid HTTP path A bad httpPath fails CheckAccess with MALFORMED_REQUEST and the gate short-circuits the rest, but the step carried no diagnosis - just the raw driver error. Add a rule pointing at the SQL warehouse HTTP path format. * fix(databricks): honor connectionTimeout as the per-step budget The removed test_connection override passed service_connection.connectionTimeout (default 120s) as the per-step timeout; the migrated path fell back to the 60s framework default, so a cold serverless warehouse could spuriously time out and user overrides were ignored. Resolve connectionTimeout into BaseConnection.step_timeout_seconds (the connector-level hook) in __init__ - no test_connection override, consistent with the bigquery migration. Addresses the greptile review finding. * docs(databricks): tighten test-connection comments and docstrings Trim rationale-heavy docstrings to contract-only and cut restated-obvious comments, keeping short notes only for the non-obvious footguns (eager inspect connect, error-pack ordering). * fix(databricks): normalize hostPort and guard unresolved catalog Strip a pasted URL scheme/path from hostPort (shared helper used by the TCP preflight and the URL builder) so a workspace URL doesn't fail the gate with a misleading DNS error. Guard the catalog-scoped USE CATALOG / SHOW statements so an unresolved first_catalog never emits literal `None` SQL. Addresses review findings. * fix(databricks): normalize auth host + honest GetDatabases command Share the hostPort scheme/path normalization with the OAuth/Azure-AD host derivation in auth.py (a pasted workspace URL no longer leaks 'https' as the auth host). Report no command for GetDatabases when a catalog is configured (it is trusted without running SHOW CATALOGS), so the evidence matches what ran. Tighten the URL test to a urlparse check (drops the CodeQL substring-sanitization flag).
…e off MUI/AntD (#29803) * refactor(ui): migrate LineageLayers, CanvasEdgeRenderer and LineageTable off MUI/AntD Continue the MUI/AntD -> ui-core-components (Untitled) migration for the lineage surfaces: - LineageLayers: MUI Popover + ToggleButtonGroup + styled -> PopoverTrigger + Popover + ButtonGroup/ButtonGroupItem, preserving the vertical icon+label toggles, tokens and every data-testid; delete the dead lineage-layers.less. - CanvasEdgeRenderer: fully remove the MUI Theme from the canvas draw chain (EdgeStyleUtils + useCanvasEdgeRenderer) via a local LineageEdgeColors type, sourced by a new useLineageEdgeColors hook that mirrors createMuiTheme's palette computation so edge colors stay identical (incl. brand customization). - LineageTable: AntD Card -> ui-core Card + header/body divs; keep the lineage-card classes and extend the fullscreen height rule to the new .lineage-card-body. ColumnsType stays (typed by the shared common Table). - Playwright: update layer-selection assertions from the removed Mui-selected class to react-aria's data-selected attribute. 91 Jest tests pass across the affected suites; UI checkstyle clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): resolve max-len lint error and iconLeading prop on LineageLayers - Split the LAYER_BUTTON_CLASSES string so no line exceeds the 200-char max-len rule (was failing UI Checkstyle lint-src). - Use the Button's iconLeading prop (correct name, with the FC cast) for the Layers trigger icon. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): invalidate edge-style cache when lineage colors change The edge-style cache key does not encode colors, so after the user updates the brand/custom theme the canvas could repaint stale strokes from cache hits. Clear the cache when the resolved color signature changes. Adds a test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * style(ui): drop dead .ant-card-body selector from .lineage-card-table The impact table migrated off the AntD Card, so .lineage-card-table only matches the ui-core .lineage-card-body now. Addresses review feedback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): add DraggableMenuItemV2 for react-aria table column menu TableV2 renders the column-visibility list inside a react-aria Dropdown.Menu, which only accepts MenuItem collection children. DraggableMenuItemV2 wraps a Dropdown.Item and wires react-dnd to real DOM nodes it renders (drag on the grip handle, drop + dragPreview on the row) so reorder works inside the menu. The AntD-based DraggableMenuItem stays for the legacy common Table. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(ui): migrate lineage flow-chart card + LineageTable to ui-core - Lineage.component: replace the AntD flow-chart Card with the ui-core Card (header + lineage-container body); the ReactFlow canvas height now comes from .lineage-card / .lineage-container rules instead of .ant-card-body, so the dead .ant-card-body selectors are dropped from entity-lineage.style.less (resolves the remaining review comment). - LineageTable: render via TableV2 inside a ui-core Card. - TableV2: column-visibility list uses a react-aria Dropdown.Menu with DraggableMenuItemV2. - useLineageEdgeColors: read brand colors from the UntitledUI theme context. - Tests: mock useLineageEdgeColors in Lineage.test; assert the TableV2 loader and table element in LineageTable.test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): correct lineage header useMemo deps and apply prettier formatting - Lineage.component: the header useMemo listed [entity, entityType, isPlatformLineage] but its body reads isEditMode, platformHeader, showControls, deleted and hasEditAccess — so the lineage-header-edit-mode class went stale on edit-mode toggle. Fix the dependency array. (review feedback) - Apply prettier single-quote formatting to the lineage card migration files that a prior malformed prettier invocation missed (fixes UI Checkstyle). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test(ui): fix impact-analysis selectors for react-aria TableV2 The impact table migrated to the react-aria TableV2, whose DOM differs from the old AntD table: the first column is role="rowheader" (holds the entity link), other cells are role="gridcell", and headers are react-aria columnheaders. Update the impact-analysis Playwright selectors accordingly (verified against the running app): - source/impacted column value cells: getByRole('cell') -> getByRole('gridcell') - first-column entity link: getByRole('cell').first() -> locator('td').first() - column-level header check: getByRole('columnheader', {exact}) -> locator('thead th').filter (matches the already-passing table-columns test) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(ui): address review feedback on DraggableMenuItemV2 / TableV2 - Box: forward ref to the underlying div so it can host react-dnd (and other DOM-ref) consumers. - DraggableMenuItemV2: use Box for the row layout (drop/dragPreview ref now on Box); drop redundant Typography as="span"/text-sm defaults. - TableV2: drop redundant Typography size="text-sm" default on the column dropdown header. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Addressed context center dashboard feedbacks * addressed gitar comment * lint fix * wip * wip * "wip" * minor UI changes * lint fix * addressed PR comment * lint fix
* fix(search): support Cohere and Titan v1 Bedrock embeddings Bedrock embedding requests were always built in Titan v2 wire format (inputText + dimensions) and parsed only an "embedding" field, so Cohere and Titan v1 models failed. Introduce a per-family strategy that builds the correct request body and extracts the matching response shape, select the family from the model id, and send the search_query input type for Cohere queries vs search_document for documents. Validate the configured dimension against Cohere's fixed 1024 to avoid a silent knn vector mapping mismatch at index time. Fixes #29336 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(search): validate Titan v1 fixed embedding dimension too Titan v1 also returns a fixed-size vector (1536) and ignores the dimensions parameter, so a mismatched configured dimension caused the same silent knn_vector mapping mismatch the Cohere guard prevents. Make the construction-time check data-driven: each family declares its fixed output size (Cohere 1024, Titan v1 1536, Titan v2 configurable) and a generalized validateDimension rejects any incompatible configuration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Cap Cohere embedding input to 2048 chars and use embedQuery in chunk search * Update openmetadata-service/src/main/java/org/openmetadata/service/search/vector/client/BedrockEmbeddingClient.java Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * fix(search): scope Titan v1 Bedrock matcher to its exact model id The Titan v1 matcher used the broad token "titan", so every non-v2 Titan id (e.g. titan-embed-image-v1, a future titan-embed-text-v3) was classified as Titan v1 and, with the fixed-dimension check, pinned to 1536. Match the exact "titan-embed-text-v1" id instead, so other Titan models fall back to the Titan v2 default as intended. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: Vishnu Jain <121681876+Vishnuujain@users.noreply.github.com> Co-authored-by: Vishnu Jain <vishnujtimes@gmail.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local>
…ount + tour-aware tree) (#29867)
* Tune search relevance ranking
* Add search relevance Playwright shard
* Update generated TypeScript types
* Expose ranking settings debug controls
* Add customer search relevance fixtures
* Fix search settings coverage test
* Fix ranking settings edge cases
* Fix unnamed ranking stage updates
* Fix search IT ranking isolation
* Fix stale definition reindex stats assertion
* Fix staged search ranking regressions
* Address search ranking review and CI flakes
* Fix data quality delete modal flow
* Fix ranked search dropping identifier and ngram matches
The staged ranking query in SearchRankingHelper silently dropped matches the
legacy query returned, and it replaces (not augments) that query, so entities
vanished from explore/global search once ranking is default-on after the
migration.
1. significantTokens split the query on every non-alphanumeric character, so an
identifier query like "sample_data" became ["sample", "data"]. Name and FQN
fields keep the identifier intact (keyword fqnParts part "sample_data",
om_analyzer compound token), so the split query matched none of them and
searching a service or database name returned almost nothing. Split on
whitespace only: stop-word removal still applies on word boundaries
("provider address in texas" -> "provider address texas") while identifiers
stay intact and match fqnParts/name compound tokens again.
2. Every derived stage routed name fields through exact/close derivation, both
of which drop .ngram, so no stage carried name.ngram and substring queries
like "ord" stopped matching "orders_fact". Add a partialName n-gram stage and
derive the configured .ngram name fields for it.
Shared helper, so both the Elasticsearch and OpenSearch factories are fixed.
Verified live against OpenSearch: "sample_data" 1 -> 7 hits, "ord" 1 -> 11.
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
* skip failing tests on main * skip failing tests on main --------- Co-authored-by: Shrabanti Paul <shrabantipaul@Shrabantis-MacBook-Pro.local>
…ate suggestions (#29904) * fix(policy): grant application bots CreateTask so automations can create suggestions * fix(migration): backfill CreateTask on ApplicationBotPolicy for upgrades
* fix(ai-governance): address PR #29710 review follow-ups Follow-up to the merged AI Governance dashboard/approval-workflow PR (#29710), fixing the open review comments from @yan-3005 and @sonika-shah. - Submit-for-review no longer silently dropped: add `entityStatus` to the WorkflowTriggerFields allowlist so an entityStatus-only PATCH fires the approval workflow (FilterEntityImpl gated it before). - Workflow approvals now record the approver: AIAssetStatusSync stamps approvedBy/approvedAt from updatedBy on an Approved transition when unset (previously only the REST approve() path stamped them). - Domain-scoped audit packs no longer come back empty: AuditPackGenerator requests the `domains` field for Domain scope (it filtered on getDomains() loaded with EMPTY_FIELDS). - Top Shadow / Top Approvals are ranked meaningfully: by EU-risk severity then detection recency (shadow) / longest-waiting (approvals), instead of affectedUsers which is 0 for those assets. - Activity feed N+1 removed: LLM submission history (listVersions) is only reconstructed on the single-entity timeline, not the estate feed. - AIAssetStatusSync documents Draft/Deprecated/Archived as intentional no-ops. - Code quality: hoist fully-qualified inline names to imports in AIGovernanceResource / AIGovernanceFrameworkResource; add explaining comments on the deliberate instanceof/map-projection sites. Tests: extend AIAssetStatusSyncTest (approver stamping, Draft/Deprecated), DashboardRollupTest (severity/recency/waiting ranking), FilterEntityImplTest (entityStatus recognized). All green.
…s, runner counts, registry reports) (#29763) * feat(ingestion): emit run-started progress update and thread total assets ingested Pre-existing in-flight branch work: emit a DISCOVERY progress update at run start so short runs are visible before the reporting timer's first tick, and forward totalAssetsIngested through the SSE payload and server tracker. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(ingestion): move progress registry and tracking mixin into metadata/ingestion/progress package Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(ingestion): add ProgressMode knob with TotalsDeclarer and ManualProgress facades Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(ingestion): declare_groups only sets the global total, not the tree root The extra open([], label, total) made the active-scope snapshot non-None after all groups are pruned, contradicting the established snapshot()-is-None behavior and reintroducing a parallel count path. Restore parity with the original _declare_progress_groups helper. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(ingestion): registry owns ETA and reporting; dissolve ProgressReporter Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(ingestion): formalize MANUAL progress mode for query-parser and PowerBI sources Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(ingestion): TopologyProgressTracker extracts runner progress policy behind NodeProgress handles Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(ingestion): topology runner counts via NodeProgress handles; progress default-on with AUTO/MANUAL/OFF Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(ingestion): dashboard group-progress test double declares MANUAL mode The group-progress helpers on DashboardServiceSource were migrated to the manual_progress facade, which requires progress_mode=MANUAL. The _BareSource test double still used the default AUTO mode and raised ProgressModeError. Declare MANUAL on the double, matching how real PowerBI drives these helpers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(ingestion): snowflake declares progress totals via the declare_progress_totals hook Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * docs(ingestion): warn that dashboard group-progress helpers require MANUAL mode Guards a future dashboard-connector author from calling the group helpers on a default AUTO source, which would raise ProgressModeError and otherwise double-count against the runner's own tracking. Addresses the one latent trap from final review. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * chore(ingestion): restore Dockerfile.ci to base (drop local dev extras) Dockerfile.ci was accidentally swept into this branch with a local build hack that pinned pip extras to [powerbi,snowflake,pii-processor]. Restore the canonical ARG-driven install so this file carries no branch-local change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(ingestion): mysql declares progress totals via the declare_progress_totals hook MySQL already inherits AUTO processed-counting from the topology runner; add the Tier-1 declare_progress_totals hook so the run renders %/ETA. MySQL is effectively single-database, so declare the Database denominator directly and mark DatabaseSchema reconcilable — the runner fills the schema total from the live inspector it queries anyway, and DatabaseSchema drives the ETA. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ingestion): iterate leaf producers lazily under AUTO progress AUTO progress made every leaf node eager-count its producer, list()-draining it before any entity was sunk. Connectors whose producer reads context a stage of the just-yielded entity populates (e.g. S3 storage's get_containers reading context.container) then saw None, crashing with NoneType fqn / container.id errors and failing all S3 integration tests in shard-2. Leaf producers now always iterate lazily: their per-leaf advance already yields an accurate processed count, so eager counting is limited to reconcilable container counters. Only tradeoff is leaf bars show N/? instead of N/total. Adds a regression test mirroring the S3 pattern (leaf producer reads context written by the just-yielded entity's stage) and flips the two unit tests that had encoded the eager-drain behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(ingestion): apply progress review feedback (facade dedup, one open(), with-scopes) - ManualProgress extends TotalsDeclarer instead of re-implementing its denominator methods; AUTO hooks still receive a plain TotalsDeclarer, so the denominator-only guarantee is unchanged. - NodeProgress.open(count) replaces the open_with_count/open_lazy pair; reconciliation fires only when an exact count exists, which is the answer to why only one of them reconciled. - Container scopes are context managers and the runner uses with-blocks: an exception or early generator close now prunes the subtree without counting the container complete (previously the scope leaked in the tree on failure). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(ingestion): compose progress tracking instead of a mixin Address review feedback to prefer composition over the ProgressTrackingMixin. - Replace ProgressTrackingMixin with a plain ProgressTracking object that owns the registry, the declared mode, and the guarded manual facade. A source now *has a* ProgressTracking (via the progress_tracking property its base defines) instead of *being* a progress mixin. - attach_progress_tracking(source) builds it lazily and caches it under _progress_tracking, preserving the 'no empty registry on untracked steps' discovery contract the workflow reporter relies on. - TopologyRunnerMixin and QueryParserSource drop the mixin base and expose a two-line progress_tracking property; the runner's declare_progress_totals hook default stays on TopologyRunnerMixin. - Production counting routes through self.progress_tracking.manual / .registry, making the composition explicit at the call sites the reviewer flagged as implicit attributes. - Reporter reads _progress_tracking.registry; behavior otherwise unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ingestion): totals-hook failure degrades progress instead of aborting the run declare_progress_totals runs in for_node, before _run_node_producer's own try/except, so a raising totals hook (e.g. Snowflake SHOW DATABASES or MySQL get_database_names failing) propagated out of the topology walk and killed the whole ingestion run for a progress-only feature. Wrap the hook in _declare_totals_once: warn and continue with denominator-less progress. Flagged by greptile (P1) and Copilot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(ingestion): flag the eager-count memory risk on wants_eager_count Make it explicit that returning True materializes the node's entire producer output in memory: safe only for bounded container nodes (schemas per db), never for high-cardinality leaves (tables/dashboards). Cross-reference the list() site in the runner. --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* feat(workflows): add createAndRunAIAutomationTask node schema * feat(workflows): dispatch createAndRunAIAutomationTask to node registry * Update generated TypeScript types * test(workflows): restore NodeFactoryRegistry singleton state after AI automation test * test(workflows): scope NodeFactoryRegistry.getExtension to package-private * refactor(workflows): drop test-only getExtension; isolate registry test via deregister --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: generic app-metadata workflow context * test: reset app-metadata context via fixture * refactor: use absolute import in app_metadata_context
Add `send_slack_notification` boolean input (default: false) to mysql-nightly-e2e, postgresql-nightly-e2e, and playwright-sso-login-nightly workflows. Callers must explicitly pass true to trigger Slack reports. For the SSO nightly workflow, scheduled runs still notify automatically; workflow_dispatch defaults to silent. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Bumps the npm_and_yarn group with 1 update in the /openmetadata-ui-core-components/src/main/resources/ui directory: [ws](https://github.com/websockets/ws). Updates `ws` from 8.19.0 to 8.21.0 - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@8.19.0...8.21.0) --- updated-dependencies: - dependency-name: ws dependency-version: 8.21.0 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* refactor(ui): remove NotistackUtils, consolidate on ToastUtils Both files wrapped the same underlying toast() from @openmetadata/ui-core-components, making NotistackUtils redundant. Migrated remaining call sites (DataProducts, Domain, AssetSelection) to showErrorToast. * fix(ui): fix dangling showNotistackError reference in CoverImageUploadUtils Pre-existing bug from an earlier notistack migration commit left a call to showNotistackError with no import, which would throw at runtime on the cover-image create error path. Use showErrorToast instead. --------- Co-authored-by: Harsh Vador <58542468+harsh-vador@users.noreply.github.com>
…ngs spec (#29922) * fix(test): reopen Matching Fields panel after reload in SearchSettings spec PR #29853 made the Search Settings page open with "Ranking Details" expanded by default, collapsing "Matching Fields" and requiring an explicit openMatchingFieldsPanel() call before interacting with a field row. That PR added the call at 4 of 5 sites but missed the one after page.reload() in "Configure column search field settings", which hung until the 60s test timeout in CI. Fixes #29921 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * Unskip the file * Fix checkstyle --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* fix(ui): update explore card metadata and panel layout * test(ui): fix explore null constraint assertion
…ond sign-in (#29870) * fix(ingestion): dashboard sources own one BaseConnection to avoid a second sign-in Dashboard sources built their working client and then a second, throwaway connection for the startup test-connection step. On single-session auth (Tableau Personal Access Tokens allow one active session per token) the second sign-in invalidated the first, so ingestion failed with 401 after the test reported success. BaseConnection.test_connection no longer closes the connection; lifecycle belongs to the owner. Add create_connection() (returns the BaseConnection owner) and run_test_connection() (tests the live connection, reusing its client). Standalone test-only callers (automations runner, profiler, test_connection_common) own teardown via the context manager. Dashboard sources now hold one BaseConnection, reuse it for the test, and dispose it on close; the redundant connection_obj alias and the dead module-level get_connection in the migrated dashboard connectors are removed. * address review: guard create_connection None, close the temporary test-connection owner - DashboardServiceSource: fall back to get_connection when the service has no connection_class (custom / non-migrated dashboard sources), and guard close() against a None connection, restoring the robustness of the previous path. - _get_test_fn_from_service_spec: close the temporary owner via a context manager, since BaseConnection.test_connection no longer self-closes (fixes a leak for direct callers like BigQuerySource / SalesforceSource). - profiler: narrow check_ssl_and_init's result with isinstance; grafana: pass a str host_port and type the client via cast — resolves basedpyright. * simplify: drop dead try/except in the legacy test-connection fallback Migrated connectors are handled by create_connection, so the fallback branch in test_connection_common and the automation runner only ever resolves the legacy module-level test_connection, which always takes (metadata, connection, connection). The one-arg attempt always raised TypeError, so collapse the try/except into a direct call and build the client when none was passed (e.g. the profiler). * simplify: fold the ServiceSpec seam into get_connection / get_test_connection_fn get_connection_fn and the two _get_*_from_service_spec helpers had no callers outside this module and only added a closure-returning-a-closure indirection. get_connection now reuses create_connection().client directly, and get_test_connection_fn inlines the ServiceSpec path. Removes three functions with no behavior change. * address review: close owned connection on test failure, keep profiler SSL-setup tolerant - Dashboard __init__ now closes the owned BaseConnection if test_connection raises, so a failed test does not leak the authenticated client. - Restore the profiler's tolerant SSL-setup (log-and-continue) so a broken SSL config does not abort before the connection attempt, matching prior behavior. - Rename hex test mocks to match the patched create_connection/run_test_connection and move each test docstring back to the first statement. * fix(ingestion): honor explicit verifySSL=false for Grafana verifySSL or True forced verification on even when the user set verifySSL: false, making it impossible to disable. Default to True only when unset. * style: apply ruff format to connection.py
* Updated context center icons * minor fix * minor fix * minor fix * move icons to other folder * fixed stroke width of all the icons * article details icon change * fixed the icons changes * minor fixed * lint fix * unit test fix * playwright test fix * lint fix * minor fix * fixed the folder width and height * minor fix * minor fix * lint fix * added sidebar collapse icon * fixed playwright tests * lint fix * minor fix
…Workflows (#29915) * Add Related Entity column to Workflow Instances for Data Event-based Workflows * Added playwright
* Fix sidebar content overflow and minor nit * nit * nit
… extraction feature) (#30102) The revert of #28973 (PR #30041) deleted the whole service.llm package, but #28973 introduced service.llm as a *generic, reusable* LLM completion layer (its own commit: "LLMCompletionClient layer ... Reusable by other platform features") — the runtime counterpart to the kept llmConfiguration/LlmConfigHolder. Downstream (Collate NLQ) reuses it, so deleting it broke the Collate build. Restore the generic layer (LLMCompletionClient, LLMClientHolder + startup init, CompletionResult/Options, the provider clients, Noop, factory, exception) and keep only the extraction feature removed (KnowledgePill and its ContextMemoryExtractor/ContextFileProcessingService consumers). LLMCompletionClientTest's pill-parsing cases now use a local PillLike record instead of KnowledgePill. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…oks (#30090) * feat(ui): Data Marketplace overview header seam + reusable create-drawer hooks Follow-up to #29839 for the Data Marketplace overview. - DataMarketplacePage: add a `renderPageHeader` seam so AI mode can replace the greeting-banner + search hero with a HeaderShell page header, and render the content full-width in that mode. Classic mode is unchanged. - MarketplaceSearchBar: add a `compact` prop for header-embedded sizing (36px control height, no bottom margin) so callers don't override its internals. - Extract `useDomainCreateDrawer` / `useDataProductCreateDrawer` so the create drawers can be opened from any surface; DomainListPage and DataProductListPage now consume them instead of inlining the form/submit/drawer setup. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(ui): apply checkstyle fixes (prettier) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: Siddhant <siddhant@MacBook-Pro-1160.local> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Add empty state for classification and metric page * fix(test): add missing ui-core-components mocks and fix toolbar visibility in unit tests - Add Box and EmptyPlaceholder mocks to @openmetadata/ui-core-components in ClassificationDetails.test.tsx and MetricListPage.test.tsx; the component now uses these for empty states and the missing mocks caused hard render crashes that failed every test in both suites. - Fix three MetricListPage tests that require the toolbar (search input, status filter, bulk-edit button): the toolbar is hidden when isMetricListEmpty=true (no metrics + no search + no filter), so seed the initial searchQuery mock with one metric to keep the toolbar visible. - Update the "docs link" test to trigger the ErrorPlaceHolder locale.emptyText path (toolbar visible → apply Draft filter → fetch returns empty → table shows locale.emptyText with the docs link) instead of the full-page EmptyPlaceholder path that has no docs link. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(ui): add Custom cron option to ScheduleIntervalV1
Add a "Custom" frequency button that shows a free-text cron input,
allowing users to enter arbitrary cron expressions instead of being
limited to hourly/daily/weekly/monthly presets.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(ui): add cron syntax validation for custom cron input
Show an inline error message when the user enters an invalid cron
expression in the custom cron input field. Uses the existing
'message.cron-invalid-expression' translation key.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* test(ui): add unit tests for custom cron option in ScheduleIntervalV1
- Custom frequency button renders and shows cron input
- Custom cron value emits on change
- Invalid cron syntax shows validation error
- Valid cron clears the error
- Switching from custom back to preset restores preset controls
- Disabled state disables the custom input
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ui): address review feedback for custom cron option
- Use existing field-specific cron patterns (MINUTE_PATTERN, HOUR_PATTERN,
etc.) from Schedular.constants instead of a weak custom regex, so
name-based values (MON, JAN) are accepted and out-of-range values
(99) are rejected with field-specific error messages
- Only propagate valid cron to parent via onChange; invalid input stays
local as display-only error state
- Use isDisabled prop and direct string onChange to match the
ui-core-components Input contract (React Aria TextField)
- Fix tests to use cron values detected as custom type by getCronType
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ui): fix checkstyle — organize imports and prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ui): handle flat query filters in getJsonTreeFromQueryFilter
The function assumed mustFilters[0] always has a nested bool.must
structure, but ScopeFilter emits flat term clauses at the top level
(e.g. {term: {service.displayName.keyword: "..."}}).
Add optional chaining on the inner bool access and fall back to the
flat mustFilters array when no nested group exists, preventing
"Cannot read properties of undefined (reading 'must')" crashes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ui): early return for empty mustFilters in getJsonTreeFromQueryFilter
Return {} for empty must arrays to preserve existing behavior expected
by tests, while still handling flat term clauses for non-empty arrays.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ints (#30105) * feat(mcp): add title and readOnly/destructive annotations to all tools * feat(mcp): add openWorldHint:false to all tool annotations for OpenAI Apps SDK review * fix(mcp): mark upsert-capable create tools as destructiveHint:true
… the @check framework (#30089) * Fixes #30088: refactor(ingestion): migrate Airflow test-connection to the @check framework Replace the Airflow test_connection override with a borrowed-client AirflowChecks provider on the declarative @check framework. Airflow is dual-mode: the owned client is an AirflowApiClient (REST) or a SQLAlchemy Engine (metadata-DB backend). AirflowChecks borrows that client from BaseConnection (Borrowed[Any]) and dispatches on its type per check; it never builds or authenticates a second client. Backend steps run through a per-call Session bound to the borrowed engine. - Add PipelineDetailsAccess and TaskDetailAccess to the shared PipelineStep enum. - Add AIRFLOW_ERRORS ErrorPack (REST 401/403/404, non-JSON host, TLS, timeout, unreachable host, backend DB auth) folding in NETWORK_ERRORS. - Mark CheckAccess as category ConnectionGate so a failed gate short-circuits. - AirflowConnection registers engine.dispose via _on_close for the backend path. * fix(ingestion): gate Airflow metadata-DB error matchers to SQLAlchemy errors The 'access denied' / 'password authentication failed' matchers in AIRFLOW_ERRORS matched on message text alone, so a REST/transport error carrying those words but no HTTP status could fall through to a database diagnosis. Require a SQLAlchemy error in the cause chain so only the metadata-DB backend path can match. * fix(ingestion): fast-fail the Airflow REST gate on an unreachable host The REST CheckAccess relied on the requests connect-retry budget to give up, so an unreachable host took ~2 minutes (and the framework's per-step timeout cannot interrupt a worker thread). Add a TCP preflight to the REST gate, mirroring the database path, so an unreachable host fails fast as a network error. Skipped for MWAA, whose transport is the AWS SDK rather than a socket. Also tighten AIRFLOW_ERRORS remediations to concise, user-facing wording and keep only signals that were exercised or follow directly from HTTP/driver docs. * fix(ingestion): resolve tcp_probe with getaddrinfo so IPv6-only hosts are reachable tcp_probe resolved via socket.gethostbyname (IPv4 only), so an IPv6-only host read as unreachable and any @check gate that preflights it short-circuited with a false 'Cannot reach the host'. Resolve with getaddrinfo(AF_UNSPEC) and connect to the first address only, keeping the single-connect fast-fail while supporting IPv6. Benefits every connector whose gate TCP-probes the host. * fix(ingestion): fall back across address families in tcp_probe Connecting to only the first resolved address regressed dual-stack hosts whose IPv6 address is unreachable (broken/partial IPv6): the probe failed even though IPv4 would connect. Try one address per family in resolution order and return on the first that connects, so an IPv6-only host is reached, a dual-stack host falls back to IPv4, and a many-address host still cannot multiply the wait. * refactor(ingestion): simplify tcp_probe to create_connection with IPv6 fallback The per-family loop was hard to follow and needed loose typing. Hand the hostname straight to socket.create_connection, which resolves it and tries each address (IPv4 and IPv6) until one connects: an IPv6-only host is reached and a dual-stack host falls back to IPv4, with no manual address handling. The old gethostbyname step was the IPv4-only bottleneck. * style(ingestion): apply ruff format and trim tcp_probe docstring Collapse the now-short ErrorPack remediation strings onto single lines (ruff format) and drop the historical aside from the tcp_probe docstring, keeping it to the contract and the IPv4/IPv6 behavior.
…day cap (#29963) * fix(data-insights): read DQ incident data from live indices, drop 30-day cap Custom Data Insights charts over data quality (testCaseResolutionStatus, testCaseResult) undercounted resolved incidents versus the DQ incident page. DataInsightsApp ran a DataQualityWorkflow that deleted and re-inserted a 30-day window into the *live* search indices those entities already own, and the recreate path deleted the live index outright. The DI charts read the same physical indices via the di-data-assets-* aliases, so the workflow added no data and only capped history at 30 days. Data Insights never had a separate store for data quality: the alias points at the live index that the incident page and search APIs keep complete. This makes search indexing own those aliases declaratively (IndexMapping.dataInsightAliases, joined with '-' to match the DI wildcard) and applies them on create, on reindex alias-swap, and on startup reconciliation, then removes DataQualityWorkflow, its index create/delete helpers, the recreate-branch calls, and the CLI hooks. The dataQuality module config is retired from the schema, seeds, and UI schema, with a migration stripping the key from installed_apps, apps_marketplace, and entity_extension so DataInsightsApp still deserializes existing configs. * address review: scope entity_extension migration, narrow alias reconciliation, regen app docs - entity_extension migration now also filters name = 'DataInsightsApplication' (mysql + postgres), matching the installed_apps/apps_marketplace statements so the dataQuality strip cannot touch another app's version snapshots. - reconcileAliases attaches only the Data Insights aliases on startup instead of re-applying every parent/short alias for all entities, keeping boot-time side effects scoped and off the aliases the reindex swap owns. - Regenerate DataInsightsApplication app docs after removing the dataQuality module from the schema. * test(data-insights): cover DI alias survival across reindex and reconciliation - DefaultRecreateHandlerTest: assert the di-data-assets-* alias follows the staged index through the reindex alias swap, so custom charts keep reading the reindexed data. - DataInsightAliasReconciliationIT: detach the alias from the live index to simulate a pre-upgrade cluster, then assert createMissingIndexes reconciles it back on startup. * fix(migration): use jsonb_exists in postgres dataQuality strip The `?` jsonb key-existence operator is parsed as a JDBC bind placeholder by the migration runner, so the postgres 2.0.0 postDataMigration failed at startup ("Failed to run sql") and aborted the search integration-test bootstrap. Switch the three guards to jsonb_exists(...), matching the existing 2.0.0 statements. Validated on Postgres 16: strips dataQuality only from DataInsightsApplication, leaves sibling modules and other apps untouched, idempotent on re-run. * fix(test): resolve concrete serving index in DI alias reconciliation IT The canonical index name is itself an alias onto a *_rebuild_* index once a reindex has run, and aliases only ever attach to concrete indices — so asserting the DI alias resolves to the canonical *name* could never hold. Resolve the concrete index(es) currently serving the entity and assert against those. Also use MySQL's ->> (unquoting) operator for the DataInsightsApplication name predicate instead of relying on JSON_EXTRACT's JSON-coercion comparison. --------- Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
…index (#30068) * feat(search): staged, generation-based recreate for the vector chunk index Full-recreate reindexes previously never touched the dedicated vector chunk index: entities deleted without events (DB restore, wipe) left orphaned chunks that AI retrieval kept surfacing forever, with manual index surgery as the only remedy — also the only escape from an incompatible chunk-mapping upgrade wedge. The recreate is now staged: the run writes into a bare run-unique generation index (fingerprint misses force a full re-embed, with vectors reused from the live generation for unchanged entities), and one atomic _aliases call promotes it — read alias, search alias, old target removed — only after every vector-indexable entity type finalizes successfully. Any failure leaves the old chunks live: embedding pre-flight before anything is created, per-type completion marks bound to their run and carried to distributed participants via the staged-index mapping, bulk item errors surfaced, staged write failures recorded as generation-scoped poison markers (live index first, generation fallback, persistent retry loop) checked fail-closed at promotion, and provider-circuit skips poison the run instead of leaving silent holes. Orphaned generations from crashed runs are swept at the next staged recreate. Legacy layouts migrate in place: the first promotion atomically replaces the physical index with an alias of the same name. Fixes #30052 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(search): close poison-retry ensure/stop race; shut down retry executor on service close/reinit * greptile comment * refactor(search): promote chunk index on aggregate run success like every other index; drop the poison-marker apparatus --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
…shared-cluster assertions, page-size flake) (#30091) - ServiceDeleteSearchCleanupScaleIT: resolve indexes via IndexAliasInspector — Entity.getSearchRepository() is null in external mode — and delete the service through the UI's async endpoint instead of the blocking synchronous delete. - SearchRelevancyPreviewIT: assert the seeded ids are present rather than an exact hit count that a concurrent run's ngram-colliding table inflates. - SelectiveFieldReindexUIIT: assert the seeded entity surfaces by name instead of an == 1 global Explore filter-count. - IncidentManagerPage: settle-and-retry the page-size dropdown, which the post-reindex list refetch can unmount mid-click. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a data-driven integration test that asserts search ranking behavior
across every searchable entity type (table, dashboard, topic, pipeline,
mlmodel, container, dashboardDataModel, query, storedProcedure,
searchIndex, glossaryTerm, metric, apiEndpoint, directory).
For each entity type it seeds documents that differ in exactly one field
and asserts the ordering the shared search config implies:
- a name match outranks a description-only match,
- a displayName match outranks a description-only match,
- an exact displayName match ranks >= a partial one,
- on a text tie a Tier.Tier1-tagged doc outranks an untagged one,
- the entity's distinctive nested field (columns/charts/tasks/
synonyms/...) is itself searchable.
Complements SearchRelevancyPreviewIT (which exercises the ranking knobs
on tables via /v1/search/preview) by covering the per-entity-type axis
through the SDK search client. Reuses existing harness primitives
(SdkClients, TestNamespace, factories, RelevancyFixtures.tierLabel).
Test-only; no production code changed.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… in Snyk Slack totals (#30121) * fix(security-scan): count vulnerable libraries, not dependency paths, in Snyk Slack totals * similar change in retire js * revert testing ids * address comment
* Removed mui refs from .md files * addressed gitar comment
StoredProcedure strips `service` from its stored JSON (StoredProcedureRepository.getFieldsStrippedFromStorageJson -> ["service"]) and re-derives it from the parent DatabaseSchema. On the bulk field path (setFieldsInBulk) that hydration was gated behind the requested fields containing service/databaseSchema/database. Once reindex switched from the "*" wildcard to a selective field list (#27876), none of those were requested, so the gate never fired and the rebuilt stored_procedure search doc lost `service` — breaking service-scoped Explore filters and aggregations for stored procedures. Live-indexed docs were unaffected because single-entity setFields is ungated. - StoredProcedureRepository.setFieldsInBulk: always populate the default container fields (databaseSchema/database/service) regardless of the requested fields, mirroring DatabaseSchemaRepository.fetchAndSetDefaultFields. - StoredProcedureIndex.getRequiredReindexFields: declare `service` so the selective reindex field contract explicitly requests it. - SearchIndexFactoryTest: per-index guard asserting the stored-procedure reindex fields include `service` (fails without the fix). - Playwright: bulk-path regression spec asserting a stored procedure still carries `service` when listed with a minimal field set. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolve conflicts in the vector-search subsystem where main's staged chunk-index recreate feature overlapped the PR's VectorIndexService abstraction: - RecreateWithEmbeddings.java: kept main's staged-chunk-recreate handler (a functional superset); the PR's edits here were cosmetic and are already reflected in main's version. - OpenSearchVectorService.java: kept main's staged-generation logic (resolveLiveChunkTarget + applyChunkMappingUpgradeIfStale, ObjectNode buildChunkProperties) and renamed main's getSearchAlias() call sites to the PR's getIndexAlias() (identical body, now a default method on the VectorIndexService interface). Preserves the PR's interface refactor, getExistingFingerprintsBatch, and init reorder. Verified: openmetadata-service main + test sources compile (mvn package). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🔴 Playwright Results — 4 failure(s), 32 flaky✅ 4476 passed · ❌ 4 failed · 🟡 32 flaky · ⏭️ 97 skipped
Genuine Failures (failed on all attempts)❌
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>