Skip to content

toggle user sybils: add comparisons to thresholds #10676

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

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

danlessa
Copy link
Contributor

Description

The bsci_script method was missing the comparison between the dataset elements and the relevant thresholds, therefore making the sybil flags more conservative than it should (only values = 0 or 1 were taken into consideration). This PR fixes that by introducing the comparison operator, which makes the script behave as expected.

Testing

Logical tests were done locally on Jupyter Notebooks to ensure that the sybil flags were equal to what was expected by using the aggregate_score column

Copy link
Contributor

@kevinrolsen kevinrolsen left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@thelostone-mc thelostone-mc left a comment

Choose a reason for hiding this comment

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

not tested but code lgtm.

@thelostone-mc thelostone-mc merged commit 0147866 into gitcoinco:master Jun 14, 2022
nutrina added a commit that referenced this pull request Jun 15, 2022
* Adjusting log messages + linter fixes (#10667)

Co-authored-by: Gerald Iakobinyi-Pich <[email protected]>

* Fixes for bounties: (#10671)

- layout for contact details (avoid overlapping, wrap the line with contact details)
   - editing bounty that was not reserved was not working

Co-authored-by: Gerald Iakobinyi-Pich <[email protected]>

* toggle user sybils: add comparisons to thresholds (#10676)

* Adding try + catch + error message when scoring passport.

Co-authored-by: Gerald Iakobinyi-Pich <[email protected]>
Co-authored-by: Danilo Lessa Bernardineli <[email protected]>
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.

3 participants