Skip to content

Add Ruby example for creating a ground scouting feature set#8

Open
denisahearn wants to merge 2 commits intomainfrom
create-ground-scouting-feature-set
Open

Add Ruby example for creating a ground scouting feature set#8
denisahearn wants to merge 2 commits intomainfrom
create-ground-scouting-feature-set

Conversation

@denisahearn
Copy link
Contributor

Why?

I want to demonstrate how to use the FieldAgent GraphQL API to create a valid ground scouting feature set

What?

  • Adds api/create_ground_scouting_feature_set.rb, which shows how to create a ground scouting feature set

Screenshot(s)

JIRA Link

No story

Code Review Strategy

QA Strategy

  • Merge latest main

  • Run this command on your local machine and verify on dev that images were uploaded to S3 and attached to the survey you specified:

FIELDAGENT_ACCESS_TOKEN=<Your API access token> \
FIELDAGENT_SERVER=https://apistaging.sentera.com \
SURVEY_SENTERA_ID=<Your survey Sentera ID> \
NUM_LOCATIONS=20 \
NUM_ATTACHMENTS_PER_FEATURE=2 \
WITH_ATTACHMENTS=all \
ATTACHMENTS_PATH="../test_files" \
ATTACHMENTS_EXT="*.*" \
WITH_NOTES=all \
ruby create_ground_scouting_feature_set.rb

with_attachment_name_keys: with_attachment_name_keys,
with_notes: with_notes
}
feature_set_name = "Ground Scouting Feature Set - #{details}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denisahearn
This line doesn't use the environment variable. Is that on purpose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants