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

[BACK-3183] Add ability to send connection invites for multiple providers #73

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

toddkazakov
Copy link
Collaborator

No description provided.

@toddkazakov
Copy link
Collaborator Author

/deploy qa1

@tidebot
Copy link

tidebot commented Oct 18, 2024

toddkazakov updated values.yaml file in qa1

@tidebot
Copy link

tidebot commented Oct 18, 2024

toddkazakov updated flux policies file in qa1

@tidebot
Copy link

tidebot commented Oct 18, 2024

toddkazakov deployed clinic-worker tk-connect-twiist-2 branch to qa1 namespace

@toddkazakov toddkazakov force-pushed the tk-connect-twiist-2 branch 2 times, most recently from 2a5fd8c to 8b46d39 Compare October 18, 2024 11:43
@toddkazakov toddkazakov changed the title Add ability to send connection invites for multiple providers [BACK-3183] Add ability to send connection invites for multiple providers Oct 18, 2024
Base automatically changed from tk-migration-notifications to main October 22, 2024 12:09
lostlevels
lostlevels previously approved these changes Oct 25, 2024
if *source.ProviderName == DexcomDataSourceProviderName && *source.State == string(clinics.DataSourceStatePendingReconnect) {
templateName = "request_dexcom_reconnect"
errs := make([]error, 0, len(providers))
for providerName, _ := range providers {

Choose a reason for hiding this comment

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

nitpick: superfluous _


func (u UpdatedFields) GetUpdatedConnectionRequests() ConnectionRequests {
var requests ConnectionRequests
if u.ProviderConnectionRequests != nil {

Choose a reason for hiding this comment

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

nitpick: You can range over a nil map.

requests = append(requests, v)
}
for _, v := range u.ProviderConnectionRequestsTwiist {
requests = append(requests, v)

Choose a reason for hiding this comment

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

Would it be simpler to just do a requests = append(requests, u.ProviderConnectionRequestsTwiist...) and the same for ProviderConnectionRequestsDexcom ?

lostlevels
lostlevels previously approved these changes Oct 29, 2024
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.

3 participants