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 isArchived and isGlobal filtering in extendFind endpoint #1164

Closed

Conversation

CollinBeczak
Copy link
Contributor

Issue
The /api/v2/challenges/extendedFind endpoint was not correctly handling archived and global challenge filtering. The issue arose because the filter condition was always evaluating as false. This happened because the filter was being wrapped in Some(value) (e.g., Some(false) or Some(true)) instead of directly evaluating the value.

Fix Details
This PR updates the condition to handle the wrapped Some(value) correctly, ensuring that the filtering logic now behaves as expected. This resolves the bug affecting archived and global challenge filtering.

@CollinBeczak CollinBeczak changed the title fix isArchived and isGlobal filtering fix isArchived and isGlobal filtering in extendFind endpoinnt Jan 13, 2025
@CollinBeczak CollinBeczak changed the title fix isArchived and isGlobal filtering in extendFind endpoinnt fix isArchived and isGlobal filtering in extendFind endpoint Jan 14, 2025
@CollinBeczak CollinBeczak marked this pull request as ready for review January 14, 2025 21:49
@CollinBeczak CollinBeczak requested a review from jake-low January 23, 2025 20:07
@CollinBeczak CollinBeczak force-pushed the Collin/fix-isarchived-and-isglobal-filtering branch from 679db6d to 5724c6e Compare February 5, 2025 23:47
jake-low
jake-low previously approved these changes Feb 6, 2025
Copy link
Contributor

@jake-low jake-low left a comment

Choose a reason for hiding this comment

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

LGTM. This is a hotfix for prod, right? If so, please test on staging after you merge this but before you tag a new release.

@CollinBeczak
Copy link
Contributor Author

Will do, thanks for the review

Copy link

sonarqubecloud bot commented Feb 6, 2025

@CollinBeczak
Copy link
Contributor Author

closing in favor of #1168

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.

2 participants