Skip to content

chore: extract logic to ar model for formatted guest name list - #71

Merged
RichardNeat merged 1 commit into
mainfrom
chore/extract-get-ar-guest-names-list
Jul 31, 2026
Merged

chore: extract logic to ar model for formatted guest name list#71
RichardNeat merged 1 commit into
mainfrom
chore/extract-get-ar-guest-names-list

Conversation

@RichardNeat

Copy link
Copy Markdown
Contributor

What

We had some repeated code in a few places to get a list of formatted guest names, comma separated with "and" where needed.

e.g.

  • "Jane Doe"
  • "Jane Doe and John Doe"
  • "Jane Doe, John Doe and John Smith"

This pr extracts the logic into a single method on the MvAccommodationRequest model for reuse.

Ticket link

https://mhclgdigital.atlassian.net/browse/HFURB-XXX

Checklist

  • I double-checked that ACs on the ticket are met by this code update
  • I have added tests to new code and updated existing tests where needed
  • I have added testing instructions to the ticket
  • I have added type hints to my new methods

Additional notes

Screenshots

@tim-s-ccs tim-s-ccs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@RichardNeat
RichardNeat added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit d2edd57 Jul 31, 2026
12 checks passed
@RichardNeat
RichardNeat deleted the chore/extract-get-ar-guest-names-list branch July 31, 2026 12:50
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