Enhance slot caching and improve appointment availability logic#116
Merged
Conversation
…related services Co-authored-by: Copilot <copilot@github.com>
…ility resolution Co-authored-by: Copilot <copilot@github.com>
…ed availability accuracy
… in slot management
…vices for improved validation and consistency Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces significant improvements to the caching and persistence mechanisms for reference data and booking workflow state in the booking desk application. The changes focus on optimizing data retrieval with versioned in-memory caching, modernizing store persistence, and ensuring cache invalidation is handled consistently after mutations. Additionally, the legacy booking store persistence is retired in favor of a more robust workflow store approach.
Reference Data Caching and API Improvements:
cacheVersion.api.jsmodule to fetch and track cache versions, ensuring that stale data is not used and reducing unnecessary API calls. (booking_desk/src/api/cacheVersion.api.js[1]booking_desk/src/api/services.api.js[2] [3] [4]booking_desk/src/api/provider.api.js[5] [6] [7]booking_desk/src/api/provider.api.js[1]booking_desk/src/api/services.api.js[2]booking_desk/src/services/services.service.js[3]Booking Workflow Store Enhancements:
booking_desk/src/stores/bookingWorkflow.store.js[1] [2] [3] [4] [5] [6]booking_desk/src/composables/booking/useBookingWorkflow.js[7]booking_desk/src/composables/booking/guest-assignment/useGuestAssignment.js[8]booking_desk/src/App.vue[1]booking_desk/src/stores/bookingStore.js[2] [3]Cache Invalidation Improvements:
booking_desk/src/stores/bookingWorkflow.store.js[1] [2]booking_desk/src/stores/appointmentDetails.store.js[3] [4]API Parameter Handling:
daysAheadparameter in availability APIs by sanitizing and validating input, preventing invalid requests and improving API robustness. (booking_desk/src/api/availability.api.js[1] [2]These changes collectively improve application performance, reliability, and maintainability, especially around booking workflows and reference data freshness.