Skip to content

Conversation

@reynir
Copy link
Collaborator

@reynir reynir commented Dec 19, 2025

I'm opening this as a draft as I'd like to review this myself again as there are a few things I'm unsure of. There is as well some duplication of code, and I add a new endpoint in the API which we can maybe avoid somehow.

I tested this manually by creating experiments with experiment tags and had participants. Then I created a new experiment to test the filter, and the results were as expected: only those who had previously participated in experiments with the selected tags were listed.

This addresses https://gitlab.uzh.ch/econ/study-coordination/pool/-/issues/2212.

@reynir reynir marked this pull request as ready for review January 14, 2026 15:09
- (QueryExperimentTags : Filter.Key.input_type) -> QueryTaggedExperiments
- (ExperimentTag : Filter.Key.hardcoded) -> TaggedParticipation
@reynir reynir force-pushed the feature/filter-experiment-tags branch from d30d769 to a1994a0 Compare January 15, 2026 09:31
; get "/create" ~middlewares:[ Access.create ] new_form
; post "" ~middlewares:[ Access.create ] create
; post "/search" ~middlewares:[ Access.search ] search
; post "/search-experiment" ~middlewares:[ Access.search ] search_experiment_tags
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here I had to add another endpoint so the htmx can find experiment tags. Alternatively, we can modify htmx_search_helper to look for a model parameter in the POST body, but it doesn't seem natural to add that to the existing implementation.

@reynir
Copy link
Collaborator Author

reynir commented Jan 15, 2026

@PossessedC0bra The PR is ready for review

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.

1 participant