Skip to content

Conversation

barora05
Copy link
Collaborator

@barora05 barora05 commented Jun 26, 2025

Description

Add any of operator for participant column. Closes #1479
Used a slightly hacky approach: included the any of operator under the string type and handled it as a choice to support multiselect behavior.

User Impact

Demo

Demo

Docs and Changelog

@barora05 barora05 self-assigned this Jun 26, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/participants/views.py 66.66% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@barora05 barora05 requested review from stephherbers and snopoke June 26, 2025 09:09
Copy link
Contributor

@snopoke snopoke left a comment

Choose a reason for hiding this comment

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

generally looks good but I don't think we should load all the participants into the view.

Have a look at the Ajax Loading, Custom Scoring, and Inline Display example. This will require a new 'particpant_api' view for internal use.

Copy link
Contributor

@SmittieC SmittieC left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -231,6 +233,24 @@
window.addEventListener('popstate', () => {
this.setLabelFromURL();
});
fetch("{% url 'participants:participant_identifier' team.slug experiment.id %}", {
Copy link
Contributor

Choose a reason for hiding this comment

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

I still think this should be dynamic as in it does a query on demand to search for the participants but let's merge this as is for now.

@snopoke snopoke merged commit db2df54 into main Jul 2, 2025
12 checks passed
@snopoke snopoke deleted the ba/filter_participant branch July 2, 2025 08:50
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.

Filtering: Ability to filter on multiple participants
4 participants