-
Notifications
You must be signed in to change notification settings - Fork 60
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
Ready: Add Faculty Profile Builder #485
Open
goldpbear
wants to merge
15
commits into
uwdub:master
Choose a base branch
from
goldpbear:people
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
- add a dependency on google-api-python-client
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.
Ready for review
Add an
invoke
task for scraping faculty bios generated via our google form. The task will pull data from the google spreadsheet linked to the form, and build Markdown files with the information based on the existing faculty template. New templates will be output to_people/faculty/
. The task will also pull down profile images uploaded via the form and save them in the same directory.The task expects a Google API service account credentials file to be found at
secrets/google-api-credentials.json
.Usage (from the root of the project):
This task will only access rows of the google spreadsheet after the
last_accessed_row
stored in a new file,_remote_data_sequences.yml
. After processing new spreadsheet rows, the task will update the value oflast_accessed_row
.Also add an
invoke
task for running face detection and cropping on uploaded faculty profile images.The task expects AWS credentials to be found at
secrets/aws-config
.Usage (from the root of the project):
TODO
usegoogle-api-python-client
for interacting with Google Drive; otherwise, it seems that all uploaded faculty images need to be given a shareable link manuallyimage face detection via AWS Rekognitionhandling of existing faculty info (from oldpeople
branch)UPDATE: we'll discard all old informationmanaging repeated uses of this script (do we rebuild all templates? Only those that are new or have changed? etc.)UPDATE: let's keep track of the last accessed row in the source spreadsheet (perhaps in a modified_compile_calendar_sequences.yml
file). Repeated uses of the faculty profile builder script will only touch rows beyond the last used index. Modifications to existing templates should be made directly in template files themselves, not in the spreadsheet.*
update tests