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

[LOOP-5035] report time zone changes #105

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

nhamming
Copy link
Contributor

@nhamming nhamming requested review from ps2 and Camji55 September 18, 2024 11:40
@nhamming nhamming force-pushed the nate/feature/LOOP-5035/report-time-zone-changes branch from f576f31 to 7cd048e Compare September 18, 2024 11:42
@@ -485,6 +486,33 @@ extension TidepoolService: RemoteDataService {

return (created, updated, lastControllerSettingsDatum, lastCGMSettingsDatum, lastPumpSettingsDatum)
}

private func uploadTimeZoneChangeData(from fromTimeZone: TimeZone, to toTimeZone: TimeZone, method: TTimeChangeDeviceEventDatum.Method = .automatic, at date: Date = Date()) async throws {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the method defaults to .automatic, but truly the method is not included in the notification and thus is unknown. Does this matter?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it will still accomplish it's main goal of letting data science track which timezone the user is in.

@nhamming nhamming force-pushed the nate/feature/LOOP-5035/report-time-zone-changes branch from b2b34e5 to f43252f Compare September 18, 2024 18:04
Copy link
Contributor

@ps2 ps2 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -19,7 +19,7 @@ actor DeviceLogUploader {

private var delegate: RemoteDataServiceDelegate?

private var logChunkDuration = TimeInterval(hours: 1)
private var logChunkDuration = TimeInterval(minutes: 5)//TimeInterval(hours: 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be reverted.

@@ -485,6 +486,33 @@ extension TidepoolService: RemoteDataService {

return (created, updated, lastControllerSettingsDatum, lastCGMSettingsDatum, lastPumpSettingsDatum)
}

private func uploadTimeZoneChangeData(from fromTimeZone: TimeZone, to toTimeZone: TimeZone, method: TTimeChangeDeviceEventDatum.Method = .automatic, at date: Date = Date()) async throws {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it will still accomplish it's main goal of letting data science track which timezone the user is in.

@nhamming nhamming merged commit e192e32 into dev Sep 18, 2024
@nhamming nhamming deleted the nate/feature/LOOP-5035/report-time-zone-changes branch September 18, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants