Skip to content

Fix #6020: Doc migration - Dev & SDK - #6116

Merged
pmbrull merged 3 commits into
open-metadata:mainfrom
nahuelverdugo:issue-6020
Jul 17, 2022
Merged

pmbrull merged 3 commits into
open-metadata:mainfrom
nahuelverdugo:issue-6020

Conversation

@nahuelverdugo

Copy link
Copy Markdown
Contributor

Fixes: #6020

Describe your changes :

Migrated developer's documentation.

Type of change :

  • Documentation

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

Ingestion: @open-metadata/ingestion

@nahuelverdugo
nahuelverdugo requested a review from a team July 15, 2022 11:18
@nahuelverdugo nahuelverdugo changed the title Issue 6020 Fix #6020: Doc migration - Dev & SDK Jul 15, 2022
@nahuelverdugo
nahuelverdugo temporarily deployed to cypress July 15, 2022 13:34 Inactive
@nahuelverdugo
nahuelverdugo temporarily deployed to cypress July 15, 2022 13:34 Inactive
@sonarqubecloud

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

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

@nahuelverdugo nahuelverdugo added documentation Improvements or additions to documentation migration labels Jul 15, 2022
@pmbrull
pmbrull merged commit 3156f39 into open-metadata:main Jul 17, 2022
ShaileshParmar11 added a commit that referenced this pull request Sep 11, 2026
TCD-10a. The parameters and the assertion SQL were the last two blocks the
redesign wants in the rail and TCD-0 left in the main column. The existing
layout could not fit the rail: `.parameter-label` sets `min-width: 200px` and
rows are chunked two-up inside a 12-column sub-grid, so each half-cell is
~140px and the *label* overflows before any value does. That is why the ticket
says redesign rather than relocate.

The card follows the prototype: one row per parameter, label left and value
right, the value truncating with a tooltip so a long `tableDiff` `table2`
degrades instead of forcing width. The prototype's four shapes are independent
`sc-if` blocks, not a switch — a custom-SQL test shows parameters *and* SQL —
so `getConfigurationShapes` returns one flag per section with `isEmpty` as the
"nothing at all" fallback. The version page keeps its parameter diff and
suppresses the assertion SQL, which has no diff rendering.

The SQL block is rendered directly rather than through `SchemaEditor`: the
prototype highlights keyword-vs-plain only, a keyword set rather than a parser,
so the bespoke block is less code than CodeMirror and keeps a lazy editor chunk
out of a rail rendering three static lines. `toSqlLines` keeps the separators
and each token's column offset, so text round-trips byte-for-byte and the
offset doubles as a stable render key.

The rail moves from `col-span-3` to `col-span-4`. Measured at a 1280px
viewport it was 205px, not the ~315px assumed in the ticket discussion — that
figure only holds near 1920px — against the prototype's fixed 320px. That is
where the wrapping and the clipped SQL came from. At `col-span-4` the rail is
276px and nothing wraps.

The per-SQL-param pencil merges into the single header pencil the prototype
shows, and `parameterItems` goes away — it baked the dynamic-assertion badge
into a parameter row, which the card now renders as its own callout. Colours
map to semantic tokens, so the card gets dark mode.

The collapse toggle is kept per the epic's Sep 8 decision, so collapsing the
rail now also hides the configuration; that trade is asserted in a test and
flagged for product on #6116. Also fixes the mock store's `isTabExpanded`
default, which was `false` while `useTestCase.store` defaults to `true` —
several tests only passed because the rail was absent.

Replanted onto main after #32966 was squash-merged: this is the branch's net
change over the squashed base, byte-identical to the previously verified tip
(ec115e3) for every file it touches.

Co-Authored-By: Claude Opus 5 <[email protected]>
ShaileshParmar11 added a commit that referenced this pull request Sep 15, 2026
TCD-10a. The parameters and the assertion SQL were the last two blocks the
redesign wants in the rail and TCD-0 left in the main column. The existing
layout could not fit the rail: `.parameter-label` sets `min-width: 200px` and
rows are chunked two-up inside a 12-column sub-grid, so each half-cell is
~140px and the *label* overflows before any value does. That is why the ticket
says redesign rather than relocate.

The card follows the prototype: one row per parameter, label left and value
right, the value truncating with a tooltip so a long `tableDiff` `table2`
degrades instead of forcing width. The prototype's four shapes are independent
`sc-if` blocks, not a switch — a custom-SQL test shows parameters *and* SQL —
so `getConfigurationShapes` returns one flag per section with `isEmpty` as the
"nothing at all" fallback. The version page keeps its parameter diff and
suppresses the assertion SQL, which has no diff rendering.

The SQL block is rendered directly rather than through `SchemaEditor`: the
prototype highlights keyword-vs-plain only, a keyword set rather than a parser,
so the bespoke block is less code than CodeMirror and keeps a lazy editor chunk
out of a rail rendering three static lines. `toSqlLines` keeps the separators
and each token's column offset, so text round-trips byte-for-byte and the
offset doubles as a stable render key.

The rail moves from `col-span-3` to `col-span-4`. Measured at a 1280px
viewport it was 205px, not the ~315px assumed in the ticket discussion — that
figure only holds near 1920px — against the prototype's fixed 320px. That is
where the wrapping and the clipped SQL came from. At `col-span-4` the rail is
276px and nothing wraps.

The per-SQL-param pencil merges into the single header pencil the prototype
shows, and `parameterItems` goes away — it baked the dynamic-assertion badge
into a parameter row, which the card now renders as its own callout. Colours
map to semantic tokens, so the card gets dark mode.

The collapse toggle is kept per the epic's Sep 8 decision, so collapsing the
rail now also hides the configuration; that trade is asserted in a test and
flagged for product on #6116. Also fixes the mock store's `isTabExpanded`
default, which was `false` while `useTestCase.store` defaults to `true` —
several tests only passed because the rail was absent.

Replanted onto main after #32966 was squash-merged: this is the branch's net
change over the squashed base, byte-identical to the previously verified tip
(ec115e3) for every file it touches.

Co-Authored-By: Claude Opus 5 <[email protected]>
harshach pushed a commit to Automattic/OpenMetadata that referenced this pull request Sep 15, 2026
…ata#33110)

* feat(dq): move the test case configuration into the right rail card

TCD-10a. The parameters and the assertion SQL were the last two blocks the
redesign wants in the rail and TCD-0 left in the main column. The existing
layout could not fit the rail: `.parameter-label` sets `min-width: 200px` and
rows are chunked two-up inside a 12-column sub-grid, so each half-cell is
~140px and the *label* overflows before any value does. That is why the ticket
says redesign rather than relocate.

The card follows the prototype: one row per parameter, label left and value
right, the value truncating with a tooltip so a long `tableDiff` `table2`
degrades instead of forcing width. The prototype's four shapes are independent
`sc-if` blocks, not a switch — a custom-SQL test shows parameters *and* SQL —
so `getConfigurationShapes` returns one flag per section with `isEmpty` as the
"nothing at all" fallback. The version page keeps its parameter diff and
suppresses the assertion SQL, which has no diff rendering.

The SQL block is rendered directly rather than through `SchemaEditor`: the
prototype highlights keyword-vs-plain only, a keyword set rather than a parser,
so the bespoke block is less code than CodeMirror and keeps a lazy editor chunk
out of a rail rendering three static lines. `toSqlLines` keeps the separators
and each token's column offset, so text round-trips byte-for-byte and the
offset doubles as a stable render key.

The rail moves from `col-span-3` to `col-span-4`. Measured at a 1280px
viewport it was 205px, not the ~315px assumed in the ticket discussion — that
figure only holds near 1920px — against the prototype's fixed 320px. That is
where the wrapping and the clipped SQL came from. At `col-span-4` the rail is
276px and nothing wraps.

The per-SQL-param pencil merges into the single header pencil the prototype
shows, and `parameterItems` goes away — it baked the dynamic-assertion badge
into a parameter row, which the card now renders as its own callout. Colours
map to semantic tokens, so the card gets dark mode.

The collapse toggle is kept per the epic's Sep 8 decision, so collapsing the
rail now also hides the configuration; that trade is asserted in a test and
flagged for product on open-metadata#6116. Also fixes the mock store's `isTabExpanded`
default, which was `false` while `useTestCase.store` defaults to `true` —
several tests only passed because the rail was absent.

Replanted onto main after open-metadata#32966 was squash-merged: this is the branch's net
change over the squashed base, byte-identical to the previously verified tip
(ec115e3) for every file it touches.

Co-Authored-By: Claude Opus 5 <[email protected]>

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

Regenerated for the configuration card's specs on the replanted branch, so the
drift workflow has nothing to push after the force-push.

Co-Authored-By: Claude Opus 5 <[email protected]>

* chore(playwright): seed timing baseline for the details-page spec

`plan-playwright` hard-fails when every planned test in a spec file has no
entry in `timing-baseline.json`: each one falls through to FALLBACK_TEST_MS,
the planner under-budgets the shard, and the merge-queue wrapper times out
(the chromium-12 SIGTERM in open-metadata#30812). `TestCaseDetailsPage.spec.ts` had zero
entries — it is new to main as of open-metadata#32966, and that PR planned in full mode,
where the gate is deliberately skipped. Now that the impact map routes the
spec, planning is targeted and the gate applies.

Seeded via the remedy the gate itself prescribes for a wholly-new spec file:
ran it locally against a live stack, all five tests passing, and copied the
observed durations with `outcome: expected`.

Durations come from a Vite dev server rather than a production build, so they
run slower than CI will. That biases the planner towards over-budgeting the
shard, which is the safe direction for a gate that exists to catch
under-budgeting.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(dq): let long parameter values wrap instead of being clipped

The value was wrapped in `Tooltip`, whose trigger renders as a `w-max`
`<button>`. max-content sizing means it cannot shrink below the full string, so
the row overflowed its container and the card's `overflow-hidden` cut the value
off — a `tableDiff` test's `table2` fully-qualified name lost its tail. The
inner `truncate` never engaged, because its parent was already max-content wide;
the ellipsis it promised could not happen.

Dropping the tooltip and letting the value wrap keeps the whole value readable,
which matters more here than one-line rows: the part that distinguishes one
table from another is the end of the FQN, exactly what was being cut. The
`break-words` breaks the FQN itself, which has no spaces to break at.

It also stops wrapping a non-interactive value in a focusable `<button>`.

Measured on the details page at a 1440px viewport: the value occupies two lines
and the row no longer overflows (scrollWidth == clientWidth).

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(dq): restore the configuration card's vertical rhythm

The card set `tw:mb-0.5` on the test-definition name and `tw:mb-3` on the
category line, but both render through `Typography`, which wraps its content in
a `.prose` container. Prose's own rules win over utility margins set on the
element inside it, so both computed to 0: the category sat flush against the
parameters box instead of the prototype's 12px, and the name/category pair had
no separation at all.

Moving the spacing onto a plain wrapper — which prose does not style — restores
it. Measured on the details page at 1440px: name→category 2px (prototype 3),
category→box 12px (prototype 12, previously 0).

The remaining 1px deltas are the deliberate Tailwind-scale snapping already
noted on this PR (px-4 for 15px, py-2.5 for 9px, gap-0.5 for 3px).

Co-Authored-By: Claude Opus 5 <[email protected]>

* style(dq): align the dynamic-assertion callout with the prototype

Four measured adjustments to the callout, from comparing the rendered card
against the prototype's markup:

* Gap 12px to 10px. `Box`'s `gap` prop only accepts integers, so the exact
  value comes from `tw:gap-2.5` on the class instead.
* The supporting line gains the prototype's 1px top offset.
* The supporting line moves from `utility-blue-600` to `utility-blue-700/80`.
  The prototype uses #3E7BC2, which is not on the palette (blue-600 #1570EF,
  blue-700 #175CD3) — blue-600 reads too vivid beside it. The 80% blend lands
  within ~26 RGB units rather than ~62 and keeps the supporting line lighter
  than the title, as the prototype has it. Opacity rather than a raw hex so the
  token still flips for dark mode.
* The icon takes the title's colour. This one is a deliberate deviation: the
  prototype fills the glyph with blue-600 against a blue-700 title, but the
  callout reads better as a single colour family.

The icon glyph itself is unchanged and still differs from the prototype — that
is a separate decision, since the asset is the app's AI-suggestion icon used in
14 places and the design system ships no sparkle.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doc migration - Dev & SDK

2 participants