-
Notifications
You must be signed in to change notification settings - Fork 261
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
feat(api): use conditional requests and fetch all inbox notifications #1414
Conversation
@bmulholland @afonsojramos - thoughts on whether we need to place a ceiling on the total number of notifications we unpaginate, or leave as-is (fetch all pages)? I've tested with ~650 notifications and it seems to be fine. Maybe we add a ceiling only if there are reports of rate-limiting? |
Moving back to draft as the tests require some rework after merging #1419 |
Maybe just leave it, but add a way to report to the user "you have too many notifications, it hits rate limits, you're on your own"? :) |
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Finally ready for this to be considered for merging. Clearing the previous approval(s) since it's been sitting for a little while |
Will test locally. To start, I see this in console:
|
🤔 - that's pretty unusual |
I've been running it locally for the past week and haven't had any console log entries like that |
@brandonweiss - can you check if you're getting the above My best guess is that PR, for some reason, doesn't have a PR user Lines 280 to 285 in fa77c99
|
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
…fy-app/gitify into feature/conditional-request
@setchy the console message may well be unrelated, unfortunately I only had that PR in my notifications exactly while testing the branch. I think you're right, though: the PR author deleted their account. |
FYI, I've been using this branch for the last day and it seems to be working well for me :) |
Likewise - do we feel comfortable enough to merge this change? Itching to ship the next release |
Co-authored-by: Afonso Jorge Ramos <[email protected]>
Co-authored-by: Afonso Jorge Ramos <[email protected]>
Closes #1124
Closes #356
Update our API Request With Auth function to:
Cache-Control
request header depending on the api url/notifications
we do not want to cache request/response (current behavior)Appreciate some hands to test this branch locally before merging 🙏