-
Notifications
You must be signed in to change notification settings - Fork 283
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
FEATURE REQ: Auto-subscribe to Healthcare Authorities #425
Comments
@Patrick-Erichsen was looking into this, I think |
@penrods Is there a proposed schema for what the HCA YAML file might look like? The current one does not include the GPS bounding box required to complete this issue. |
@penrods @tstirrat any updates on a proposed schema for the GPS bounding box of a Healthcare Authority? I'm planning on implementing an The current mock YAML here has this schema: - Test Authority:
- {url: "https://raw.githack.com/tripleblindmarket/safe-places/develop/examples/safe-paths.json"} Other than that I think I've made some good progress. I pulled out some logic in Once I have that |
Do you think we should just generate Geohashes on both sides? |
@tremblerz, this is really a bounding box so keeping it in distinct lat/lon is useful. Pseudo-code is:
I'm proposing the following YAML format: Authorities:
- Mairie de PAP/MSSP:
- {url: "https://vault.tripleblind.app/safe_path/5673742378205184/"}
- bounds: { "ne": { "lat": 42.42025904738132, "lon": -70.93670068664551 }, "sw": { "lat":42.29988330010084, "lon": -71.2516993133545} } I don't love the length of the "bounds" line, but that is easily copy/pasted, as opposed to: Authorities:
- Mairie de PAP/MSSP:
- {url: "https://vault.tripleblind.app/safe_path/5673742378205184/"}
- bounds:
ne: { "lat": 42.42025904738132, "lon": -70.93670068664551 }
sw: { "lat":42.29988330010084, "lon": -71.2516993133545} Which has the same structure, just formatted differently visually. |
I think that the bounds are essentially just a single piece of info as well, so it makes sense to keep it as a single field. It would be weird to break out the URL above into something like protocol: ...
hostname: ...
resource: ... |
I noticed that in our async storage for the
I'd like to propose we use the same naming convention for the bounding box schema as well. |
Fine with me, consistency is a good thing -- although I prefer the shorter version and which I'd taken the time to convert it back in the day of a month ago. :) |
So for the second bullet:
The way I was going to implement that was through an However, the We call I can see this being a problem in other places in the codebase. What are people's thoughts around pulling in the Update |
So I have a couple of UI/UX questions for point 2 of this ticket:
|
@kenpugsley is working on a refactor of intersections code in #529 so check with him on that. re UX, I'd say for now, an in app notify. @tremblerz what do you think? |
I think you should continue to poll even if the user has their first authority. Here are several use cases:
Hitting this once a day should be fine. I've talked to the raw.githack.com team and they are prepared for this traffic. |
Okay, so I can update the 12-hour check to trigger an in-app notify anytime that the user is in the bounds of an HCA they haven't subscribed to yet. I think the best way to do that is to add another task to BackgroundTaskServices. I don't believe we can schedule more than one Will a 12-hour frequency be an issue for the raw.githack folks? @penrods to your point about there being overlapping jurisdictions, I think it makes sense to just direct the user to the ChooseProvider screen instead of "auto-subscribing". If there were two or more HCA's in the user's current region, there isn't a good way to let them choose their subscription in an alert. |
I think githack can support once every 12 hours for quite a while. If it gets to be too much, we can easily add logic to save state and only do it every-other time. As for the Choose Provider screen, I think just bringing it up from the Notification would be fine. I do believe we will need to implement a default filter by region very quickly on the Add button. Picking from 2 isn't bad, but picking from dozens will be confusing. I think a simple element like a checkbox next to the Add button with "[ X ] Only show Healthcare Authorities in my area" would do the trick. That work can definitely be done incrementally -- the first pass could just create an alert and bring up that screen. |
This is waiting on some UX updates. We're tracking it in Jira https://pathcheck.atlassian.net/browse/SAF-40 |
Currently the user must manually subscribe to a Healthcare Authority. This will grow to a point where it is a difficult UI to work with. I propose the following:
** This should only happen until they have the first authority to avoid overloading the server with millions of requests **
The list which they are checked against should be a "production" URL from http://raw.githack.com/. This will provide decent buffering of the Github server infrastructure, but it is VERY IMPORTANT we purge the cache anytime a new Healthcare Authority is added to the YAML.
This is the production (cached for a year) CDN URL:
https://rawcdn.githack.com/tripleblindmarket/safe-places/940edc081b8a4771deca806ed570eda907b5a261/healthcare-authorities.yaml
The text was updated successfully, but these errors were encountered: