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

Adjust notification timing for development mode #5090

Merged
merged 8 commits into from
Jul 15, 2024
Merged

Conversation

combs-a
Copy link
Collaborator

@combs-a combs-a commented Jul 10, 2024

This PR adjusts the interval for when notifications are fetched in development mode, to make it easier to filter through requests in the debug console while testing/debugging/etc.

I set the development time interval to 1 minute, but that can be adjusted easily if needed.

Checklist

  • Self-review the PR after opening it to make sure the changes look good
    and self-explanatory (or properly documented)
  • Add automated tests
  • Add relevant issue to release milestone

Testing instructions

  • Check that production mode still has requests about every 5 seconds.
  • Check that development mode has requests about every minute.

@combs-a combs-a requested review from CarolineDenis and a team July 10, 2024 19:10
@combs-a combs-a requested a review from a team July 11, 2024 13:50
Copy link
Member

@maxpatiiuk maxpatiiuk left a comment

Choose a reason for hiding this comment

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

This looks good, but if you are interested in an even better solution, there are some more sophisticated web APIs we can use to make notifications fetching more efficient and to reduce the noise in the network panel. See:
#2606
(that issue is marked as fixed because a basic improvement was done, but more improvements are still possible)

@combs-a
Copy link
Collaborator Author

combs-a commented Jul 15, 2024

@maxpatiiuk that sounds like it would be good to implement but for now putting this in as-is to make things a bit nicer will be alright. I'll look into it though!

@combs-a combs-a requested a review from a team July 15, 2024 15:01
@CarolineDenis CarolineDenis requested a review from a team July 15, 2024 15:13
Copy link
Contributor

@alesan99 alesan99 left a comment

Choose a reason for hiding this comment

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

Testing instructions

  • Check that production mode still has requests about every 5 seconds.
  • Check that development mode has requests about every minute.

Looks good! 👍👍 The network logs definitely slow down in dev mode.

@combs-a combs-a requested a review from a team July 15, 2024 16:04
@Areyes42 Areyes42 self-requested a review July 15, 2024 17:02
Copy link
Contributor

@Areyes42 Areyes42 left a comment

Choose a reason for hiding this comment

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

Testing instructions

  • Check that production mode still has requests about every 5 seconds.
  • Check that development mode has requests about every minute.

Everything looks good, awesome job Anya! 👏

@combs-a combs-a merged commit df4eccd into production Jul 15, 2024
9 checks passed
@combs-a combs-a deleted the dev-notifs branch July 15, 2024 17:53
@grantfitzsimmons
Copy link
Member

🎉 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants