Skip to content

Feat: Location or Approach field for Areas (will have separate FE PR)#448

Merged
vnugent merged 4 commits intoOpenBeta:developfrom
mikeschen:area-location
Feb 13, 2025
Merged

Feat: Location or Approach field for Areas (will have separate FE PR)#448
vnugent merged 4 commits intoOpenBeta:developfrom
mikeschen:area-location

Conversation

@mikeschen
Copy link
Copy Markdown
Contributor


name: Pull request
about: Create a pull request
title: Location or Approach field for Areas #1051
labels: feature
assignees: @mikeschen


What type of PR is this?(check all applicable)

  • refactor
  • feature
  • bug fix
  • documentation
  • optimization
  • other

Description

Adds ability for the backend to have a location for areas. We have description, but no way to enter a location.
To Test:

query Example1 {
  areas(filter: {area_name: {match: "Pencil Thin"}}) {
    uuid
    area_name
    content {
      description
      areaLocation
    }
  }
}
  • Make mutation with UUID from query
mutation {
  updateArea(input: {
    uuid: "8caa09a1-fe90-523f-b99e-cf6cba39bdcc",
    areaLocation: "This is my New GPS Coordinates or Description",
    description: "I will Updated description too"
  }) {
    area_name
    content {
      areaLocation
      description
    }
  }
}
  • Check on changes:
query Example1 {
  areas(filter: {area_name: {match: "Pencil Thin"}}) {
    uuid
    area_name
    content {
      description
      areaLocation
    }
  }
}

Related Issues

Issue #
1051

What this PR achieves

Adds ability for the backend to have a location for areas.

Screenshots, recordings

Notes

@mikeschen mikeschen changed the title Location or Approach field for Areas Feat: Location or Approach field for Areas (will have separate FE PR) Feb 12, 2025
@mikeschen mikeschen added the enhancement New feature or request label Feb 12, 2025
@vnugent vnugent merged commit 97036cc into OpenBeta:develop Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants