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

Fixes #249 #250

Merged
merged 1 commit into from
Sep 12, 2018
Merged

Fixes #249 #250

merged 1 commit into from
Sep 12, 2018

Conversation

1-alex98
Copy link
Member

@1-alex98 1-alex98 commented Sep 6, 2018

No description provided.

@1-alex98 1-alex98 added the ready label Sep 6, 2018
@ghost ghost assigned 1-alex98 Sep 6, 2018
@ghost ghost added in progress and removed ready labels Sep 6, 2018
bukajsytlos
bukajsytlos previously approved these changes Sep 6, 2018
Copy link
Member

@Brutus5000 Brutus5000 left a comment

Choose a reason for hiding this comment

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

Instead of the two checks on getRevealWinner compare with votingSubject.getRevealWinner() == Boolean.FALSE

To be honest I have no clue what this is validating. What is a VotingSubjectRevealWinnerValidator actually validating? Your code is changing it's behavior, but it is untested and undocumented. I demand unit tests to verify the desired behavior.

@1-alex98
Copy link
Member Author

1-alex98 commented Sep 9, 2018

I got 2 integration tests on this but bukajsytlos changed the logic in a way that was similar but not the same

@bukajsytlos
Copy link
Member

But Brutus is right. I changed/broke the logic but tests still passed. So there is something missing on test side, right?

@1-alex98
Copy link
Member Author

1-alex98 commented Sep 9, 2018

Well yes I did not test all cases, I tested the security relevant ones

@1-alex98
Copy link
Member Author

1-alex98 commented Sep 9, 2018

I will add another test

@1-alex98
Copy link
Member Author

1-alex98 commented Sep 9, 2018

Btw if you merge this could you deploy it as well?

@Brutus5000
Copy link
Member

Probably not. Depends on required database migrations.

@1-alex98
Copy link
Member Author

oh ok. hmm

@Brutus5000 Brutus5000 merged commit 3b66b80 into develop Sep 12, 2018
@ghost ghost removed the in progress label Sep 12, 2018
@1-alex98
Copy link
Member Author

👍 only needs to be deployed some when then ftx can do his ladder vote

@Brutus5000
Copy link
Member

@axel1200 it's on prod now

@1-alex98
Copy link
Member Author

Cool only missing the modor PR and I can tell ftx his ladder voting stuff is done

@Brutus5000 Brutus5000 deleted the bugfix/#249-bugs branch October 2, 2018 21:35
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.

None yet

3 participants