Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tree): allow readonly arrays in getChildren return type #17825

Closed

Conversation

crisbeto
Copy link
Member

Fixes not being allowed to return a ReadonlyArray from a getChildren function. Also pulls the definition for the getChildren function into a separate type so we don't have to maintain it in 4 different places.

Fixes #17824.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Nov 27, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 27, 2019
jelbourn
jelbourn previously approved these changes Nov 27, 2019
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged labels Nov 27, 2019
@jelbourn
Copy link
Member

jelbourn commented Dec 4, 2019

Turns out that this is a breaking change; anywhere this value is assigned into something else the types don't match now. It has ~60 failing build targets across a bunch of projects

@jelbourn jelbourn added target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Jan 30, 2020
@jelbourn jelbourn added this to the 10.0.0 milestone Jan 30, 2020
@crisbeto crisbeto force-pushed the 17824/tree-get-children-readonly branch 2 times, most recently from caa8111 to a793288 Compare May 2, 2020 15:12
@jelbourn jelbourn modified the milestones: 10.0.0, 11.0.0 Jun 2, 2020
Fixes not being allowed to return a `ReadonlyArray` from a `getChildren` function. Also pulls the definition for the `getChildren` function into a separate type so we don't have to maintain it in 4 different places.

Fixes angular#17824.
@thetric
Copy link

thetric commented Jun 28, 2021

What is the status of this PR? This PR didn't land in neither v10, v11 nor v12 although it is 1.5 years old. A similar PR for chips was merged within a week

@andrewseguin andrewseguin removed the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 28, 2021
@andrewseguin andrewseguin removed the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Mar 28, 2022
@josephperrott josephperrott added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Nov 16, 2022
@crisbeto
Copy link
Member Author

Closing since the tree is in the process of being reworked.

@crisbeto crisbeto closed this Feb 28, 2024
@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 Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: merge The PR is ready for merge by the caretaker presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NestedTreeControl getChildren should accept a readonly return type
7 participants