Skip to content

Commit f9a4a76

Browse files
authored
Merge branch 'main' into ems/meltano-jobs
2 parents 064738b + 89778a1 commit f9a4a76

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

cmd/lfx-v1-sync-helper/handlers_meetings.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"context"
99
"encoding/json"
1010
"fmt"
11+
"slices"
1112
"strconv"
1213
"strings"
1314
"time"
@@ -176,6 +177,9 @@ func convertMapToInputMeeting(ctx context.Context, v1Data map[string]any) (*meet
176177
}
177178
}
178179

180+
// Set show_meeting_attendees (an attribute that does not exist in PCC)
181+
meeting.ShowMeetingAttendees = shouldShowMeetingAttendees(meeting)
182+
179183
// Convert v1 named fields to v2 named fields.
180184
if title, ok := v1Data["topic"].(string); ok && title != "" {
181185
meeting.Title = title
@@ -2279,3 +2283,8 @@ func handleZoomPastMeetingSummaryUpdate(ctx context.Context, key string, v1Data
22792283

22802284
funcLogger.InfoContext(ctx, "successfully sent summary indexer and access messages")
22812285
}
2286+
2287+
func shouldShowMeetingAttendees(m meetingInput) bool {
2288+
allowedShowMeetingAttendeesSFDCIds := []string{"a0941000002wBz9AAE"}
2289+
return strings.EqualFold(m.MeetingType, "board") && slices.Contains(allowedShowMeetingAttendeesSFDCIds, m.ProjectSFID)
2290+
}

cmd/lfx-v1-sync-helper/models_meetings.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,14 @@ type meetingInput struct {
309309

310310
// LastMailingListMembersSyncJobWarningCount is the total number of passed records with warnings in the last bulk insert job that was run to insert registrants
311311
LastMailingListMembersSyncJobWarningCount int `json:"-"`
312+
312313
// UseUniqueICSUID is a flag that indicates if the meeting should use a unique event ID for the calendar event.
313314
// Apply manually (generate uuid and store in this field) when a meeting has calendar issues, and we wish to use a separate unique uuid instead of the meeting ID.
314315
UseUniqueICSUID string `json:"use_unique_ics_uid"` // this is a uuid
316+
317+
// ShowMeetingAttendees determines whether or not LFX One should show data about
318+
// meeting attendees to each other
319+
ShowMeetingAttendees bool `json:"show_meeting_attendees"`
315320
}
316321

317322
// MarshalJSON custom marshaler to include integer fields that are excluded from unmarshaling

0 commit comments

Comments
 (0)