-
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
[MM-21689] Handle timezone complications between Go and Microsoft Graph #25
Conversation
…rmatted for display fix test update mocks
test date time conversion
overall comment on naming the util functions, |
* make utils/tz package * convert mapping array to a map available at compile-time to avoid map creation at run-time * unit test for testing go-compatibility of all timezones in conversion map * some renaming
server/api/calendar.go
Outdated
return "", err | ||
} | ||
|
||
var remoteUserID string |
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.
I like how this is handled in solar lottery as a separate function do the same here?
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.
@crspeller Can you confirm I've addressed this in the most recent push?
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.
I'm actually not sure what the ask is here.
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.
Sorry I wasn't clear. I like the split out you did. I really meant the withX
stuff the solar lottery plugin does.
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.
Coming in #29
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. Lots of work put into this, @mickmister
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.
some nits and musings
Totally OT, 0/5: I really like looking at the godoc for each package I make, should do it more. Without much actual contents of comments, it should be readable, intuitive, and typographically sound. Combine that with never indenting the go code over 4 deep, and one is 80% perfect. |
* rename ConvertToTimezone -> In * inline tz.Go() * rename remote.NewMicrosoftDateTime -> remote.NewDateTime * rename common.go -> date_time.go * remove tz package alias * use URL builder
Summary
This PR handles two things regarding timezones:
viewcal
andfindmeetings
, andcreateevent
commands at the moment.Ticket Link
https://mattermost.atlassian.net/browse/MM-21689