@@ -39,7 +39,7 @@ buf_board_meeting_create:
3939 x-on-behalf-of : !jwt bearer=true,aud=lfx-v2-project-service,principal=clients@m2m_helper
4040 data :
4141 {% set meeting_id = fake.pyint(min_value=10000000000, max_value=99999999999) %}
42- {# Calculate initial meeting time based on `total_past_meetings`. # }
42+ {# Calculate initial (historical) meeting time based on `total_past_meetings`. # }
4343 {% set previous_meeting = fake.date_time_between(
4444 start_date='-28d',
4545 end_date='-14d',
@@ -61,6 +61,11 @@ buf_board_meeting_create:
6161 {# Map Python weekday (0 = Monday, 6 = Sunday) to Zoom (1 = Sunday, 7 = Saturday). # }
6262 {% set zoom_week_day = (meeting_start_time.weekday() + 1) % 7 + 1 %}
6363 {% set week_of_month = (meeting_start_time.day / 7) | round(0, 'ceil') | int %}
64+ {# Calculate the NEXT (future) meeting time for the scheduled meeting.
65+ This is the meeting_start_time plus enough months to be in the future. # }
66+ {% set next_meeting_start_time = (
67+ meeting_start_time + timedelta(days=30 * (total_past_meetings + 1))
68+ ).replace(hour=meeting_start_time.hour, minute=0, second=0, microsecond=0) %}
6469 # Renamed from `meeting_id` in v1.
6570 id : " {{ meeting_id }}"
6671 topic : Monthly Board Meeting
@@ -75,10 +80,10 @@ buf_board_meeting_create:
7580 recurrence :
7681 # 100 years from initial meeting.
7782 end_date_time : " {{ (meeting_start_time + timedelta(days=365*100)).isoformat() }}Z"
78- repeat_interval : " 1 "
79- type : " 3 "
80- monthly_week : " {{ week_of_month }}"
81- monthly_week_day : " {{ zoom_week_day }}"
83+ repeat_interval : 1
84+ type : 3
85+ monthly_week : {{ week_of_month }}
86+ monthly_week_day : {{ zoom_week_day }}
8287 zoom_ai_enabled : true
8388 # 6-digit numeric passcode.
8489 host_key : " {{ fake.pyint(min_value=100000, max_value=999999) }}"
@@ -112,7 +117,8 @@ buf_board_meeting_create:
112117 meeting_type : Board
113118 join_url : " https://zoom.example/j/{{ meeting_id }}?pwd={{ fake.pystr() }}"
114119 transcript_access : public
115- start_time : " {{ meeting_start_time.isoformat() }}Z"
120+ # Use the NEXT (future) meeting time for the scheduled meeting
121+ start_time : " {{ next_meeting_start_time.isoformat() }}Z"
116122 # Note, proj_id (sfid) in the source data will have been stripped by lfx-v1-sync-helper.
117123 project_uid : !ref "buf_board_meeting_project_lookup.steps[0]._response"
118124 # Note, this is later than `created_at`.
0 commit comments