-
Notifications
You must be signed in to change notification settings - Fork 65
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
BE | Ask va api Fix Inquiry bug and create FacilitiesDataJob #19976
base: master
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
- get_facilties_mock_data.json is a list of PATSR approved health facilities - static_data.json is now up to data with the most recent addition from CRM API
- inquiry_details now handles `it's a general question` correctly
- Job will run every 24hours to cache the data
- search now will filter and allow only patsr approved facilities
101f98d
to
a36579c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Summary
This Pull Request introduces several key updates aimed at improving the efficiency, accuracy, and functionality of our application. The highlights include enhanced search filtering, automated caching of facilities data, bug fixes, and updates to mock and static data files.
🔍 Changes
1. Update
HealthFacilities#search
search
method now filters and only returns PATSR-approved facilities.2. Create
FacilitiesDataJob
FacilitiesDataJob
) to cache facilities data every 24 hours.3. Bug Fix: InquiryDetails Handling
InquiryDetails
to properly manage this scenario.4. Update Mock & Static Data
get_facilities_mock_data.json
static_data.json
📚 Notes for Reviewers
HealthFacilities#search
logic to ensure edge cases are handled correctly.FacilitiesDataJob
to confirm the 24-hour interval meets system requirements.🙏 Thank You
Thank you for reviewing this PR. Please provide any feedback or suggestions to further improve the functionality, performance, or maintainability of these changes.
Related issue(s)
Testing done
FacilitiesDataJob
successfully caches data every 24 hours.InquiryDetails
.What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria