Skip to content

fix: on xpress management page only load calls filter when there are instrument(s) in the technique(s)#1397

Merged
mutambaraf merged 2 commits intodevelopfrom
1536-fix-xpress-page-call-filter
Mar 5, 2026
Merged

fix: on xpress management page only load calls filter when there are instrument(s) in the technique(s)#1397
mutambaraf merged 2 commits intodevelopfrom
1536-fix-xpress-page-call-filter

Conversation

@mutambaraf
Copy link
Contributor

@mutambaraf mutambaraf commented Mar 4, 2026

Description

This PR fixes an issue where call filters were being loaded on the Xpress management page even when no instruments were associated with the techniques.

Motivation and Context

We only want to show calls when the is an associated instruments

Changes

  • The condition for loading calls has been updated to check for the existence of instruments associated with techniques. Now, calls will only load when there is at least one instrument in the technique(s). This change is reflected in the file apps/frontend/src/components/techniqueProposal/TechniqueProposalTable.tsx.

How Has This Been Tested?

Fixes Jira Issue

Closes: UserOfficeProject/issue-tracker#1536

Depends On

Tests included/Docs Updated?

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

@mutambaraf mutambaraf requested review from a team, bolmsten and ellen-wright and removed request for a team March 4, 2026 14:12
@mutambaraf mutambaraf marked this pull request as ready for review March 4, 2026 14:12
@mutambaraf mutambaraf requested a review from a team as a code owner March 4, 2026 14:12
@mutambaraf mutambaraf requested review from simonfernandes and removed request for a team March 4, 2026 14:12
@mutambaraf mutambaraf changed the title fix: on xpress management page only load calls when there are instrument(s) in the technique(s) fix: on xpress management page only load calls filter when there are instrument(s) in the technique(s) Mar 4, 2026
@mutambaraf mutambaraf requested review from yoganandaness and removed request for bolmsten and simonfernandes March 4, 2026 15:45
Copy link
Contributor

@yoganandaness yoganandaness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am approving this.

But it think, it is best to add the condition on the backend rather than frontend. Frontend can be easily hijacked.

@mutambaraf mutambaraf merged commit 6636707 into develop Mar 5, 2026
22 checks passed
@mutambaraf mutambaraf deleted the 1536-fix-xpress-page-call-filter branch March 5, 2026 10:44
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.

fix xpress page call filter shows all call in technique has no instrument assigned

3 participants