Skip to content

Commit a27a8d7

Browse files
committed
Fix RSVP data to reference registrant username and job_title
Ensure data consistency by having RSVP records reference the same username and job_title from the registrant record instead of generating new random values. This prevents the same person from having different usernames and job titles across records. Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Andres Tobon <[email protected]>
1 parent 820468e commit a27a8d7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

playbooks/v1_meetings/umbrella_board_meeting/board_meeting.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,11 @@ buf_board_meeting_committee_participants_rsvps_create:
238238
occurrence_id: ""
239239
registrant_id: !ref "buf_board_meeting_committee_participants_create.steps[{{ i }}].json.data.id"
240240
email: !ref "buf_board_members.steps[{{ i }}].json.email"
241-
name: !sub "${buf_board_members.steps[{{ i }}].json.first_name} ${buf_board_members.steps[{{ i }}].json.last_name}"
241+
name: !sub "${ buf_board_members.steps[{{ i }}].json.first_name} ${buf_board_members.steps[{{ i }}].json.last_name }"
242242
user_id: ""
243-
{% if member_has_username[i] %}
244-
username: {{ fake.user_name() }}
245-
{% else %}
246-
username: ""
247-
{% endif %}
243+
username: !ref "buf_board_meeting_committee_participants_create.steps[{{ i }}].json.data.username"
248244
org: !ref "buf_board_members.steps[{{ i }}].json.organization.name"
249-
{% if fake.pybool() %}
250-
job_title: ""
251-
{% else %}
252-
job_title: "{{ fake.job() }}"
253-
{% endif %}
245+
job_title: !ref "buf_board_meeting_committee_participants_create.steps[{{ i }}].json.data.job_title"
254246
response: "{{ fake.random_element(elements=('accepted', 'declined', 'maybe')) }}"
255247
scope: "all" # There are three scopes: single, all, this_and_following. However, "all" is the easiest to support.
256248
response_date: "{{ rsvp_response_date.isoformat() }}Z"

0 commit comments

Comments
 (0)