Skip to content

Conversation

@OrdiNeu
Copy link
Contributor

@OrdiNeu OrdiNeu commented Jan 27, 2026

Ticket(s)

Description

This allows users to search on datasets through filters with { "id": "dataset_id:<dataset_id>" }. This can be 'OR'd with pipes |, and respects user authorization.

To test

curl candig.docker.internal:5080/candig-api/v1/beacon/persons -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"meta": {"apiVersion": "v2.0.0"}, "query": {"requestedGranularity": "record", "filters": [{ "id": "dataset_id:SITE_PM2C~SYNTH_01" }] }}'

or on multiple datasets with

curl candig.docker.internal:5080/candig-api/v1/beacon/persons -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"meta": {"apiVersion": "v2.0.0"}, "query": {"requestedGranularity": "record", "filters": [{ "id": "dataset_id:SITE_PM2C~SYNTH_01|SITE_PM2C~SYNTH_02" }] }}'

Types of Change(s)

  • 🪲 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)

If breaking, Which other services does it affect?

  • authx
  • data-portal
  • ingest
  • clinical ETL
  • federation
  • htsget-app
  • katsu
  • CanDIG OPA
  • Query

Has it been tested for:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • Prettier linter doesn't return errors
  • Locally tested
    • using stable release
    • using develop branches
  • Dev server tested
  • Production tested when merging into stable/production branch

@OrdiNeu OrdiNeu requested a review from SonQBChau January 27, 2026 19:19
@OrdiNeu OrdiNeu changed the title Feature/datasets search DIG-2225: Add back dataset filtering Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants