TODO
The (hopefully) easiest way to get working is with VS Code and devcontainers.
To start, install:
- Docker (for Mac or Windows), or using your Linux distribution's package manager
- VS Code
- The VS Code Remote Containers extension
Next, in VS Code, open the Command Palette (Ctrl+Shift+P
) and run Remote-Containers: Clone Repository in Container Volume...
. Clone https://github.com/bedstuystrong/automation_prime
, or fork that repo first and clone your fork.
Once it clones the repo, it will build your development environment in a container for you, and you'll be ready to go.
You can open a terminal and test that your environment is set up correctly:
$ python -m automation.scripts.local -h
Without devcontainers, you will need a recent version of Python 3. Run ./create_venv.sh
to create a virtualenv and install automation_prime
's dependencies, then activate that environment (source venv/bin/activate
) and run pip install -e .
.
- To run tests:
pytest automation/
from the root of your checkout
This section covers steps required for setting up the environment for the automation.
- Duplicate production base, including records and excluding comments
- Rename base to "STAGING"
- Add automation bot user to staging base (with editor permissions)
- Get base ID: go to airtable.com/api, select the staging base, and copy the base ID into your
config.json
- All tables must have a new field
_meta_last_seen_status
(single line text type) - NOTE that as opposed to the vintage automation, all records with
{Status} = BLANK()
are ignored - Members table:
- Add a new status choice:
New
- Update form to include status field with
New
as the only option
- Add a new status choice: