Skip to content

Conversation

@RafaelKayumov
Copy link
Contributor

@RafaelKayumov RafaelKayumov commented Oct 24, 2025

WOOMOB-1532

Description

  • Implements attendance status remote update for a booking
  • Makes dateCreated and dateModified optional in Yosemite.Booking to ignore nil values returned in PUT method.
  • Runs BookingRemote.updateBooking method to update booking attendance status remotely.
  • Reverts old attendance status on update error.
  • Hides "Attendance" section if a booking is cancelled. Updates the section visibility dynamically.

Testing steps

  • Use CIAB site with existing bookings
  • Find a non-cancelled booking and open Booking details
  • Scroll down to "Attendance" section and tap on status row to open selector.
  • Select a new attendance status.
  • Make sure the new status is applied. Pull down to refresh the booking details and make sure the new attendance status remained.
  • Test the error rollback. Turn off the internet or simulate the response error for the /wc-bookings/v2/bookings/{booking-id}&_method=put in Proxyman. Make sure the status is rolled back shortly after switching.
  • Test the "Attendance" section hiding for a cancelled booking. Find an existing cancelled booking or cancel one with admin. Open that booking details and make sure the "attendance" section is not displayed.

Demo

Booking-status-update.mov

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@RafaelKayumov RafaelKayumov added this to the 23.6 milestone Oct 24, 2025
@RafaelKayumov RafaelKayumov added the type: task An internally driven task. label Oct 24, 2025
@RafaelKayumov RafaelKayumov changed the title Woomob 1553 update attendance status remotely [Bookings] Update attendance status remotely Oct 24, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Oct 24, 2025

App Icon📲 You can test the changes from this Pull Request in WooCommerce iOS Prototype by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS Prototype
Build Numberpr16280-908eb5b
Version23.5
Bundle IDcom.automattic.alpha.woocommerce
Commit908eb5b
Installation URL1vain2hro16i8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@RafaelKayumov RafaelKayumov marked this pull request as ready for review October 27, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants