pulibrary / lib_jobs

Enterprise Services batch processing tasks. Rails 7 Ruby 3.1.0
4 stars 0 forks source link

Create New Web Staff Report from Airtable Data #697

Closed kevinreiss closed 2 months ago

kevinreiss commented 5 months ago

Implementation Notes

Current Process (for reference) Airtable URL API docs for Library Staff Airtable Auth docs for Airtable (personal access tokens are ok for testing, we likely want to choose OAUTH for any processes that run on our servers. A known unique Identifier (net ID or employee ID) should be added to the airtable to ensure a reliable overlay.

Logging In to Airtable Backend

Visit https://airtable.com/login, select "Sign in with Single Sign On". Give your email with "@princeton.edu" the first time you login an access request will be sent to Jon to approve your access to the data.

kevinreiss commented 3 months ago

Requested that net ID and pu ID be added to airtable on 5/28.

kevinreiss commented 3 months ago

The net ID and pu ID values are now in Airtable.

kevinreiss commented 2 months ago

Right now the process is asking the automation to fill in a Captcha. Oauth seems really set-up to be used if you are using Airtable to provide a web application. Will pivot to seeing if we can use a personal access token with a service account to interact with airtable in an automated way. The airtable gem can possibly help us here.

sandbergja commented 2 months ago

Airtable's documentation says that the image links provided by the API may expire after 2 hours. They recommend downloading them. This does not affect the current work, since staff images will be managed in Drupal for now.