Skip to content

Avoid appending info for ignored Lograge actions#9544

Merged
aduth merged 3 commits intomainfrom
aduth-avoid-append-lograge-ignored
Nov 6, 2023
Merged

Avoid appending info for ignored Lograge actions#9544
aduth merged 3 commits intomainfrom
aduth-avoid-append-lograge-ignored

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 3, 2023

🛠 Summary of changes

Shortcuts to avoid appending info to a Lograge payload which would be ignored.

Arguably this feels like something that Lograge itself should be doing, but this is the next best thing.

Unfortunately I couldn't find a more direct way to test that the current request should be ignored, but I did try to stay as close to the source implementation as possible (source).

Why does this matter? It helps avoid a database query for the session heartbeat route. See #9541 and #7966 for more context.

📜 Testing Plan

Repeat Testing Plan from #9541 and confirm that there are no logged entries for User Load database query on the resulting session active heartbeat requests.

@aduth aduth force-pushed the aduth-lograge-ignore-sessions-controller branch from 699cc97 to 1822053 Compare November 3, 2023 21:44
@aduth aduth force-pushed the aduth-avoid-append-lograge-ignored branch from b95da8e to 3adfc08 Compare November 3, 2023 21:49
Copy link
Contributor Author

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To do: Enhance the existing specs.

Base automatically changed from aduth-lograge-ignore-sessions-controller to main November 6, 2023 13:33
changelog: Internal, Logging, Avoid logging request detail for session active routes
@aduth aduth force-pushed the aduth-avoid-append-lograge-ignored branch from 3adfc08 to 7bbff66 Compare November 6, 2023 13:33
@aduth
Copy link
Contributor Author

aduth commented Nov 6, 2023

To do: Enhance the existing specs.

Added in b0ad17f

@aduth aduth merged commit aebe216 into main Nov 6, 2023
@aduth aduth deleted the aduth-avoid-append-lograge-ignored branch November 6, 2023 14:42
@matthinz matthinz mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants