agrc / electrofishing

The data submission application for recording electrofishing surveys. Built for DWR.
MIT License
0 stars 0 forks source link

Electrofishing

Application for recording electrofishing surveys. Built for DWR.

Staging: https://electrofishing.dev.utah.gov

Production: https://electrofishing.ugrc.utah.gov

Database

Installation

Deployment

  1. Publish maps/MapService as Electrofishing/MapService
    1. This map and "Reference" below are pointed at the staging database and will be mapped to production when published to the prod server.
    2. max number of records returned: 5000
    3. feature access: create, query and update
    4. dynamic workspace referencing the sde database ID: ElectrofishingQuery
  2. Publish maps/Reference as Electrofishing/Reference
  3. Update scripts/Scripts/settings/__init__.py.
  4. Create scripts/Scripts/settings/secrets.py.
  5. Publish all tools in scripts/Toolbox.tbx as Electrofishing/Toolbox Requires ArcGIS Server Advanced
    1. GetSegmentFromCoords
      • points: scripts\ToolData\TestData.gdb\StartEnd_fork
    2. GetSegmentFromStartDistDirt
      • point: scripts\ToolData\TestData.gdb\Start1
      • distance: 1
      • direction: up
    3. NewCollectionEvent
      • Test Input: copy paste contents of scripts/Scripts/TestData/NewCollectionEventData.json (minified)
      • Synchronous
      • Copy scripts/Scripts/settings & dijkstras.py to <ArcGISServerDirectory>directories\arcgissystem\arcgisinput\Electrofishing\Toolbox.GPServer\extracted\v101\scripts.
  6. Releases to Firebase are deployed via GitHub Actions.

Cutting a new release

  1. Merge release PR
  2. Republish Map and/or GP services, if needed (see steps above).

Development

npm start and open http://localhost:5173/

Storybook

npm run storybook (requires npm start to already be running)