Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Individual page > Cooccurrence table #619

@TanyaStere42

Description

@TanyaStere42

Context

Users need to know many social aspects of the animals they study. The most primitive is the animals that have been seen at the same time and place together. This information can be generated from sighting information. This information is most useful for defined individuals since it's for social analysis, so will be put on the individual page rather than in the animal tab.

User Story

As a researcher on an individual's overview page, I can see the a table that displays a list of the individuals that have been seen together.

Table name: Seen with
Table columns:

  • Individual (link): FirstName of the individual, link goes to individual overview page
  • Times seen: count of shared sightings
  • Earliest (link): First chronological shared sighting. Links to sighting overview page
  • Most recent (link) Last chronologically shared sighting. Links to sighting overview page

Technical notes

  • endpoint exists in Houston: get_cooccurring_individuals
  • table exists on page, but needs to be connected to endpoint: src/pages/individual/Individual.jsx#line331
  • fake data needs to be removed after the fact: src/pages/individual/fakeCoocs.js

QA

  • table and and column headers are correct (see above)
  • table links work correctly
  • table displays accurate number of individuals
  • each individual is an accurate count
    • remove an individual from a shared sighting and verify count updates
    • add an individual to a shared sighting and verify count updates
  • earliest sighting is accurate
    • create an earlier sighting; verify it updates correctly in table
    • delete the earliest sighting; verify it updates in table
  • most recent sighting is accurate
    • create a more recent sighting; verify it updates in table
    • delete the most recent sighting; verify it updates in table
  • verify fakeCoocs.js is removed (see files changed in PR)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions