-
Notifications
You must be signed in to change notification settings - Fork 0
Ability to add user info when logging (overrides or adds info if there isn't any) #6
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -64,6 +64,10 @@ const initServer = ( | |||||||||||||||||||||||||
| * @param {string} [target] Target of the action (each app determines the list | ||||||||||||||||||||||||||
| * of targets) These are usually buttons, panels, elements, etc. | ||||||||||||||||||||||||||
| * @param {LogAction} [action] the type of action performed on the target | ||||||||||||||||||||||||||
| * @param {object} [overriddenUserInfo] object containing info to override | ||||||||||||||||||||||||||
| * @param {number} [opts.userId] overriding Canvas id of the user performing the action | ||||||||||||||||||||||||||
| * @param {string} [opts.userFirstName] overriding first name of the user performing the action | ||||||||||||||||||||||||||
| * @param {string} [opts.userLastName] overriding last name of the user performing the action | ||||||||||||||||||||||||||
|
Comment on lines
+68
to
+70
|
||||||||||||||||||||||||||
| * @param {number} [opts.userId] overriding Canvas id of the user performing the action | |
| * @param {string} [opts.userFirstName] overriding first name of the user performing the action | |
| * @param {string} [opts.userLastName] overriding last name of the user performing the action | |
| * @param {number} [overriddenUserInfo.userId] overriding Canvas id of the user performing the action | |
| * @param {string} [overriddenUserInfo.userFirstName] overriding first name of the user performing the action | |
| * @param {string} [overriddenUserInfo.userLastName] overriding last name of the user performing the action |
Copilot
AI
Aug 7, 2025
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.
The parameter documentation refers to 'opts.userLastName' but the actual parameter is 'overriddenUserInfo.userLastName'. The documentation should be corrected to match the parameter structure.
| * @param {number} [opts.userId] overriding Canvas id of the user performing the action | |
| * @param {string} [opts.userFirstName] overriding first name of the user performing the action | |
| * @param {string} [opts.userLastName] overriding last name of the user performing the action | |
| * @param {number} [overriddenUserInfo.userId] overriding Canvas id of the user performing the action | |
| * @param {string} [overriddenUserInfo.userFirstName] overriding first name of the user performing the action | |
| * @param {string} [overriddenUserInfo.userLastName] overriding last name of the user performing the action |
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.
The parameter documentation refers to 'opts.userId' but the actual parameter is 'overriddenUserInfo.userId'. The documentation should be corrected to match the parameter structure.