-
Notifications
You must be signed in to change notification settings - Fork 166
Improve Acuant Global Code Comment #10247
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
Merged
night-jellyfish
merged 5 commits into
main
from
charley/improve-acuant-global-code-comment
Mar 15, 2024
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3be8cd3
Improve comment
charleyf 8e6c001
changelog: Internal, In-Person Proofing, Update a comment about the a…
charleyf 1ab73fb
Add a link to the PR that made the acuant global changes
charleyf b03f9aa
Rm line
977e602
Merge branch 'main' into charley/improve-acuant-global-code-comment
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not in scope of what you'd aimed to tackle, but I wonder why we log a message here. If we wanted to log something for us to be aware of, I'd think we'd use
trackError. Or if it's for tests (to trip the browser log detection), I'd think we could wrap that inprocess.env.NODE_ENV. If it's for local development, I wouldn't think we should have it part of the committed code.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.
That's a good point. I'm not sure what the original intent of this was either, tbh. It was added almost 2 years ago and I don't see a direct reference to the "why" for the console error.
I think reading through it, my take on it would be that we'd want to know if it's happening in production. The user would probably be encountering some kind of error already if there is no
window.AcuantJavascriptWebSdk. And I think we'd want to know if that's happening to users (especially if it's happening to many).So I think
TrackErrormakes sense. (TILtrackErrorexists! I thought we always usedtrackEvent). I created LG-12733 to track that work. I found we use it twice in this file as well.