You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/09/29 03:45:11 UTC
[PR] fix(frontend): restore the hub workflow view-count toggle [texera]
aglinxinyuan opened a new pull request, #8752:
URL: https://github.com/apache/texera/pull/8752
### What changes were proposed in this PR?
Clicking the eye ("View") button on the hub workflow detail page switches the view count between the compact form (`1.2k`) and the exact count (`1234`) again. The button has done nothing since #3028.
**Root cause.** Only one method read `displayPreciseViewCount`: `formatViewCount`. #3028 deleted it as a duplicate of the like-count formatter, but the two were not the same. `formatViewCount` skipped the `k` abbreviation while the flag was set. The button, its `(click)` handler and the flag were all kept, so each click flipped a flag that nothing read.
```
Before: click eye -> "1.2k"; click again -> "1.2k"
After: click eye -> "1234"; click again -> "1.2k"
```
`formatViewCount` comes back as a thin wrapper over the shared `formatCount`, and the view button's label uses it again. The like and clone counts still go through `formatCount` and stay compact.
| | Default | After one click |
| --- | --- | --- |
| **Before** |  |  |
| **After** |  |  |
### History
| | |
| --- | --- |
| **Introduced by** | #2930 (2024-10-28), "Add view count to workflow": the eye button, `changeViewDisplayStyle()`, `displayPreciseViewCount`, and `formatViewCount`, which read the flag. The PR's demo shows the exact count after a click |
| **Usage removed by** | #3028 (2024-11-11), "Remove duplicate and unnecessary code": deleted `formatViewCount` and switched the label to `formatCount` |
The toggle worked for two weeks and has done nothing for almost two years since. The dataset detail page's copy of the button is a different case: #3269 added it after #3028, so it never worked there, and #8746 removes it.
### Any related issues, documentation, discussions?
Closes #8751
### How was this PR tested?
The old spec case only checked that the flag flipped, and it passed while the button did nothing. It is replaced by:
| Surface | Pinned |
| --- | --- |
| `formatViewCount` | Compact by default. Exact after one toggle, compact again after a second. `1000` shows as `1.0k` / `1000`. `0`, `1` and `999` look the same in both styles. The compact style of `1234567` equals `formatCount`, and the exact style is `1234567` |
| Rendered view button (real template) | Shows `1.2k` for 1234 views. A click shows `1234`, a second click `1.2k`. Same when the page opens as a modal. The like count stays `2.5k` after the view button is clicked |
The rendered-button cases were run against `main`'s component first and fail there with `expected '1.2k' to be '1234'`.
From `frontend/`:
- `npx ng test --watch=false --include='**/hub-workflow-detail.component.spec.ts'`: 51 tests, all pass.
- `yarn format:ci`: clean.
- `npx ng build`: success.
Screenshots: `ng serve` against a stub API that reports 1234 views, 56 likes and 12 clones. Headless Chromium at 1280×720 via Playwright, with the button row captured before and after one click on the eye. **Before** is the same page running `main`'s component.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(frontend): restore the hub workflow view-count toggle [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #8752:
URL: https://github.com/apache/texera/pull/8752
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(frontend): restore the hub workflow view-count toggle [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on PR #8752:
URL: https://github.com/apache/texera/pull/8752#issuecomment-5902901861
Good idea — done in f8fd59b2fd: the exact count now shows as `1,234`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(frontend): restore the hub workflow view-count toggle [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8752:
URL: https://github.com/apache/texera/pull/8752#issuecomment-5901882896
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/8752?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 92.58%. Comparing base ([`acc6dd1`](https://app.codecov.io/gh/apache/texera/commit/acc6dd1139d936d849e2aaa6abb288f8ef3e98ad?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`f8fd59b`](https://app.codecov.io/gh/apache/texera/commit/f8fd59b2fd288e0032e174b7682e8d2a05d494fe?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #8752 +/- ##
============================================
- Coverage 92.59% 92.58% -0.01%
Complexity 4962 4962
============================================
Files 1242 1242
Lines 52883 52885 +2
Branches 6546 6547 +1
============================================
+ Hits 48965 48966 +1
Misses 2290 2290
- Partials 1628 1629 +1
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
|---|---|---|---|
| [access-control-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `77.38% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [agent-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `99.16% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [amber](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `88.06% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `60.41% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `87.37% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [file-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.53% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [frontend](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `96.55% <100.00%> (-0.01%)` | :arrow_down: | |
| [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.73% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [pyamber](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.56% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/8752/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `74.09% <ø> (ø)` | | Carriedforward from [83a1b70](https://app.codecov.io/gh/apache/texera/commit/83a1b701853f6ca652721f424a6d2a9475b73c13?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
*This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/8752?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(frontend): restore the hub workflow view-count toggle [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8752:
URL: https://github.com/apache/texera/pull/8752#issuecomment-5883229080
<!-- backport-auto-label-report -->
### Backport auto-label report
This `fix:` PR was checked against each actively-supported release branch. A `release/*` label nominates a backport target; the branch's release manager approving this PR is what sends the fix there. The required **Backport Approvals** check stays red until every label below is approved, so each manager either approves or removes their own label — which is why the labels left on a merged PR are exactly the branches it reached.
| Release branch | Analysis |
| --- | --- |
| ✅ `release/v1.3` | Change detected on this branch — label added; this fix is queued to backport here. @mengw15 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other. Review requested. |
| ✅ `release/v1.2` | Change detected on this branch — label added; this fix is queued to backport here. @xuang7 decides: approving sends the fix here, removing this label declines it. The merge waits on one or the other. Review requested. |
_[Auto-label run](https://github.com/apache/texera/actions/runs/36518531335)._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(frontend): restore the hub workflow view-count toggle [texera]
Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on PR #8752:
URL: https://github.com/apache/texera/pull/8752#issuecomment-5884734221
Should use the format "1,234" to make it more readable?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(frontend): restore the hub workflow view-count toggle [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8752:
URL: https://github.com/apache/texera/pull/8752#issuecomment-5883229130
<!-- texera-reviewer-suggestion -->
### Automated Reviewer Suggestions
Based on the `git blame` history of the changed files, we recommend the following reviewers:
- **Contributors with relevant context:** `@xuang7`, `@Ma77Ball`
You can notify them by mentioning `@xuang7`, `@Ma77Ball` in a comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org