digidem / digidem/comapeo-core

Make it easier to look up an observation's tracks

Open
#976 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dx
Dominant language
JavaScript
Stars
24
Forks
6
Avg merge
1d 40m
Merged PRs (30d)
8

Description

The frontend needs to look up an observation's tracks. For example, you're looking at an observation and you want to see all of its associated tracks.

Currently, it does this inefficiently, by looping over all tracks to find those who link back to the given observation. (See findAssociatedTrack.ts.)

It would be nice for Core to expose a way to do this more efficiently.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/frontend/screens/Observation/findAssociatedTrack.ts to understand the current scan of all tracks, then inspect the Core interfaces used by that frontend code. Done means Core exposes an efficient way to retrieve all tracks associated with an observation and the frontend can use it without scanning every track.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.