Skip to content

Make GetPosition query use the entire pimary key #188

@TheJolman

Description

@TheJolman

This was a copilot suggestion and it's super valid, putting it in it's own issue however. This will require

  • updating the query
  • running make sqlc to regenerate the database go queries
  • you'll then need to change the handler and service, and maybe even create a new type and mapper

If you create a new model, say GetPosition, it will be functionally identical to the existing DeletePosition model. Maybe something can be done to reduce code duplication here.

Also, this will change the handler from searching via a URL parameter to using the JSON body entirely for the get request.

Below is a screenshot from the Copilot suggestion:


Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - ADVANCEDExtensive research + significant amount of time/effort requiredapiRelating to the API onlyhigh prioHigh priority. Important or blocking bug/feature.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions