Skip to content

Filter votes by tag #141

Answered by julien-boudry
LiamM32 asked this question in Q&A
Jun 13, 2023 · 4 comments · 13 replies
Discussion options

You must be logged in to vote

Commit 5b11a2e

Finally, it's:

$r = $e->getResult(methodOptions: ['%tagFilter' => true, '%withTag' => true, 'tags' => ['tag2']]);
$filteredByTagsPairwise = $r->pairwise;

And maybe later, iI will split getResult into different and more explicit methods names than this option filter for tags.

It's more a Public API solution than a real internal solution, but it's will work very well internally.

Except that all the Result & Tags systems don't work well with very large elections (only if you manually activate the external data handler), but not a problem before many millions of votes. It's a limitation that must be investigated and documented.

Replies: 4 comments 13 replies

Comment options

LiamM32
Jun 14, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@julien-boudry
Comment options

@LiamM32
Comment options

LiamM32 Jun 14, 2023
Collaborator Author

@julien-boudry
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by LiamM32
Comment options

LiamM32
Jun 14, 2023
Collaborator Author

You must be logged in to vote
10 replies
@LiamM32
Comment options

LiamM32 Jun 14, 2023
Collaborator Author

@julien-boudry
Comment options

@julien-boudry
Comment options

@LiamM32
Comment options

LiamM32 Jun 15, 2023
Collaborator Author

@julien-boudry
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants