-
Notifications
You must be signed in to change notification settings - Fork 146
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(logger): fix logger attribute merging #535
fix(logger): fix logger attribute merging #535
Conversation
Hi @okoskine thanks a lot for opening this PR, we really appreciate it. Before moving forward, and for future reference, I would politely ask you if it'd be possible to limit PRs to one feature only. This PR addresses two areas:
According to our CONTRIBUTING guidelines we would appreciate it if next time you could open an issue first, or contribute to an existing one before publishing a PR. In this case, as part of the work being done on issue #484 we are already working to refactor the cold start logic and extract it in the In regards to the merge logic for the attribute instead, could you please elaborate a bit more on what problem the change is solving? To better be able to review and understand the PR I'd appreciate if you could provide examples of the original and proposed behaviours so that we can better contextualise the changes. Thanks in advance for the info and again, thank you also for taking the time to open this PR. |
7e90e2c
to
362c3ed
Compare
362c3ed
to
2d8a85e
Compare
Hi, I edited the PR not to include the cold start changes. I initially included these in a single PR since the The merge function from lodash mutates the first parameter, so a call of the form
actually mutates the The apparent intention of these usages is captured with the form
which only mutates the The actual problem I encountered was that |
@okoskine thanks a lot for the explanation and for accepting to exclude the cold start changes. I'll review the changes & unit tests tomorrow morning and provide a review for the PR. |
Just reviewed the changes and they make sense to me, nice catch in spotting that the objects were mutated & at the same time multiple executions were not updating correctly. Gonna ask a second review by @saragerion and when all comments are addressed I'll be happy to approve & merge. |
Co-authored-by: Andrea Amorosi <[email protected]>
Co-authored-by: Andrea Amorosi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for the PR and contribution 🎉
I added a nice-to-have nitpick comment, but in my opinion it's already ready to be merged.
Co-authored-by: Sara Gerion <[email protected]>
Description of your changes
How to verify this change
Newly added unit tests in Logger.test.ts
Related issues, RFCs
PR status
Is this ready for review?: YES
Is it a breaking change?: NO
Checklist
Breaking change checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.