[Bookings] Update the path of the resources endpoint #14771
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes WOOMOB-1526
Description
This PR updates the path of the bookings resources endpoint to align with the last update woocommerce/woocommerce-bookings#4069.
I kept the table name
BookingResource
, if I knew about the plan to change the endpoint path I would have opted for a more specific name in the table, but now I prefer to avoid another DB migration, let me know what you think about this.The PR also includes two minor improvements:
customerId
is not nullable anymore.booking#orderId
is0L
Steps to reproduce
wc_bookings_version
andwc_bookings_db_version
options from thewp_options
table.Testing information
The tests that have been performed
The above.
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.