Skip to content

Metadata to ES Pipeline Fix - #6537

Merged
ulixius9 merged 1 commit into
open-metadata:mainfrom
ulixius9:es_fix
Aug 3, 2022
Merged

ulixius9 merged 1 commit into
open-metadata:mainfrom
ulixius9:es_fix

Conversation

@ulixius9

@ulixius9 ulixius9 commented Aug 3, 2022

Copy link
Copy Markdown
Member

Describe your changes :

Metadata to ES Pipeline Fix

Type of change :

  • Bug fix

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

@open-metadata/ingestion

@ulixius9
ulixius9 requested review from a team and nahuelverdugo August 3, 2022 09:57
@ulixius9
ulixius9 temporarily deployed to cypress August 3, 2022 09:57 Inactive
@ulixius9
ulixius9 temporarily deployed to cypress August 3, 2022 09:57 Inactive
@github-actions

github-actions Bot commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

Schema Change Detected. Needs ingestion-core version bump

Please run make core_bump_version_dev in the project's root and commit the changes to _version.py in this PR. Please ignore if this has been handled already.

@github-actions

github-actions Bot commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@cypress

cypress Bot commented Aug 3, 2022 •

Copy link
Copy Markdown



Test summary

55 • 0 • 3 • 0


Run details

Project openmetadata
Status Passed
Commit a0c0588
Started Aug 3, 2022 1:43 PM
Ended Aug 3, 2022 1:54 PM
Duration 11:42 💡
OS Linux Ubuntu - 20.04
Browser Chrome 103

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@pmbrull pmbrull 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.

Thanks for the fix. Let's add the deprecation warning to ensure backward compatibility here and we're good to merge

@ulixius9
ulixius9 temporarily deployed to cypress August 3, 2022 12:39 Inactive
@ulixius9
ulixius9 temporarily deployed to cypress August 3, 2022 12:39 Inactive
@ulixius9
ulixius9 requested a review from pmbrull August 3, 2022 12:39
@github-actions

github-actions Bot commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@ulixius9
ulixius9 temporarily deployed to cypress August 3, 2022 13:25 Inactive
@ulixius9
ulixius9 temporarily deployed to cypress August 3, 2022 13:25 Inactive
@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2022

Copy link
Copy Markdown

[OpenMetadata-catalog] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2022

Copy link
Copy Markdown

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@nahuelverdugo nahuelverdugo 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.

Can ww update tests too?

from metadata.generated.schema.entity.services.serviceType import ServiceType
from metadata.utils.logger import utils_logger

logger = utils_logger()

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.

We are not using this logger, right?

@staticmethod
def _is_sample_source(service_type):
return service_type == "sample-data" or service_type == "sample-usage"
return service_type in SIMPLE_SOURCE

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.

is metadata_elasticsearch also a sample source?

@ulixius9
ulixius9 merged commit 91d9e81 into open-metadata:main Aug 3, 2022
@ulixius9 ulixius9 mentioned this pull request Aug 4, 2022
3 of 5 tasks
timothybrush pushed a commit to timothybrush/OpenMetadata that referenced this pull request Sep 20, 2026
…tadata#6459) (open-metadata#33586)

* fix(ui): theme DQ authoring, incidents, profiler & alerts for dark mode

Combined dark-mode pass over the remaining Data Quality & Observability
AI-mode routes (workstream open-metadata/openmetadata-collate#6459). Swaps
compile-time fixed-hex LESS palette vars and raw Tailwind palette classes
for adaptive semantic / auto-inverting utility tokens; light-mode values
are preserved (exact for status colors) and only the resolved dark values
change.

Covers:
- open-metadata#6533 Add/Edit Test Case: TestCaseFormV1.less, add-test-suite-pipeline
  (@grey-*/@Blue-22 surfaces), AddTestCaseList bg-white -> tw:bg-primary.
- open-metadata#6531 Incident Manager: dimensionality heatmap legend + tooltip, failed
  sample-data diff rows, incident/result tab surfaces (@grey-*/status hex
  -> semantic + utility-{success,error,warning}).
- open-metadata#6532 Table DQ + Profiler: ProfilerLatestValue, TestSummaryGraph,
  no-profiler-banner, table-profiler (neutral greys -> semantic roles).
- open-metadata#6538 Pipeline Observability: data-observability-tab border.
- open-metadata#6530 Alerts: AlertAiNotificationSection bg-white + text-gray-500.

Status hexes map to exact-match auto-inverting utility tokens
(@red-22=error-500, @warning-400=warning-400, @Green-9=success-50,
@Blue-22=blue-light-50, @alert-error-icon-bg-1=error-100). Neutral greys
map to --color-bg/border/text semantic roles.

Deferred (categorical, tracked for the token foundation): the 5-level
incident severity ramp and the heatmap data-viz white-fade gradients in
incident-manager.style.less / DimensionalityHeatmap.less need shared dark
palette values rather than per-page overrides.

Verify-only (no offenders found; AI routes already on semantic tokens):
open-metadata#6540 Test Suites list, open-metadata#6535 Test Case details/versions, open-metadata#6537 Test
Library, open-metadata#6536 Suite details/ingestion.

Refs open-metadata/openmetadata-collate#6533 open-metadata/openmetadata-collate#6531 open-metadata/openmetadata-collate#6532 open-metadata/openmetadata-collate#6538 open-metadata/openmetadata-collate#6530 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* fix(ui): theme Data Quality summary widgets for dark mode

The AI-mode Data Quality summary shells already use adaptive semantic
tokens, but the shared widgets they embed (chart backgrounds, status
cards, statistic widgets, test-case status chart) baked compile-time
fixed-hex LESS palette vars (@grey-26/@grey-9/@grey-2/@grey-50, @Blue-13,
@GREEN-*, @RED-*, @yellow-10, @alert-*) that cannot follow the theme, so
those surfaces stayed light in dark mode.

Swap the fixed palette vars for adaptive tokens:
- neutral surfaces/borders -> semantic --color-bg-secondary_subtle /
  --color-bg-secondary / --color-border-secondary
- status colors -> --tw-color-utility-{error,success,warning,blue}-*,
  which auto-invert in dark (mirrors the merged StatusCardWidget
  precedent). Every status mapping is an exact light-value match, so
  light mode does not regress.
- AI dashboard section tint tw:bg-gray-blue-25 (fixed light) ->
  tw:bg-utility-gray-blue-50 (auto-inverting).

Already-adaptive utility-gray vars are left as-is. Categorical chart/
status data colors are intentionally unchanged.

Refs open-metadata/openmetadata-collate#6539 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* fix(ui): use blue-light token + update stale dashboard test

Address review on the DQ summary dark-mode PR:

- The coverage/all-tests chart icon mapped @blue-500 (#0ba5ec, cyan) to
  utility-blue-500 (#2e90fa), a perceptible cyan->blue hue shift in light
  mode. #0ba5ec is exactly the blue-light-500 ramp, so switch the icon fg
  to utility-blue-light-500 and its background (@Blue-13 #e0f2fe) to
  utility-blue-light-100 (#e0f2fe) — both now exact light-value matches.
- DataQualityDashboard.test.tsx still asserted the removed bg-gray-blue-25
  classes; update both expectations to bg-utility-gray-blue-50 so the
  focused test matches the component. Suite passes (8/8).

Refs open-metadata/openmetadata-collate#6539 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* fix(ui): theme Test Cases list dimension chip for dark mode

The dimension-count chip in the AI-mode Test Cases list used the raw
palette class tw:bg-blue-50, which does not invert in dark mode, so its
light-blue background stayed fixed while tw:text-primary flipped to a
light foreground — light-on-light, unreadable in dark.

Swap to tw:bg-utility-blue-50, which auto-inverts (light blue tint in
light, dark blue in dark) per colors.md §2.7, keeping text-primary
readable in both themes. Light mode is unchanged.

The rest of the Test Cases list (table header, filters, table shell) was
already on adaptive semantic tokens.

Refs open-metadata/openmetadata-collate#6534 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* fix(ui): avoid light-mode drift on DQ dashboard section cards

Address greptile P2: bg-utility-gray-blue-50 resolved to #f8f9fc in light,
shifting the section-card surface from the original bg-gray-blue-25
(#fcfcfd). Use tw:bg-secondary_subtle instead — light #fdfdfd (effectively
unchanged) and a proper dark surface, matching the LESS card surfaces in
this PR. Focused test updated; suite passes 8/8.

Refs open-metadata/openmetadata-collate#6539 open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* refactor(ui): theme legacy palette vars globally; revert per-file swaps

Replace the per-file dark-mode token swaps with a single global bridge so
the fixed-hex legacy LESS palette vars adapt to dark mode everywhere they
are used, with zero light-mode drift and no per-component edits.

- variables.less: the 27 fixed-hex vars this workstream touched
  (@grey-1/2/5/7/9/15/25/26/50, @green-9/10/12/100/500, @red-9/10/22,
  @yellow-10, @blue-13/22/500, @warning-100/400, @alert-*) become
  `@x: var(--legacy-x, #originalHex)`. Light resolves to the exact
  original hex (no drift — fixes the greptile light-shift comments); dark
  picks up the override.
- app.less: one `.dark-mode` block maps each `--legacy-*` to the semantic
  / auto-inverting utility token (neutrals -> --color-bg/border/text
  roles, status -> utility-{success,error,warning,blue-light}-*).
- Revert the individual DQ/Profiler/IncidentManager/Alerts LESS files back
  to origin/main — they now adapt automatically through the bridge.

Verified: variables.less and a consumer (.less) compile via lessc, emitting
`var(--legacy-*, #hex)`; no legacy var is used in a LESS color function or
operation (checked app-wide), so the var() substitution is safe. @black
left literal (mostly non-DQ, app-wide). Categorical severity/heatmap ramps
still deferred to the token foundation.

Raw Tailwind palette classes in TSX (bg-white, bg-gray-50, text-gray-500,
border-gray-300, bg-gray-blue-25) keep their per-file semantic swaps — they
are not LESS vars and have no global bridge.

Refs open-metadata/openmetadata-collate#6459

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* chore(ui): move legacy-var bridge + app-bg to core PR open-metadata#33597

The variables.less/app.less global bridge and the dark app-background fix now
live in open-metadata#33597 (core/global scope). This DQ PR keeps only its component (.tsx)
changes and depends on open-metadata#33597 for the .less-surface dark theming.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* fix(ui): DQ page header/tab/table borders to subtle white-alpha in dark

The DQ page header card, tab-nav container, and table container draw their
border from @global-border (@Grey-15) — a solid gray that stands out in dark.
Scope a dark-only override to border-subtle (rgba(255,255,255,0.08)) to match
the subtle white-alpha border used across dark surfaces. Light unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* chore(playwright): auto-refresh impact-map.generated.json

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
cypress — a0c05880 Deployed Aug 3, 2022 by ulixius9
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.

3 participants