Skip to content

fix(core): remove imports in the inject migration - #57125

Closed
cexbrayat wants to merge 1 commit into
angular:mainfrom
cexbrayat:fix/remove-inject-import
Closed

cexbrayat wants to merge 1 commit into
angular:mainfrom
cexbrayat:fix/remove-inject-import

Conversation

@cexbrayat

Copy link
Copy Markdown
Member

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?

The unused decorator imports are left in the migrated file.

What is the new behavior?

This updates the inject migration to removes the decorator imports that are left unused after the migration.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This updates the inject migration to removes the decorator imports that are left unused after the migration.
@pullapprove
pullapprove Bot requested a review from thePunderWoman July 25, 2024 09:12
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jul 25, 2024
@ngbot ngbot Bot added this to the Backlog milestone Jul 25, 2024
@cexbrayat
cexbrayat requested a review from crisbeto July 25, 2024 09:12
@cexbrayat

cexbrayat commented Jul 25, 2024 •

Copy link
Copy Markdown
Member Author

@crisbeto Maybe this was done on purpose, and my solution is maybe a bit too agressive. But I was surprised to see that the imports were not removed and thought that it was worth a shot.

@crisbeto

Copy link
Copy Markdown
Member

I'm planning to remove the unused imports, but first I need to land #57096 and #57110 in preparation. We shouldn't be managing the imports directly like this, because we already have a centralized ImportManager.

@cexbrayat

Copy link
Copy Markdown
Member Author

👍 I'll close then

@cexbrayat cexbrayat closed this Jul 25, 2024
@cexbrayat
cexbrayat deleted the fix/remove-inject-import branch July 25, 2024 11:25
@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 Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants