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(common): prevent warning about oversize image twice #58021

Closed
wants to merge 1 commit into from

Conversation

arturovt
Copy link
Contributor

I’ve noticed that there was a loop inside a loop. Since we’re already iterating through images using forEach, it was running a for loop through images again. This was probably a mistake made when the functionality was initially added. The test actually verified that logs.length is 1, but in the real environment, it logs twice (which is quite obvious due to the code).

I’ve also added the missing file to the Bazel target.

I’ve noticed that there was a loop inside a loop. Since we’re already iterating through
`images` using `forEach`, it was running a `for` loop through `images` again. This was
probably a mistake made when the functionality was initially added. The test actually
verified that `logs.length` is `1`, but in the real environment, it logs twice
(which is quite obvious due to the code).

I’ve also added the missing file to the Bazel target.
@pullapprove pullapprove bot requested a review from AndrewKushnir September 30, 2024 20:45
@angular-robot angular-robot bot added the area: common Issues related to APIs in the @angular/common package label Sep 30, 2024
@ngbot ngbot bot added this to the Backlog milestone Sep 30, 2024
@AndrewKushnir AndrewKushnir added target: patch This PR is targeted for the next patch release action: presubmit The PR is in need of a google3 presubmit labels Oct 1, 2024
@AndrewKushnir
Copy link
Contributor

Presubmit.

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels Oct 1, 2024
@AndrewKushnir
Copy link
Contributor

Caretaker note: the presubmit looks good (only pre-existing failures), this PR is ready for merge.

@AndrewKushnir AndrewKushnir 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 Oct 1, 2024
@devversion
Copy link
Member

This PR was merged into the repository by commit b7bd429.

The changes were merged into the following branches: main, 18.2.x

@devversion devversion closed this in b7bd429 Oct 2, 2024
devversion pushed a commit that referenced this pull request Oct 2, 2024
I’ve noticed that there was a loop inside a loop. Since we’re already iterating through
`images` using `forEach`, it was running a `for` loop through `images` again. This was
probably a mistake made when the functionality was initially added. The test actually
verified that `logs.length` is `1`, but in the real environment, it logs twice
(which is quite obvious due to the code).

I’ve also added the missing file to the Bazel target.

PR Close #58021
@arturovt arturovt deleted the fix/common_double-warning branch October 2, 2024 12:50
@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 Nov 2, 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: common Issues related to APIs in the @angular/common package merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants