-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use batch requests for daily summary job #72
Conversation
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
+ Coverage 26.20% 27.80% +1.60%
==========================================
Files 57 57
Lines 2015 2057 +42
==========================================
+ Hits 528 572 +44
+ Misses 1432 1420 -12
- Partials 55 65 +10
Continue to review full report at Codecov.
|
Remove '"summary all" command remove one-liner function call fix error message return
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.
LGTM
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.
Thanks @mickmister Please merge this PR.
I will do regression testing around this along with #74 in master.
@mickmister Can you please resolve the conflict? |
Will try to auto merge this PR once all tests and checks are passing. This might take up to an hour. |
env.Logger.Debugf("Daily summary job beginning") | ||
|
||
err = mscal.ProcessAllDailySummary() | ||
err := mscalendar.New(env, "").ProcessAllDailySummary(time.Now()) |
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.
nit: should this be BotUserID
?
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.
@levb Yes it is implicitly BotUserID
. The New
function falls back to the BotUserID
when an empty string is passed in. It's convenient but I think I prefer the explicit way. Leaving it as is, as we have done this elsewhere and we this is already QA reviewed etc
Summary
The daily summary job now uses msgraph JSON batching to limit the number of requests made. Order of operations:
Ticket Link
Fixes #48