Skip to content

Resubmit of #57525#57556

Closed
devversion wants to merge 3 commits intoangular:mainfrom
devversion:resubmit
Closed

Resubmit of #57525#57556
devversion wants to merge 3 commits intoangular:mainfrom
devversion:resubmit

Conversation

@devversion
Copy link
Member

Resubmit of #57525

…l queries

Adds initial migration logic to convert decorator query declarations to
signal queries.

We will re-use more part of the signal input migration in follow-ups, to
properly migrate, and e.g. even handle control flow
Properly handles queries with multiple results, by extracting the
type from the `QueryList`.

Also adds more tests and handles imports.
…o signal queries

Fix incorrect ID description
@devversion devversion added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Aug 27, 2024
@devversion devversion requested a review from alxhub August 27, 2024 21:15
@angular-robot angular-robot bot added the area: migrations Issues related to `ng update`/`ng generate` migrations label Aug 27, 2024
@ngbot ngbot bot added this to the Backlog milestone Aug 27, 2024
@devversion devversion requested review from crisbeto and removed request for alxhub August 28, 2024 07:11
const call = ts.factory.createCallExpression(newQueryFn, type ? [type] : undefined, args);
const updated = ts.factory.updatePropertyDeclaration(
node,
[ts.factory.createModifier(ts.SyntaxKind.ReadonlyKeyword)],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this remove existing visibility modifiers? Are there modifiers that we should preserve (ex.: visibility ones?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is just the initial migration code. This is not yet done.

@alxhub
Copy link
Member

alxhub commented Aug 28, 2024

This PR was merged into the repository by commit c468198.

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

@alxhub alxhub closed this in 86e6f7b Aug 28, 2024
alxhub pushed a commit that referenced this pull request Aug 28, 2024
Properly handles queries with multiple results, by extracting the
type from the `QueryList`.

Also adds more tests and handles imports.

PR Close #57556
alxhub pushed a commit that referenced this pull request Aug 28, 2024
…l queries (#57556)

Adds initial migration logic to convert decorator query declarations to
signal queries.

We will re-use more part of the signal input migration in follow-ups, to
properly migrate, and e.g. even handle control flow

PR Close #57556
alxhub pushed a commit that referenced this pull request Aug 28, 2024
Properly handles queries with multiple results, by extracting the
type from the `QueryList`.

Also adds more tests and handles imports.

PR Close #57556
@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 28, 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.

4 participants