Skip to content

Conversation

@eneajaho
Copy link
Contributor

@eneajaho eneajaho commented Jun 13, 2024

…s to be lazy loaded

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Jun 13, 2024
@AndrewKushnir
Copy link
Contributor

@eneajaho thanks for creating this draft PR 👍 We'll be happy to look at the code (and help land it), once it's ready for review. Thank you.

@AndrewKushnir AndrewKushnir self-assigned this Jul 9, 2024
@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch 2 times, most recently from 4c5e7ca to ae120e5 Compare July 11, 2024 14:09
@eneajaho eneajaho changed the title wip - feat(schematics): add migration to convert standalone component route… feat(schematics): add migration to convert standalone component route… Jul 11, 2024
Copy link
Contributor Author

@eneajaho eneajaho left a comment

Choose a reason for hiding this comment

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

Hi @AndrewKushnir
I think this is ready for an initial round of review 🙌

@eneajaho eneajaho marked this pull request as ready for review July 11, 2024 14:17
@pullapprove pullapprove bot requested a review from thePunderWoman July 11, 2024 14:17
@AndrewKushnir AndrewKushnir requested a review from crisbeto July 11, 2024 21:47
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release area: router labels Jul 11, 2024
@ngbot ngbot bot added this to the Backlog milestone Jul 11, 2024
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@eneajaho thanks for creating this PR 👍 I've left some comments.

I think for this migration, it'd be great to collect references to NgModule-based components that the migration was unable to rewrite and output the list at the end, something like:

🎉 Automated migration has finished! 🎉

Number of updated routes: 53
Number of skipped routes: 156

Note: this migration was unable to optimize the following routes, since they use NgModule-based components:

- `/product/:id` path at `src/app/app.routes.ts`
- `/product/:id/details` path at `src/app/product/details.routes.ts`
...

Consider making those components standalone and run this migration again.

We can also include a link to the standalone migration into the message.

What do you think?

@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch from 2c37a9c to ebf0c31 Compare July 12, 2024 08:39
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@eneajaho thanks for addressing the feedback! I've left a few more comments and it'd be great if @crisbeto can take a look at the changes as well, so I've added him as a reviewer.

@AndrewKushnir AndrewKushnir removed their assignment Jul 12, 2024
@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch from ebf0c31 to 1d81473 Compare July 13, 2024 21:32
@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch 3 times, most recently from 6a46fbe to c1ddacd Compare July 17, 2024 13:57
@eneajaho
Copy link
Contributor Author

@crisbeto This is ready for another round of review. Solved the type issue and removed the ngtsc program.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

Sorry for the delay here, it fell off my radar. LGTM, but it needs a rebase.

@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch from e74032d to 5167dfa Compare July 29, 2024 17:23
@eneajaho eneajaho requested a review from crisbeto July 29, 2024 17:26
@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch from 5167dfa to 3c21c0f Compare July 29, 2024 19:01
@JeanMeche JeanMeche removed the request for review from thePunderWoman July 29, 2024 22:07
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 29, 2024
@thePunderWoman
Copy link
Contributor

@eneajaho Looks like this has lint issues. Should be mergeable right after that.

@thePunderWoman thePunderWoman 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: merge The PR is ready for merge by the caretaker labels Jul 30, 2024
…s to be lazy loaded

This schematic helps developers to convert eagerly loaded component routes to lazy loaded routes
@eneajaho eneajaho force-pushed the feat/migrate-standalone-component-routes-to-lazy branch from 3c21c0f to f71327b Compare July 30, 2024 17:08
@angular-robot angular-robot bot added the area: migrations Issues related to `ng update`/`ng generate` migrations label Jul 30, 2024
@eneajaho
Copy link
Contributor Author

@eneajaho Looks like this has lint issues. Should be mergeable right after that.

Updated. Using feat(migrations) now

@eneajaho eneajaho changed the title feat(schematics): add migration to convert standalone component route… feat(migrations): add migration to convert standalone component route… Jul 30, 2024
@thePunderWoman thePunderWoman added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note 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 Jul 30, 2024
@thePunderWoman
Copy link
Contributor

Caretaker note: the failing test is unrelated. Safe to merge.

@thePunderWoman
Copy link
Contributor

This PR was merged into the repository by commit 147eee4.

The changes were merged into the following branches: main

@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 Aug 30, 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 area: router detected: feature PR contains a feature commit merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants