Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Species: add species filter input back into Verify and Captures filters #1017

Open
gwynndp opened this issue Feb 2, 2023 · 0 comments
Open
Assignees
Labels
dependency: api Depends on a change to a Greenstand API dependency: db Requires a change to treetracker-database Hackathon February 2023 Hackathon Material tool: Species Relates to the Species management tool

Comments

@gwynndp
Copy link
Collaborator

gwynndp commented Feb 2, 2023

This is a temporary step before building out the full new Species Management tool.
The goal is to make use of the current species data by migrating it to a similar table in the new microservices and start building the infrastructure to identify species tags as being "owned" by a particular organization (similar to how Tags are currently implemented)

FYI:

  • unlike with tags, species_id is a field on the Capture table in the new microservice

To do on back-end:

  • create table for species (w/ owner_id field)

  • migrate the species information with the uuids as ids in the new table:
    -- add owner_id column and fill with the stakeholder_id of the capture that has been assigned that species (so that only the species applied to that org's captures are added with their owner_id)
    -- duplicate the species for each new owner_id that uses them

  • confirm there's an api query by /species/:id (with a uuid)

  • confirm there's an api query for /species that returns JSON for all the logged in org's species

  • confirm the raw-capture and capture queries in the Query Api include a join to the species table

To do on front-end:

  • add species dropdown back to Verify (raw-captures) and Capture page filters
  • populate the dropdown with just the species owned by the logged-in org

The future plans for Species Management can be found here:

@gwynndp gwynndp added tool: Species Relates to the Species management tool dependency: api Depends on a change to a Greenstand API dependency: db Requires a change to treetracker-database labels Feb 2, 2023
@nmcharlton nmcharlton added the Hackathon February 2023 Hackathon Material label Feb 23, 2023
@gwynndp gwynndp self-assigned this Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency: api Depends on a change to a Greenstand API dependency: db Requires a change to treetracker-database Hackathon February 2023 Hackathon Material tool: Species Relates to the Species management tool
Projects
Status: In Progress
Development

No branches or pull requests

2 participants