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

add menu update change detection logs #1664

Merged
merged 2 commits into from
Mar 28, 2024
Merged

Conversation

zackattack01
Copy link
Contributor

This add a menuItemCache to the desktop runner to detect when changes to the top level items occur for the menu bar data.

Within the menu template that is sent down, there are several timestamps and links that change regularly but are not meaningful for our change detection purposes. The simplest approach I found to filtering this noise was to catalog the top level items by label, and note any changes there. This will provide us with a record of any major changes (pending registrations, device status change, etc) without being too noisy. This logic is fairly isolated and easy to update if anyone has better ideas for detection or if there's more we'd want to track

Copy link
Contributor

@James-Pickett James-Pickett left a comment

Choose a reason for hiding this comment

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

NICE!

Copy link
Contributor

@RebeccaMahany RebeccaMahany left a comment

Choose a reason for hiding this comment

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

🔥

Copy link
Contributor

@directionless directionless left a comment

Choose a reason for hiding this comment

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

LGTM

@zackattack01 zackattack01 added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit cd13c97 Mar 28, 2024
30 checks passed
@zackattack01 zackattack01 deleted the zack/menu_change_detection branch March 28, 2024 17:34
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.

4 participants