Skip to content

int-member-bookings#32

Open
sanaf26 wants to merge 2 commits into
mainfrom
int-member-bookings
Open

int-member-bookings#32
sanaf26 wants to merge 2 commits into
mainfrom
int-member-bookings

Conversation

@sanaf26
Copy link
Copy Markdown
Collaborator

@sanaf26 sanaf26 commented Apr 9, 2026

Created int_member_bookings to join bookings and members at booking grain.

Ticket here - #21

What I changed
Joined bookings (source) to stg_members

Exposed member attributes alongside each booking:

  • name fields
  • email and missing email flag
  • membership status
  • home club
  • Preserved booking grain (one row per booking)

Copy link
Copy Markdown
Collaborator

@harjeetkalsi harjeetkalsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but you need an int_member_booking.yml as you are missing any tests currently

@sanaf26 sanaf26 requested a review from harjeetkalsi April 9, 2026 13:36
@sanaf26
Copy link
Copy Markdown
Collaborator Author

sanaf26 commented Apr 9, 2026

added tests

@EmilyYoung26 EmilyYoung26 self-requested a review April 9, 2026 13:46

- name: first_name
description: "Member first name."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null test needed


- name: last_name
description: "Member last name."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null tests needed

from bookings
left join members
on bookings.member_id = members.member_id

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need a unit test in the int_member_bookings.yml to test this logic


- name: missing_email_flag
description: "True when the member email is missing or blank."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null tests needed


- name: date_of_birth
description: "Member date of birth."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null tests needed


- name: membership_status
description: "Standardised membership status from stg_members."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null tests needed


- name: join_date
description: "Date the member joined."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null tests needed

description: "Standardised membership status from stg_members."

- name: home_club
description: "Member home club." No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not null tests needed and maybe accepted values test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants