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

CastVote.getAssurances() #242

Open
magwas opened this issue Mar 15, 2019 · 6 comments
Open

CastVote.getAssurances() #242

magwas opened this issue Mar 15, 2019 · 6 comments

Comments

@magwas
Copy link
Member

magwas commented Mar 15, 2019

Behaviour: Supporting functionality/CastVote;The assurances of the voter can be obtained from a cast vote if canupdateis true

@tested_feature("Supporting functionality")

@tested_operation("CastVote")

@tested_behaviour("The assurances of the voter can be obtained from a cast vote if canupdateis true")

by List getAssurances() The CastVote actually stores the proxy ID for the voter, and consults the voter's User entity

Deviation in model

@valentinbujdoso
Copy link
Contributor

So I have to add List getAssurances() function to CastVote which gives back the assurances of the voter? :O

@magwas
Copy link
Member Author

magwas commented Mar 17, 2019

No, you don't have to give it back. You have to store it with the vote cast. But only if canUpdate is true.

@valentinbujdoso valentinbujdoso self-assigned this Mar 17, 2019
@valentinbujdoso
Copy link
Contributor

Thx. It waits for the merge of #60

@valentinbujdoso
Copy link
Contributor

valentinbujdoso commented Mar 27, 2019

I am not clearly understand what to do whit this ticket.
I have to store the assurances in the CastVote class. So I will add it in the Vote.addCastVote function.
But how do I get the users assurances (which I would like to store?

@magwas
Copy link
Member Author

magwas commented Mar 27, 2019

From the User instance, which can be found with the proxy id from ws context.
And as this is not yet implemented, you have to use mocks.

@valentinbujdoso
Copy link
Contributor

grab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants