Skip to content

refactor(migrations): leverage tsurge for signal input migration#57451

Closed
devversion wants to merge 3 commits intoangular:mainfrom
devversion:convert-signal-input-migration-tsurge
Closed

refactor(migrations): leverage tsurge for signal input migration#57451
devversion wants to merge 3 commits intoangular:mainfrom
devversion:convert-signal-input-migration-tsurge

Conversation

@devversion
Copy link
Member

@devversion devversion commented Aug 19, 2024

See individual commits.

Note: Most of the churn/diff in this PR is switching from one Replacement API to the other. Review can be focused more on the migration.ts part and batch/* changes. We can remove the 1P leftovers in a follow-up.

…s more info

* Improves some of the generic assignability for tsurge. Anything is
  allowed to be returned from an overridden `prepareProgram` method.
  This is useful for the signal input migration.
* Passes the absolute root paths to migrations. This is helpful for the
  signal input migration and there is no other way to access it. It's
  better to pass specifically, compared to passing the whole unsafe
  `ParsedConfiguration` object.
This commit simplifies the batching support for the signal input
migration by using the new tsurge framework we've built.

This allows for consistent setup across all possible entry-points and
also simplifies the 1P setup given that we can simply use the Tsurge
macros, instead of having to maintain our own Go-based runner.
@devversion devversion added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Aug 19, 2024
@devversion devversion requested a review from crisbeto August 19, 2024 14:53
@angular-robot angular-robot bot added the area: migrations Issues related to `ng update`/`ng generate` migrations label Aug 19, 2024
@ngbot ngbot bot added this to the Backlog milestone Aug 19, 2024
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 19, 2024
@dylhunn
Copy link
Contributor

dylhunn commented Aug 20, 2024

This PR was merged into the repository by commit 270fb83.

The changes were merged into the following branches: main, 18.2.x

dylhunn pushed a commit that referenced this pull request Aug 20, 2024
…s more info (#57451)

* Improves some of the generic assignability for tsurge. Anything is
  allowed to be returned from an overridden `prepareProgram` method.
  This is useful for the signal input migration.
* Passes the absolute root paths to migrations. This is helpful for the
  signal input migration and there is no other way to access it. It's
  better to pass specifically, compared to passing the whole unsafe
  `ParsedConfiguration` object.

PR Close #57451
dylhunn pushed a commit that referenced this pull request Aug 20, 2024
)

This commit simplifies the batching support for the signal input
migration by using the new tsurge framework we've built.

This allows for consistent setup across all possible entry-points and
also simplifies the 1P setup given that we can simply use the Tsurge
macros, instead of having to maintain our own Go-based runner.

PR Close #57451
@dylhunn dylhunn closed this in d3c01ef Aug 20, 2024
dylhunn pushed a commit that referenced this pull request Aug 20, 2024
)

This commit simplifies the batching support for the signal input
migration by using the new tsurge framework we've built.

This allows for consistent setup across all possible entry-points and
also simplifies the 1P setup given that we can simply use the Tsurge
macros, instead of having to maintain our own Go-based runner.

PR Close #57451
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: migrations Issues related to `ng update`/`ng generate` migrations target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants