Skip to content

Streamline filter field names for captures / source_images #1128

@coderabbitai

Description

@coderabbitai

Background

This is a follow-up task from PR #1127 to streamline filter field naming conventions on the backend side.

TODO Items

The following filter field names in ui/src/utils/useFilters.ts could be streamlined on the backend:

Capture Set Filters

Currently, there are three different field names for capture set filtering:

  • collection (for viewing occurrences by capture set)
  • source_image_collection (for viewing jobs by capture set)
  • collections (for viewing captures by capture set)

Proposed: Standardize all three to use capture_set_id

Source Image Filters

Currently, there are two different field names for source image filtering:

  • detections__source_image (for viewing Occurrences by capture)
  • source_image_single (for viewing Jobs by capture)

Proposed: Standardize both to use capture_id

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions