Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch availability data #868

Merged
merged 4 commits into from
Jul 23, 2018
Merged

Fetch availability data #868

merged 4 commits into from
Jul 23, 2018

Conversation

lyyder
Copy link
Contributor

@lyyder lyyder commented Jul 17, 2018

Adds availability data fetching for listing page on page load.


return Promise.all([
dispatch(showListing(listingId)),
dispatch(fetchTimeSlots(timeSlotsParams)),
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed IRL, I think this call should be included when flagged somehow in config.js

Copy link
Contributor

@Gnito Gnito left a comment

Choose a reason for hiding this comment

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

I think there's 2 things to be changed:

  • When buyr ends up to CheckoutPage, speculate and initiate calls might still throw an error related to time-slot being reserved (if that happens within few moments between redirecting to the checkout page and pressing the book button). That error needs some special handling.
  • Add some flag to config.js (some marketplaces need this, others don't)

@lyyder
Copy link
Contributor Author

lyyder commented Jul 23, 2018

Put time slots fetching behind a flag. I'll leave the error message handling along with a changelog entry to a future PR when the availability can be passed to the calendar components and this whole thing can be tied together.

@lyyder lyyder merged commit 0d14e44 into master Jul 23, 2018
@lyyder lyyder deleted the fetch-availability-data branch July 23, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants