Streamlining the migration experience
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- angular, typescript
調査の方向性
ng update コマンドと、packages/core/schematics/utils/tsurge/migration.ts で参照されている migration のエントリーポイントから始めてください。任意の migration と手動の migration が現在どのように一覧表示され、選択され、実行されるかを、--migrate-only フローも含めて確認してください。完了の条件は、Nx との互換性を考慮したうえで、migration の一覧表示、実行、プロンプト表示、確認について合意された統一的なエクスペリエンスが実現されることです。
索引モデルが issue の本文から書いたものです。
説明
Command
update
Description
I might be missing something but it seems to me that Angular provides three kinds of "migrations":
- mandatory migrations (e.g.
update-workspace-config) - optional migrations (e.g.
use-application-builder) - "manual migrations" implemented as schematics (e.g.
signal-input-migration)
While everything works perfectly, like Swiss clocks, the CLI could provide a more unified experience to thwart the following limitations :
- users have to run
ng updateto list which packages could be updated before running the same command with the packages they want to update - to run optional migrations later, users have to run
ng update --migrate-only --from [previous_version] - to list "manual migrations", users have to run
ng g @angular/core: --help - there is no built-in way to implement a "check" CI step that prevents making changes with code that should have been migrated (e.g. running migrations and checking that the output is
Nothing to be done.)
Describe the solution you'd like
It would be nice if ng update could:
- merge both optional and "manual migrations" / migration schematics concepts
- have a mode that migrates all packages that can be migrated
- run migrations without interaction or by only prompting users if the codebase contains code that should be migrated (i.e. after running tsurge's analyze phase for migrations using tsurge )
- have a "check" mode that tells the user if the codebase contains code that Angular could have migrated. This would make it easier to implement a "check" CI step that prevents making changes that should have been migrated
Hopefully, this should reduce the cognitive load for users.
It would be nice also to consider Nx compatibility. Right now, Nx does not have an "optional" migration concept so the optional flag is ignored.
As an additional input, here is how Nx handles migration opt-outs: https://nx.dev/recipes/tips-n-tricks/advanced-update
Describe alternatives you've considered
Provide a more intuitive command than ng g @angular/core: --help to list all available migration schematics.
Maybe ng update could list them.
- 主要言語
- TypeScript
- スター
- 27k
- フォーク
- 11.8k
- 平均マージ
- 16時間 35分
- マージ済み PR(30日)
- 176
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
angular/angular-cli のほかの issue
-
area: @angular/build gemini-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
angular/angular-cli#33955 ·
-
area: @angular/cli gemini-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
angular/angular-cli#33055 · コメント 1 件 · リアクション 3 件 ·
-
area: @angular/build gemini-triaged
難易度 4/5 3〜5日 初心者へのやさしさ 72/100
angular/angular-cli#34137 ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34131 · 担当者 1 名 ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34130 · 担当者 1 名 ·
angular/angular-cli の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linagora/twake-calendar-frontend#1377 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
EclipseFdn/open-vsx.org#13385 · コメント 1 件 ·
-
front-end UI/UX
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
S: triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100