You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "MartijnVisser (via GitHub)" <gi...@apache.org> on 2026/06/30 19:34:33 UTC
[PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
MartijnVisser opened a new pull request, #28593:
URL: https://github.com/apache/flink/pull/28593
## What is the purpose of the change
Upgrade the Flink web dashboard from Angular 20.1.3 / ng-zorro-antd 20.1.0 to the
latest LTS Angular (21.2.17) and the matching stable ng-zorro-antd (21.3.2). This
brings the framework and its lint toolchain current, regenerates the dependency
lockfile (resolving the outstanding npm security advisories that Dependabot had been
filing individually against this module), and fixes the stale NOTICE file.
## Brief change log
- Bump all `@angular/*` 20.1.3 -> 21.2.17, `ng-zorro-antd` 20.1.0 -> 21.3.2, and
TypeScript 5.8 -> 5.9 via `ng update` (runs the control-flow and zone
change-detection migrations); `@angular/cdk` 21 is pulled in transitively
- Align the lint chain that tracks the Angular major: `@angular-eslint/*` -> 21.4.0,
`@typescript-eslint/*` -> 8.62.x (eslint stays on 8.57; eslint 9 / flat config is a
follow-up), and `@types/node` -> 22 to match the build's Node runtime
- Regenerate `package-lock.json` against the public npm registry (also drops
third-party-mirror URLs that had crept into the committed lockfile) and regenerate
`NOTICE` (which still listed Angular 18)
- Convert the one template the migration could not auto-convert (duplicate `#badges`
ng-template) from `*ngIf`/`*ngFor` to `@if`/`@for`, and use stable `@for` track
expressions where the migration defaulted to track-by-identity (fixes NG0956 /
NG0955 dev warnings)
- Build cleanup: remove the obsolete `HUSKY_SKIP_INSTALL` env var and deprecated
`npm ci` flags from `flink-runtime-web/pom.xml` (husky was removed in FLINK-33939),
and bump the documented Node minimum in the README to Angular 21's floor
Node/npm pins (v22.16.0 / 10.9.0) and `frontend-maven-plugin` (1.15.1) already satisfy
Angular 21 and are unchanged. The existing webpack (`:browser`) builder is kept;
migrating to the esbuild application builder, the prettier 3 / stylelint 17 tooling
refresh, and eslint 9 are left as separate follow-ups.
## Verifying this change
This change is a dependency upgrade verified by the build/lint gate plus manual testing:
- `flink-runtime-web` builds via Maven, where `frontend-maven-plugin` runs `npm ci`
and `npm run ci-check` (eslint + stylelint + production build) using the pinned
Node 22.16.0 / npm 10.9.0
- Manually verified against a local standalone cluster running a `TopSpeedWindowing`
streaming job plus a jar submitted from the UI: clicked through Overview, Job
list/detail (DAG, Timeline, Exceptions, Checkpoints, Backpressure, FlameGraph,
Watermarks, Accumulators, Subtasks), JobManager (Logs, Configuration, Metrics,
Thread Dump, Profiler), TaskManager views, and the Submit page, with the browser
console open and free of errors
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): **yes** (frontend npm
dependencies: Angular 20->21, ng-zorro-antd 20->21, TypeScript 5.8->5.9 and
transitive updates; `NOTICE` regenerated accordingly)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: JobManager, Checkpointing,
Kubernetes/Yarn, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: 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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on code in PR #28593:
URL: https://github.com/apache/flink/pull/28593#discussion_r3501620635
##########
flink-runtime-web/web-dashboard/src/app/pages/job/overview/accumulators/job-overview-drawer-accumulators.component.html:
##########
@@ -1,20 +1,20 @@
<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
Review Comment:
There are a lot of license header changes due to the prettier update, Can we check to suppress them, can be in followup if necessary.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "Laffery (via GitHub)" <gi...@apache.org>.
Laffery commented on PR #28593:
URL: https://github.com/apache/flink/pull/28593#issuecomment-4856111838
> Given [FLINK-40028](https://issues.apache.org/jira/browse/FLINK-40028) is scoped to the Angular/ng-zorro version bump, I'd propose keeping the templates on ngIf/ngFor here (as master) and doing the control-flow migration + prettier 3 together as a dedicated follow-up, where the reformat can be reviewed on its own. Would that work for you, or do you feel strongly it should all land in this PR?
It works for me!
What's more, I suggest to upgrade eslint to v9 together in the follow-up PR, https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/eslint.config.mjs could be an example
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser merged PR #28593:
URL: https://github.com/apache/flink/pull/28593
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser commented on PR #28593:
URL: https://github.com/apache/flink/pull/28593#issuecomment-4853325082
@Laffery Thanks. You're right the control-flow blocks are poorly formatted, but the cause isn't the lint-staged removal. It's that prettier 2.6.2 (what master resolves) doesn't support Angular `@if/@for` formatting; that landed in prettier 3. I verified `npm run lint:fix` on this branch is a no-op (it can't reindent them), whereas prettier 3 does reindent them properly.
The catch: the same prettier 3 also reformats the ASF license-header comments across every template, which is exactly the churn flagged on this PR earlier (#28593 discussion) and is really the FLINK-39587 / #28440 territory. So "format the whole project" is a prettier-3 upgrade + project-wide reformat (with a `.git-blame-ignore-revs` entry), not a small `lint:fix`.
Given FLINK-40028 is scoped to the Angular/ng-zorro version bump, I'd propose keeping the templates on `ngIf/ngFor` here (as master) and doing the control-flow migration + prettier 3 together as a dedicated follow-up, where the reformat can be reviewed on its own. Would that work for you, or do you feel strongly it should all land in this PR?
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #28593:
URL: https://github.com/apache/flink/pull/28593#issuecomment-4847301809
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "b810db2d30a5e7b040ed5cd57e1f88b0cb680a20",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b810db2d30a5e7b040ed5cd57e1f88b0cb680a20",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b810db2d30a5e7b040ed5cd57e1f88b0cb680a20 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser commented on code in PR #28593:
URL: https://github.com/apache/flink/pull/28593#discussion_r3503887694
##########
flink-runtime-web/web-dashboard/src/app/pages/job/overview/accumulators/job-overview-drawer-accumulators.component.html:
##########
@@ -1,20 +1,20 @@
<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
Review Comment:
Fixed!
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser commented on PR #28593:
URL: https://github.com/apache/flink/pull/28593#issuecomment-4847278421
@Laffery Could you perhaps help out with a review here?
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "Laffery (via GitHub)" <gi...@apache.org>.
Laffery commented on PR #28593:
URL: https://github.com/apache/flink/pull/28593#issuecomment-4852367850
@MartijnVisser
Thanks for the upgrade work. One thing I think we should clean up before merging: after removing the lint-staged setup, quite a few migrated templates appear to have escaped formatting.
For example, the new Angular control-flow blocks in job-rescales.component.html, job-overview-drawer-subtasks.component.html, and submit.component.html contain unindented bodies, chained `} @if (...) {` blocks, and split `@for` expressions that make the templates harder to review and maintain.
Could you please run `npm run lint:fix` to format the whole project?
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21 [flink]
Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser commented on PR #28593:
URL: https://github.com/apache/flink/pull/28593#issuecomment-4856711573
Done, @Laffery. I've rescoped this PR to the dependency upgrade only: templates stay on `*ngIf`/`*ngFor` (I disabled `prefer-control-flow` with a comment pointing to the follow-up), prettier stays at master's 2.6.2, and the diff is now 9 files with zero template / control-flow / license-header churn.
I'll open the dedicated follow-up for the control-flow migration (`@if`/`@for`) + prettier 3 + eslint 9 flat config (using the ng-zorro `eslint.config.mjs` you referenced). Thanks for the steer!
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org