Skip to content

Instantly share code, notes, and snippets.

{
"QueryId": "6dec740a-28e0-4acd-b4de-57d1ba1d3f3a",
"ResultItems": [
{
"Id": "6dec740a-28e0-4acd-b4de-57d1ba1d3f3a-9cf05f14-ac31-4d00-8035-d391f92436a1",
"Type": "DOCUMENT",
"Format": "TEXT",
"AdditionalAttributes": [],
"DocumentId": "https://www.sf.gov/get-diagnostic-test-or-service",
"DocumentTitle": {
./models/campaign.py: [("agency", composite.APIPageChooser(page_type="sf.Agency"))],
./models/news.py: [("agency", composite.APIPageChooser(page_type="sf.Agency"))],
./models/news.py: [("topic", composite.APIPageChooser(page_type="sf.Topic"))],
./models/agency.py: composite.APIPageChooser(
./models/agency.py: [("agency", composite.APIPageChooser(page_type="sf.Agency"))],
./models/agency.py: [("topic", composite.APIPageChooser(page_type="sf.Topic"))],
./models/resource_collection.py: [("agency", composite.APIPageChooser(page_type="sf.Agency"))],
./models/resource_collection.py: [("topic", composite.APIPageChooser(page_type="sf.Topic"))],
./models/meeting.py: composite.APIPageChooser(
./models/meeting.py: [("agency", composite.APIPageChooser(page_type="sf.Agency"))],
# Set this environment variable using the Circle CI admin
# TOWER_OAUTH_TOKEN="<access token value>"
version: 2.1
jobs:
deploy_to_aws:
docker:
- image: continuumio/miniconda3
steps:
- run:
wget https://sfelections.org 2>&1
--2024-06-03 17:20:52-- https://sfelections.org/
Resolving sfelections.org (sfelections.org)... 104.19.186.94, 104.19.187.94, 2606:4700::6813:bb5e, ...
Connecting to sfelections.org (sfelections.org)|104.19.186.94|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 218 [text/html]
Saving to: ‘index.html.1’
index.html.1 100%[====================================================================================================================================>] 218 --.-KB/s in 0s
The production AWS environment has SES setup for api.sf.gov. The staging server will have permission for api.dev.sf.gov can be setup manually(or grab Mikela)
From the platform_base playbook we will need to add this permission to the instance_profile IAM role.
https://docs.aws.amazon.com/ses/latest/dg/control-user-access.html#iam-and-ses-examples-access-specific-ses-api-version
It looks like the current iam_instance_profile is pointing at an s3_write_profile
https://github.com/SFDigitalServices/ansible-platform/blob/main/platform_deploy.yaml#L39
Which is created here
https://github.com/SFDigitalServices/ansible-platform/blob/main/roles/s3_public/tasks/main.yaml#L36
@sfgov-mikela
sfgov-mikela / gist:0c8d4e36fc4509ea5e39ebebaaf0a01d
Created March 19, 2024 23:56
Pastes trying to test out the formio api endpoint
]As far as I can tell any customConditionals and conditionals are used as part of validation on the API
Original Valid Ab1114 submission
{"data":{"projectAddressDataItems":"[{\"id\":\"156270\",\"address\":\"1 SOUTH VAN NESS AV\",\"address_number\":\"1\",\"street_name\":\"SOUTH VAN NESS\",\"street_type\":\"AV\",\"unit_number\":\"\",\"block\":\"3506\",\"lot\":\"001\",\"parcel_number\":\"3506001\"}]","projectAddressLookupMethod":"lookup_by_address","projectAddressLookupFunctions":"","projectAddress":"1 SOUTH VAN NESS AV","projectAddressNumber":"1","projectAddressNumberSuffix":"","projectAddressStreetName":"SOUTH VAN NESS","projectAddressStreetType":"AV","projectAddressUnitNumber":"","projectAddressBlock":"3506","projectAddressLot":"001","projectAddressId":"156270","iAttestThatIMeetTheRequirementsToApplyForAPermitAndThatMyApplicationIncludesAllRequiredMaterialsAndDocumentation":true,"permitType":"Building Permit","resubmittal":"N","additionalhousingunits":"N","applicantFirstName":"gfsdfg","applicantLastName":"