Skip to content

feat(frontend): mark the public version, open what a listing advertises, and turn pinning on - #8579

Draft
yangzhang75 wants to merge 3 commits into
apache:mainfrom
yangzhang75:pin/7-listings
Draft

yangzhang75 wants to merge 3 commits into
apache:mainfrom
yangzhang75:pin/7-listings

Conversation

@yangzhang75

@yangzhang75 yangzhang75 commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Two places outside the share dialog have to agree with the pin, and then the feature is complete.

  • The versions panel marks the version the Hub is serving, as a quiet second line under its
    timestamp rather than a tag: the panel is 230px wide, so horizontal room is scarce while
    vertical room is free. That row is also how an author who has moved on gets the published copy
    back — it is already in the panel, so restoring it is the restore they already know. The panel
    re-reads when the share dialog closes, since that is where the pin can have moved and the panel
    is covered until then.
  • Hub entries open what they advertise. A hub card shows the public copy, so an author whose
    working copy has moved on behind a pin now lands on the published preview — what they just saw,
    and where Clone gives them a copy of it — rather than in their editor showing something else.
    Their own listings are untouched: there the entry is their workflow.
  • The flag goes on. gui.workflow-workspace.version-pinning-enabled flips to true, which is
    what makes the switch appear in the share dialog. It is deliberately the last change of the
    series: every surface that has to agree with a pin is in place by the time an author can make
    one. Nothing downstream needed its own gate — a listing marker and a hub link both depend on a
    pin existing, and no pin can exist while the control is hidden.

Any related issues, documentation, discussions?

Closes #7943
Part of #7828. Design discussion: #7128. Stacked on #8577 and #8578; until those merge this
PR shows their commits too, and the review here is the last one.

This is the PR that turns the feature on. It should merge last.

How was this PR tested?

Frontend: the versions-list spec covers the marker appearing only on the version the Hub serves
and the panel re-reading when the announcement comes; the menu spec covers the announcement being
made when the share dialog closes, and not when the user has just revoked their own access and is
being navigated away; the registry spec covers the routing rule — a hub entry whose public copy
is behind goes to the preview, one that is not goes to the editor, and a private-search row is
never diverted; the card and list specs cover the argument reaching the rule. Full suite passes
(6608), production (AOT) build passes, prettier clean.

Backend: GuiConfigSpec now pins the flag's default to on (72 tests); the dashboard package
passes (572); scalafmt clean.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 5)

🤖 Generated with Claude Code

@github-actions github-actions Bot added engine frontend Changes related to the frontend GUI common platform Non-amber Scala service paths labels Sep 17, 2026
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @aglinxinyuan, @zyratlo, @mengw15
    You can notify them by mentioning @aglinxinyuan, @zyratlo, @mengw15 in a comment.

@codecov-commenter

codecov-commenter commented Sep 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.03960% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.81%. Comparing base (e9e5fda) to head (88f0cd5).

Files with missing lines Patch % Lines
...t-panel/versions-list/versions-list.component.html 40.00% 3 Missing ⚠️
...ponent/user/share-access/share-access.component.ts 97.72% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8579   +/-   ##
=========================================
  Coverage     91.81%   91.81%           
  Complexity     5021     5021           
=========================================
  Files          1277     1277           
  Lines         56381    56462   +81     
  Branches       7362     7379   +17     
=========================================
+ Hits          51765    51841   +76     
- Misses         2762     2765    +3     
- Partials       1854     1856    +2     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø)
agent-service 99.53% <ø> (ø) Carriedforward from bf4a6eb
amber 85.76% <ø> (-0.01%) ⬇️ Carriedforward from bf4a6eb
computing-unit-managing-service 64.05% <ø> (ø)
config-service 87.85% <100.00%> (+0.11%) ⬆️
file-service 82.31% <ø> (ø)
frontend 96.53% <96.00%> (-0.01%) ⬇️
notebook-migration-service 83.77% <ø> (ø)
pyamber 98.50% <ø> (ø) Carriedforward from bf4a6eb
workflow-compiling-service 78.30% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 4 better · 🔴 6 worse · ⚪ 5 noise (<±5%) · 0 without baseline

Compared against main e9e5fda benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 404 0.246 23,995/29,374/29,374 us 🟢 -30.7% / 🔴 +107.9%
🔴 bs=100 sw=10 sl=64 846 0.516 115,047/156,471/156,471 us 🔴 +11.2% / 🔴 +62.4%
🟢 bs=1000 sw=10 sl=64 1,032 0.63 967,000/1,024,299/1,024,299 us 🟢 -6.5% / 🔴 -13.2%
Baseline details

Latest main e9e5fda from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 404 tuples/sec 412 tuples/sec 880.16 tuples/sec -1.9% -54.1%
bs=10 sw=10 sl=64 MB/s 0.246 MB/s 0.252 MB/s 0.537 MB/s -2.4% -54.2%
bs=10 sw=10 sl=64 p50 23,995 us 21,109 us 11,544 us +13.7% +107.9%
bs=10 sw=10 sl=64 p95 29,374 us 42,402 us 14,186 us -30.7% +107.1%
bs=10 sw=10 sl=64 p99 29,374 us 42,402 us 17,122 us -30.7% +71.6%
bs=100 sw=10 sl=64 throughput 846 tuples/sec 908 tuples/sec 1,151 tuples/sec -6.8% -26.5%
bs=100 sw=10 sl=64 MB/s 0.516 MB/s 0.554 MB/s 0.703 MB/s -6.9% -26.6%
bs=100 sw=10 sl=64 p50 115,047 us 106,145 us 89,900 us +8.4% +28.0%
bs=100 sw=10 sl=64 p95 156,471 us 140,770 us 96,346 us +11.2% +62.4%
bs=100 sw=10 sl=64 p99 156,471 us 140,770 us 110,344 us +11.2% +41.8%
bs=1000 sw=10 sl=64 throughput 1,032 tuples/sec 991 tuples/sec 1,189 tuples/sec +4.1% -13.2%
bs=1000 sw=10 sl=64 MB/s 0.63 MB/s 0.605 MB/s 0.726 MB/s +4.1% -13.2%
bs=1000 sw=10 sl=64 p50 967,000 us 1,013,391 us 873,675 us -4.6% +10.7%
bs=1000 sw=10 sl=64 p95 1,024,299 us 1,095,753 us 918,440 us -6.5% +11.5%
bs=1000 sw=10 sl=64 p99 1,024,299 us 1,095,753 us 953,075 us -6.5% +7.5%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,495.56,200,128000,404,0.246,23995.25,29374.00,29374.00
1,100,10,64,20,2363.70,2000,1280000,846,0.516,115046.98,156471.08,156471.08
2,1000,10,64,20,19380.50,20000,12800000,1032,0.630,966999.76,1024298.79,1024298.79

@yangzhang75
yangzhang75 force-pushed the pin/7-listings branch 4 times, most recently from 948d15f to 0322b30 Compare September 28, 2026 21:13
@yangzhang75
yangzhang75 marked this pull request as ready for review October 6, 2026 18:42
@yangzhang75
yangzhang75 marked this pull request as draft October 7, 2026 01:36
@yangzhang75
yangzhang75 force-pushed the pin/7-listings branch 3 times, most recently from a14d056 to f665e29 Compare October 13, 2026 00:55
@yangzhang75
yangzhang75 force-pushed the pin/7-listings branch 2 times, most recently from 05b5de2 to f895a39 Compare October 18, 2026 22:08
@yangzhang75
yangzhang75 force-pushed the pin/7-listings branch 2 times, most recently from 23e61a4 to 3aa04ab Compare November 5, 2026 09:54
yangzhang75 and others added 3 commits November 10, 2026 14:21
The author can pin a version, and their working copy then moves on. This
gives them a way back to what the public is seeing: pinning leaves an
anchor in the revision history they already use, and the panel marks it
as the one currently public, so restoring the published version is the
restore they already know.

The anchor is a version row whose delta is the identity patch, so
replaying it returns exactly what was pinned however many edits pile up
after. An existing row cannot stand in: a version row replays to the
content as it was *before* the change it records. Pinning content that is
already the pinned one reuses its anchor rather than adding a twin, and
the read that decides takes a row lock so two pins racing cannot both
insert.

Two consequences the anchor forces:

- It must not start the version panel's aggregation window. It lands
  seconds after the save it freezes, and the panel folds close-together
  versions into the newest, which would hide the author's own save behind
  a row they never made.
- The revision history is now readable only with granted access, or while
  nothing is pinned. Replaying a version folds deltas back from the
  author's current content, so listing versions of a pinned workflow would
  hand a public viewer the very edits the pin is holding back.

`publish-status` carries the pinned version's date, read from the version
row so the dialog and the panel print one value rather than two clocks'.

Co-Authored-By: Claude Opus 5 <[email protected]>
The share dialog said whether a workflow was public and nothing about
which copy the public was getting. With pinning that is now a choice, so
the dialog carries it: a two-option control -- Follow latest, or Pinned --
under the Public tile, plus a line naming the pinned version by the date
it went public.

Follow latest is the default and is exactly what publishing does today.
Pinning freezes the version the author has now; while a pin is in place
and their working copy has moved on, the panel says so and offers Update
to current, which is the only way those edits reach the public.

The panel re-reads its state when a save lands rather than on a timer:
`WorkflowPersistService` now emits on persist, rename and re-describe,
which is what makes "your edits are not public yet" appear as soon as the
autosave lands rather than the next time the dialog is opened. Publishing
returns the state it produced, so the panel does not have to ask again.

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

Two places outside the share dialog have to agree with the pin.

The versions panel marks the version the Hub is serving, as a quiet
second line under its timestamp. That row is also how an author who has
moved on gets the published copy back: it is already in the panel, so
restoring it is the restore they already know. The panel re-reads when
the share dialog closes, since that is where the pin can have moved and
the panel is covered until then.

Hub entries open what they advertise. A hub card shows the public copy,
so an author whose working copy has moved on behind a pin now lands on
the published preview -- what they just saw, and where Clone gives them a
copy of it -- rather than in their editor showing something else. Their
own listings are untouched: there the entry is their workflow, and it
opens the editor as before.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common engine frontend Changes related to the frontend GUI platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: mark the public version and open what a listing advertises

2 participants