Skip to content

feat: add multi select function to experiment area filter - #1513

Merged
ChongJiaChua merged 14 commits into
developfrom
1560_Experiment_Area_Multi_Select_Filter
Jun 24, 2026
Merged

feat: add multi select function to experiment area filter#1513
ChongJiaChua merged 14 commits into
developfrom
1560_Experiment_Area_Multi_Select_Filter

Conversation

@ChongJiaChua

@ChongJiaChua ChongJiaChua commented May 13, 2026

Copy link
Copy Markdown
Contributor

Closes UserOfficeProject/issue-tracker/issues/1560

Description

This PR introduces the ability to select and filter by multiple instruments to allow more than one instrument's proposals to be returned at any one time.

Motivation and Context

The change was proposed by a instrument scientist who wanted to view and manage proposals across multiple instruments at the same time. Previously, the filter only allowed selecting a single instrument which limited efficiency.

How Has This Been Tested

Added e2e tests

Fixes

Changes

Frontend: Updated the InstrumentFilter component to support multiple intrument selections and added helper functions (parseInstrumentQuery, getInstrumentFilterIds) to manage the multi select states.
GraphQL API: Replaced the singular instrumentId field with a new instrumentIds array field to support multiple values. (instrumentId marked as deprecated to avoid breaking external APIs )
Backend: Updated ProposalDataSource and StfcProposalDataSource to handle array-based filtering.

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@ChongJiaChua
ChongJiaChua requested a review from a team as a code owner May 13, 2026 14:43
@ChongJiaChua
ChongJiaChua requested review from ACLay and removed request for a team May 13, 2026 14:43
@ChongJiaChua ChongJiaChua changed the title feat: Add multi select function to experiment area filter feat: add multi select function to experiment area filter May 13, 2026
Comment thread apps/backend/src/datasources/stfc/StfcProposalDataSource.ts Outdated
@ChongJiaChua
ChongJiaChua enabled auto-merge June 24, 2026 16:25
@ChongJiaChua
ChongJiaChua merged commit 60ac891 into develop Jun 24, 2026
49 of 51 checks passed
@ChongJiaChua
ChongJiaChua deleted the 1560_Experiment_Area_Multi_Select_Filter branch June 24, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a multiple select filter to the Experiment Area filters in proposal view

3 participants