Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Import official_volunteering_url from "Official volunteering opportunities" on Counties #218

Closed
alexmv opened this issue Apr 9, 2021 · 4 comments

Comments

@alexmv
Copy link
Member

alexmv commented Apr 9, 2021

County data aligns well between staging and Airtable, except the "Official volunteering opportunities" column, which is empty in VIAL. We should import that; we have the official_volunteering_url for it.

@alexmv
Copy link
Member Author

alexmv commented Apr 9, 2021

I don't see a current import script for counties? I assume all of the metadata must have gotten in somehow, though.

@simonw
Copy link
Collaborator

simonw commented Apr 9, 2021

Good catch. County imports are a little odd at the moment - it's an admin tool, available only to is_superuser accounts, at this address: https://vial-staging.calltheshots.us/admin/tools/

Administrative_tools__super-user_only_

It's manual because you have to go and generate a limited-time-only GitHub JSON export URL and paste it in there.

If we're going to switch to editing counties in VIAL directly there's no need to automate this. If we're going to stick with Airtable for that we should set this up as an automated task.

@simonw
Copy link
Collaborator

simonw commented Apr 9, 2021

Good news: it's in our County model already:

official_volunteering_url = CharTextField(null=True, blank=True)

@simonw
Copy link
Collaborator

simonw commented Apr 9, 2021

That fixed it. I've run in staging:

https://vial-staging.calltheshots.us/admin/core/county/1/change/

Will deploy to and run in production.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants