-
Notifications
You must be signed in to change notification settings - Fork 15
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
Analytics fix and additions and tests #71
Conversation
@@ -323,7 +324,7 @@ func BuildRollupArchive(ctx context.Context, db *sqlx.DB, conf *Config, s3Client | |||
ctx, cancel := context.WithTimeout(ctx, time.Hour) | |||
defer cancel() | |||
|
|||
start := time.Now() | |||
start := dates.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.
so can be mocked in test
@@ -946,8 +947,11 @@ func ArchiveActiveOrgs(db *sqlx.DB, cfg *Config, s3Client s3iface.S3API) error { | |||
return errors.Wrap(err, "error getting active orgs") | |||
} | |||
|
|||
totalRunsArchived, totalMsgsArchived := 0, 0 | |||
totalRunsFailedArchives, totalMsgsFailedArchives := 0, 0 |
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.
forgot to actually increment these below
7cef8f0
to
646148e
Compare
646148e
to
ab69184
Compare
Codecov Report
@@ Coverage Diff @@
## main #71 +/- ##
==========================================
+ Coverage 67.11% 70.67% +3.55%
==========================================
Files 6 6
Lines 815 832 +17
==========================================
+ Hits 547 588 +41
+ Misses 166 139 -27
- Partials 102 105 +3
Continue to review full report at Codecov.
|
No description provided.