-
-
Notifications
You must be signed in to change notification settings - Fork 11
[BACK-2638] Move Summary buckets to collection and unify datastructure #763
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
[BACK-2638] Move Summary buckets to collection and unify datastructure #763
Conversation
b1bd790
to
73cb386
Compare
73cb386
to
e2d477d
Compare
…ion bug with omitempty
… restarted calculations
…atch other non-glucose types
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.
Left feedback inline - overall looks good, but there are few issues
data/summary/types/glucose.go
Outdated
|
||
type GlucosePeriods map[string]*GlucosePeriod | ||
|
||
type Range struct { |
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.
Remove omitempty
to avoid bugs
data/summary/types/glucose.go
Outdated
|
||
type GlucoseBucket struct { | ||
GlucoseRanges `json:",inline" bson:",inline"` | ||
LastRecordDuration int `json:"lastRecordDuration,omitempty" bson:"lastRecordDuration,omitempty"` |
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.
Remove omitempty
to avoid bugs
data/summary/types/glucose.go
Outdated
return true, nil | ||
} | ||
|
||
type GlucosePeriod struct { |
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.
Remove omitempty
to avoid bugs
…tableUserIDs unit tests
* update mongo, golang, deps, go * [BACK-2638] Move Summary buckets to collection and unify datastructure (#763) --------- Co-authored-by: Todd Kazakov <[email protected]>
No description provided.