(ctx context.Context, invocationUUID uuid.UUID)
| 87 | } |
| 88 | |
| 89 | func TrackLoginSuccess(ctx context.Context, invocationUUID uuid.UUID) { |
| 90 | if client == nil { |
| 91 | return |
| 92 | } |
| 93 | |
| 94 | details := refreshSyncEventDetails(ctx) |
| 95 | if details == nil { |
| 96 | return |
| 97 | } |
| 98 | |
| 99 | if details.isCurrentTeamInternal { |
| 100 | return |
| 101 | } |
| 102 | |
| 103 | _ = client.Enqueue(rudderstack.Track{ |
| 104 | UserId: details.user.ID.String(), |
| 105 | Event: "login_success", |
| 106 | Properties: rudderstack.Properties{ |
| 107 | "invocation_uuid": invocationUUID, |
| 108 | "team": details.currentTeam, |
| 109 | "environment": details.environment, |
| 110 | "$groups": rudderstack.Properties{ |
| 111 | "team": details.currentTeam, |
| 112 | }, |
| 113 | }, |
| 114 | }) |
| 115 | } |
| 116 | |
| 117 | type SyncStartedEvent struct { |
| 118 | Source specs.Source |
nothing calls this directly
no test coverage detected