Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Participants::Query filtering on training_status #2005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ethax-ross
Copy link
Collaborator

@ethax-ross ethax-ross commented Nov 22, 2024

Jira-3803

Context

When filtering participants on training_status we were still returning all applications in the resulting relationship of each User. To be consistent with ECF we want to only return the applications that match the training_status we are filtering to.

Changes proposed in this pull request

  • Fix Participants::Query filtering on training_status

Fix filtering by training_status to only return matching applications in the resulting participants.

Add test to verify that filtering by from_participant_id behaves in the same way; we only want participant id changes that match the filter to be in the results.

@ethax-ross ethax-ross marked this pull request as ready for review November 22, 2024 15:40
@ethax-ross ethax-ross requested a review from a team as a code owner November 22, 2024 15:40
Copy link

When filtering participants on `training_status` we were still returning all
`applications` in the resulting relationship of each `User`. To be consistent
with ECF we want to only return the applications that match the
`training_status` we are filtering to.

Add test to verify that filtering by `from_participant_id` behaves in the same
way; we only want participant id changes that match the filter to be in the
results.
Copy link

sonarcloud bot commented Nov 22, 2024

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.

3 participants