-
Notifications
You must be signed in to change notification settings - Fork 1
Review mechanism for newly created locations #610
Comments
In addition to the above changes, we also need to make sure that locations that are "pending review" are not included in our three different exports: to vaccinateca.com, to vaccinatethestates.com (via Mapbox) and to our new API. The vaccinatethestates.com, Mapbox and new API cases are covered by this filtering function: Lines 330 to 344 in 5aaf47f
The vaccinateca.com case is covered by this code: vial/vaccinate/core/exporter/__init__.py Lines 126 to 136 in 5aaf47f
We'll need to add unit tests to check this too - existing tests for those are in https://github.com/CAVaccineInventory/vial/blob/5aaf47fa4a12660660df65f545c88611adf18054/vaccinate/api/test_export_mapbox.py and https://github.com/CAVaccineInventory/vial/blob/5aaf47fa4a12660660df65f545c88611adf18054/vaccinate/core/test_api_exporter.py |
Manually created locations happen exclusively through the VIAL admin interface - we already have a custom Lines 580 to 583 in 5aaf47f
|
oh, also: when we create the behavior for the WB Trainee role, we should also change the behavior for the Call Trainee role to only flag reports that have a "Report source" of "Caller app". |
Whats the best way to do the migration for backfilling |
Do I need to worry about airtable users? or have those been migrated to auth0? 🤔 |
|
Don't need to worry about airtable users! And yes, I mean newly-created reports. |
Set it to |
And: confirmed with WB captains today that we actually do want to send locations that are pending QA to the website and other data feeds! (We want to review them for accuracy and phrasing and formatting and so on, but we don't expect them to be wrong, just maybe not in line with our standard process. So we don't want to delay showing them!) |
@rhkeeler Ok cool -- then do we need send the |
It seems like reports and locations are not get flagged with TLDR: Less than 2% of reports are flagged correctly, and no locations. |
For reports and locations the code is not working because it is looking for a Lines 598 to 603 in 0ac87bd
|
should we reflect this auth0 role in vial? the benefit is that this information would live on the user model and be easy to filter in vial if needed. or should I change the code to lookup the auth0 role on the reporter model (reporter.auth0_role_names)? There's also a bug which I need to fix -- auth0 roles may not be populating on reporters correctly #633 |
I think we should reflect all of the auth0 roles as VIAL groups - with hindsight that would have been a better initial design for how this all works. |
I'd love to be confident that the reporter roles are correctly updated when a user gets new roles in auth0 and then makes a request to a VIAL API with a JWT! |
@ugotsoul can you close this when your fix for roles not updating gets deployed? |
Split from #609:
The text was updated successfully, but these errors were encountered: