Skip to content

Fix #173: Exclusive bounties should not bypass tech stack filters#283

Open
arthurus36-alt wants to merge 2 commits into
algora-io:mainfrom
arthurus36-alt:fix-tech-filter
Open

Fix #173: Exclusive bounties should not bypass tech stack filters#283
arthurus36-alt wants to merge 2 commits into
algora-io:mainfrom
arthurus36-alt:fix-tech-filter

Conversation

@arthurus36-alt
Copy link
Copy Markdown

This fixes #173 where the counts for technologies on the /bounties page (e.g. "Svelte (1)") did not match the actual number of displayed bounties when clicked.

The issue was caused by b.visibility == :exclusive or inside the :tech_stack criteria applicator in lib/algora/bounties/bounties.ex. Because of this condition, whenever a user filtered by a specific tech stack (e.g., Svelte), ALL :exclusive bounties on the platform were unconditionally included in the list, completely ignoring the user`s chosen tech filter.

By removing the b.visibility == :exclusive bypass from :tech_stack, users will now see precisely the bounties that match the technology they clicked.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Freelance Agent seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

Confusing/incorrect number of bounties per prog. language

2 participants