-
Notifications
You must be signed in to change notification settings - Fork 2
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
Plaintext votes 2 #141
Plaintext votes 2 #141
Conversation
…isplayCardViewModel.cs as appropriate.
# Conflicts: # RightToAskClient/RightToAskClient/RightToAskClient/HttpClients/RTAClient.cs # RightToAskClient/RightToAskClient/RightToAskClient/ViewModels/ReadingPageViewModel.cs
…ch questions are already up-voted.
…odel.cs rather than Question.
…but not thoroughly tested. Also wrote Extension to exception, but not yet used.
…d and thew exception if not.
public class QuestionTests | ||
{ | ||
|
||
/* FIXME - this test displays exactly the same unpredictable behaviour that was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we fix this test before merging?
} | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should delete this code and add a card to the back log
private HashSet<string> _dismissedQuestionIDs; | ||
private bool _isInitialised; | ||
|
||
public void Init() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation seems strange in this file, are the methods meant to be indented that far?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't worry about this
@@ -0,0 +1,101 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like some more tests for this. For example try and test what happens when you try to add something in the hashset
corrected error that caused tests to fail. |
This is a start on getting plaintext up- and down-voting to work. I also organised dismissed-votes a little better.
Up-voting only works on the QuestionDisplayCard, not on the QuestionDetailView. Down-voting is not implemented yet. On the QuestionDisplayCard, both numbers are the total number of upvotes.
Flagging is not implemented except to turn the flag red.
While testing my changes, I noticed Issue #140 . However, I don't think this PR introduces it because it was present in main already.