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(router): validate lazy loaded configs #45526

Closed
wants to merge 2 commits into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Apr 4, 2022

Lazy loaded configs are not validated at runtime like the initial set of
routes are. This change also validates lazy loaded configs right after
they're loaded.

BREAKING CHANGE: Lazy loaded configs are now also validated once loaded like the
initial set of routes are. Lazy loaded modules which have invalid Route
configs will now error. Note that this is only done in dev mode so
there is no production impact of this change.

Fixes #25431

Lazy loaded configs are not validated at runtime like the initial set of
routes are. This change also validates lazy loaded configs right after
they're loaded.

BREAKING CHANGE: Lazy loaded configs are now also validated once loaded like the
initial set of routes are. Lazy loaded modules which have invalid Route
configs will now error. Note that this is only done in dev mode so
there is no production impact of this change.

Fixes angular#25431
@atscott atscott added comp: router target: major action: presubmit labels Apr 4, 2022
@ngbot ngbot bot added this to the Backlog milestone Apr 4, 2022
@ngbot ngbot bot added this to the Backlog milestone Apr 4, 2022
@atscott
Copy link
Contributor Author

@atscott atscott commented Apr 4, 2022

@atscott atscott requested a review from alxhub Apr 4, 2022
@atscott
Copy link
Contributor Author

@atscott atscott commented Apr 5, 2022

TGP revealed several failures that will need to be cleaned up

@atscott
Copy link
Contributor Author

@atscott atscott commented Apr 14, 2022

Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

👍

packages/router/src/router_config_loader.ts Outdated Show resolved Hide resolved
packages/router/src/router_config_loader.ts Outdated Show resolved Hide resolved
@atscott atscott removed the action: presubmit label Apr 14, 2022
@atscott atscott removed the request for review from alxhub Apr 14, 2022
@atscott atscott added action: merge action: merge-assistance labels Apr 14, 2022
@ngbot
Copy link

@ngbot ngbot bot commented Apr 15, 2022

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "ci/circleci: legacy-unit-tests-saucelabs" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@atscott
Copy link
Contributor Author

@atscott atscott commented Apr 15, 2022

merge assistance: the legacy unit test failure is unrelated. Also, you may want to merge and sync this on its own (in case there were regressions in g3 between the TGP run and now)

@dylhunn
Copy link
Contributor

@dylhunn dylhunn commented Apr 15, 2022

This PR was merged into the repository by commit 96fd29c.

@dylhunn dylhunn closed this in 96fd29c Apr 15, 2022
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented May 16, 2022

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 May 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge action: merge-assistance comp: router flag: breaking change target: major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants