Skip to content

fix(core): static-query migration should handle queries on accessors - #30327

Closed
devversion wants to merge 2 commits into
angular:masterfrom
devversion:fix/core-handle-accessor-queries
Closed

devversion wants to merge 2 commits into
angular:masterfrom
devversion:fix/core-handle-accessor-queries

Conversation

@devversion

Copy link
Copy Markdown
Member

Currently the static-query migration ignores queries declared on getters
or setters as these are not part of a PropertyDeclaration. We need to
handle these queries in order to cover all queries within a given project.

The usage strategy is not able to detect timing for queries on accessors,
so we add a TODO and print a message. The template strategy is able
to detect the proper timing for such queries because it's not dependent
on detecting the usage of the query.

Resolves FW-1215

@devversion devversion added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release comp: ivy risk: low labels May 8, 2019
@devversion
devversion requested a review from a team May 8, 2019 12:10
@ngbot ngbot Bot added this to the needsTriage milestone May 8, 2019

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, once test added

@kara kara unassigned kara and filipesilva May 8, 2019
@kara kara added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 8, 2019
@kara kara added the action: presubmit The PR is in need of a google3 presubmit label May 8, 2019
@kara

kara commented May 8, 2019

Copy link
Copy Markdown
Contributor

presubmit

@kara kara removed the action: presubmit The PR is in need of a google3 presubmit label May 8, 2019
devversion added 2 commits May 9, 2019 11:35
Currently the static-query migration ignores queries declared on getters
or setters as these are not part of a `PropertyDeclaration`. We need to
handle these queries in order to cover all queries within a given project.

The usage strategy is not able to detect timing for queries on accessors,
so we add a TODO and print a message. The template strategy is able
to detect the proper timing for such queries because it's not dependent
on detecting the usage of the query.

Resolves FW-1215
@devversion
devversion force-pushed the fix/core-handle-accessor-queries branch from 63d2c18 to e7b73f2 Compare May 9, 2019 09:36
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels May 9, 2019
@devversion

Copy link
Copy Markdown
Member Author

@kara Rebased and addressed feedback. Thanks!

@devversion devversion removed their assignment May 9, 2019
alxhub pushed a commit that referenced this pull request May 9, 2019
…30327)

Currently the static-query migration ignores queries declared on getters
or setters as these are not part of a `PropertyDeclaration`. We need to
handle these queries in order to cover all queries within a given project.

The usage strategy is not able to detect timing for queries on accessors,
so we add a TODO and print a message. The template strategy is able
to detect the proper timing for such queries because it's not dependent
on detecting the usage of the query.

Resolves FW-1215

PR Close #30327
@alxhub alxhub closed this in 0ffdb48 May 9, 2019
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…ngular#30327)

Currently the static-query migration ignores queries declared on getters
or setters as these are not part of a `PropertyDeclaration`. We need to
handle these queries in order to cover all queries within a given project.

The usage strategy is not able to detect timing for queries on accessors,
so we add a TODO and print a message. The template strategy is able
to detect the proper timing for such queries because it's not dependent
on detecting the usage of the query.

Resolves FW-1215

PR Close angular#30327
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 15, 2019
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: core Issues related to the framework runtime cla: yes risk: low target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants