Skip to content

Conversation

@doneill
Copy link
Owner

@doneill doneill commented Aug 18, 2025

Proposed Changes

  • Add PatrolTracks function
  • Add PatrolByID function
    • Add respective type structs
  • Add new patrol --tracks flag
    • Flag take patrol id as string value and passes to PatrolByID function
    • Generates geojson file using serial number in naming
  • Update tests

Expectation:
Usage:

  • List patrols: erpatrols --days 7
  • Get patrol tracks: er patrols --track {patrol id}

Tests Added:

  • TestPatrolByID - Tests patrol by ID functionality with:
    • Successful response with complete patrol data
    • Active patrol without end time/location
    • Error handling for non-existent patrols
  • TestPatrolTracks - Tests patrol tracks functionality with:
    • Successful tracks response with GeoJSON LineString
    • Empty tracks response
    • Error handling for invalid subjects

@doneill doneill self-assigned this Aug 18, 2025
@doneill doneill merged commit dd7d2ec into develop Aug 18, 2025
1 check passed
@doneill doneill deleted the task/jdo-44-generate-patrol-tracks branch August 18, 2025 07:16
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