Skip to content

feat(ivy): add ability to inspect local refs through context discovery - #26117

Closed
pkozlowski-opensource wants to merge 1 commit into
angular:masterfrom
pkozlowski-opensource:discovery_util_local_refs
Closed

pkozlowski-opensource wants to merge 1 commit into
angular:masterfrom
pkozlowski-opensource:discovery_util_local_refs

Conversation

@pkozlowski-opensource

Copy link
Copy Markdown
Member

This is needed for the TestBed implementation since we can ask for a set of local refs on a given debug element.

@pkozlowski-opensource pkozlowski-opensource added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release comp: ivy labels Sep 26, 2018
@mary-poppins

Copy link
Copy Markdown

You can preview f797bd5 at https://pr26117-f797bd5.ngbuilds.io/.

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.

I think this should be 3 consts and 0 vars, no?

@kara kara Sep 26, 2018 •

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.

I think we want to wrap lViewData[lNodeIndex] with readElementValue in case that element happens to have a styling context. You might want to use getLNode(), since it has that built in. (Maybe a test for this?)

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.

What about local refs on ng-template elements? Is that something we want to support?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Right. I don't need it for TestBed but we should add it for completeness + a test. Thnx for catching this!

@kara kara Sep 26, 2018 •

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.

FWIW, if it's not necessary for TestBed, we could probably just make a JIRA ticket for later. Was just curious what your thoughts were on supporting it down the line.

@matsko matsko 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.

This is an excellent feature.

@mhevery mhevery 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, please take care of the comments.

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.

nit: /** should not have text after it. (insert line break).

@mhevery mhevery 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 Sep 27, 2018
@pkozlowski-opensource
pkozlowski-opensource force-pushed the discovery_util_local_refs branch 2 times, most recently from 43bd538 to 725b4a3 Compare September 27, 2018 14:05
@mary-poppins

Copy link
Copy Markdown

You can preview 43bd538 at https://pr26117-43bd538.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 725b4a3 at https://pr26117-725b4a3.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Sep 27, 2018
@mary-poppins

Copy link
Copy Markdown

You can preview fa0ec85 at https://pr26117-fa0ec85.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Sep 27, 2018
@pkozlowski-opensource

Copy link
Copy Markdown
Member Author

Marking as merge-assistance since:

@mary-poppins

Copy link
Copy Markdown

You can preview 8f522ba at https://pr26117-8f522ba.ngbuilds.io/.

@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

@kara

kara commented Sep 27, 2018

Copy link
Copy Markdown
Contributor

presubmit

@kara kara added action: merge The PR is ready for merge by the caretaker and removed merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Sep 27, 2018
@alxhub alxhub closed this in 5f6900e Sep 27, 2018
@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 14, 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 cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants