Skip to content

Commit b4b1db2

Browse files
committed
Only keep the renamed (v2) attribute name for meetings
Signed-off-by: Eric Searcy <[email protected]>
1 parent 6236c23 commit b4b1db2

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ Use uv to run the mock data tool (uv will automatically manage Python versions a
5959
uv run lfx-v2-mockdata --help
6060

6161
# Load some data!
62-
uv run lfx-v2-mockdata --jwt-rsa-secret "$JWT_RSA_SECRET" -t playbooks/projects/{root_project_access,base_projects,extra_projects} playbooks/committees/base_committees
62+
uv run lfx-v2-mockdata \
63+
--jwt-rsa-secret "$JWT_RSA_SECRET" \
64+
-t playbooks/projects/{root_project_access,base_projects,extra_projects} playbooks/committees/base_committees
6365
```
6466

6567
**Important Notes:**
@@ -83,13 +85,15 @@ done
8385

8486
### Running After Data Wipe
8587

86-
When running after wiping data, you need to recreate the ROOT project first:
88+
When running after wiping data, you need to recreate the ROOT project first, with an extra playbook at the front. This `recreate_root_project` playbook bypasses the API and directly creates a new ROOT project in the NATS KV bucket.
8789

8890
```bash
89-
uv run lfx-v2-mockdata -t playbooks/projects/recreate_root_project playbooks/projects/{root_project_access,base_projects,extra_projects} playbooks/committees/base_committees
91+
uv run lfx-v2-mockdata \
92+
--jwt-rsa-secret "$JWT_RSA_SECRET" \
93+
-t playbooks/projects/{root_project_access,base_projects,extra_projects} playbooks/committees/base_committees
94+
-t playbooks/projects/recreate_root_project playbooks/projects/{root_project_access,base_projects,extra_projects} playbooks/committees/base_committees
9095
```
9196

92-
The `recreate_root_project` playbook bypasses the API and directly creates a new ROOT project in the NATS KV bucket.
9397

9498
## Playbook Structure
9599

playbooks/v1_meetings/umbrella_board_meeting/board_meeting.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ 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-
id: "{{ meeting_id }}" # v2 attribute
64+
# Renamed from `meeting_id` in v1.
65+
id: "{{ meeting_id }}"
6566
topic: Monthly Board Meeting
6667
visibility: public
6768
agenda: "Monthly meeting for the Big Umbrella Foundation board. {{ fake.sentence() }}"
@@ -85,7 +86,6 @@ buf_board_meeting_create:
8586
early_join_time: "10"
8687
recording_enabled: true
8788
duration: "{{ meeting_duration }}"
88-
meeting_id: "{{ meeting_id }}"
8989
recording_access: public
9090
concurrent_zoom_user_enabled: true
9191
# TODO.
@@ -162,8 +162,8 @@ buf_board_meeting_committee_participants_create:
162162
authorization: !jwt bearer=true,aud=lfx-v2-project-service,principal={{ fake.user_name() }},email={{ fake.email() }}
163163
x-on-behalf-of: !jwt bearer=true,aud=lfx-v2-project-service,principal=clients@m2m_helper
164164
data:
165-
id: "{{ fake.uuid4() }}" # v2 attribute
166-
registrant_id: "{{ fake.uuid4() }}" # v1 attribute
165+
# Renamed from `registrant_id` in v1.
166+
id: "{{ fake.uuid4() }}"
167167
meeting_id: "{{ meeting_id }}"
168168
committee: !ref "buf_committees.steps[?json.name == 'Governing Board']._response.uid | [0]"
169169
org: !ref "buf_board_members.steps[{{ i }}].json.organization.name"
@@ -256,7 +256,8 @@ buf_board_past_meeting_{{ past_meeting_index }}_create:
256256
authorization: !jwt bearer=true,aud=lfx-v2-project-service,principal={{ fake.user_name() }},email={{ fake.email() }}
257257
x-on-behalf-of: !jwt bearer=true,aud=lfx-v2-project-service,principal=clients@m2m_helper
258258
data:
259-
id: "{{ meeting_id }}-{{ occurrence_id }}" # v2 attribute
259+
# Renamed from `meeting_and_occurrence_id` in v1.
260+
id: "{{ meeting_id }}-{{ occurrence_id }}"
260261
topic: Monthly Board Meeting
261262
artifacts: null
262263
visibility: public
@@ -281,7 +282,6 @@ buf_board_past_meeting_{{ past_meeting_index }}_create:
281282
uuid: "{{ session_uuid }}"
282283
start_time: "{{ occurrence_actual_start.isoformat() }}Z"
283284
recording_enabled: true
284-
meeting_and_occurrence_id: "{{ meeting_id }}-{{ occurrence_id }}"
285285
duration: "{{ meeting_duration }}"
286286
meeting_id: "{{ meeting_id }}"
287287
recording_access: public
@@ -354,7 +354,8 @@ buf_board_past_meeting_{{ past_meeting_index }}_recording_create:
354354
authorization: !jwt bearer=true,aud=lfx-v2-project-service,principal={{ fake.user_name() }},email={{ fake.email() }}
355355
x-on-behalf-of: !jwt bearer=true,aud=lfx-v2-project-service,principal=clients@m2m_helper
356356
data:
357-
id: "{{ meeting_id }}-{{ occurrence_id }}" # v2 attribute
357+
# Renamed from `meeting_and_occurrence_id` in v1.
358+
id: "{{ meeting_id }}-{{ occurrence_id }}"
358359
# This is a filtered version of the v1 recordings object.
359360
created_at: "{{ recording_create_time.isoformat() }}Z"
360361
total_size: "{{ total_recording_size }}"
@@ -417,7 +418,6 @@ buf_board_past_meeting_{{ past_meeting_index }}_recording_create:
417418
uuid: "{{ session_uuid }}"
418419
share_url: https://zoom.example/rec/share/{{ share_hash }}
419420
recording_count: "5"
420-
meeting_and_occurrence_id: "{{ meeting_id }}-{{ occurrence_id }}"
421421
meeting_id: "{{ meeting_id }}"
422422
recording_access: public
423423

@@ -454,7 +454,8 @@ buf_board_past_meeting_{{ past_meeting_index }}_transcript_create:
454454
authorization: !jwt bearer=true,aud=lfx-v2-project-service,principal={{ fake.user_name() }},email={{ fake.email() }}
455455
x-on-behalf-of: !jwt bearer=true,aud=lfx-v2-project-service,principal=clients@m2m_helper
456456
data:
457-
id: "{{ meeting_id }}-{{ occurrence_id }}" # v2 attribute
457+
# Renamed from `meeting_and_occurrence_id` in v1.
458+
id: "{{ meeting_id }}-{{ occurrence_id }}"
458459
# This is a filtered version of the v1 recordings object.
459460
created_at: "{{ recording_create_time.isoformat() }}Z"
460461
total_size: "{{ total_recording_size }}"
@@ -504,7 +505,6 @@ buf_board_past_meeting_{{ past_meeting_index }}_transcript_create:
504505
uuid: "{{ session_uuid }}"
505506
share_url: https://zoom.example/rec/share/{{ share_hash }}
506507
recording_count: "5"
507-
meeting_and_occurrence_id: "{{ meeting_id }}-{{ occurrence_id }}"
508508
meeting_id: "{{ meeting_id }}"
509509
# `recording_access` is filtered from the transcript object.
510510
# recording_access: public

0 commit comments

Comments
 (0)