-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactored common elements of GenerateAssertionsRequest.java and GetA… #52
Conversation
…ssertionsRequest.java into an abstract superclass called ContestRequest.java
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.
I have left some commenting requests, but these can be done in the InputVerification branch before merging into main.
src/main/java/au/org/democracydevelopers/raireservice/request/ContestRequest.java
Show resolved
Hide resolved
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.data.annotation.ReadOnlyProperty; | ||
|
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.
What do we mean by "request describing a contest"? What is this class of contest requests for?
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.
I changed it to 'identifying a contest and listing its candidates' - its an abstract class that summarises only those things that are common to all requests. Maybe I haven't made it very clear - feel free to suggest better wording.
@@ -13,22 +13,13 @@ the raire assertion generation engine (https://github.com/DemocracyDevelopers/ra | |||
|
|||
import au.org.democracydevelopers.raireservice.persistence.repository.ContestRepository; | |||
import java.util.List; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
import org.springframework.data.annotation.ReadOnlyProperty; | |||
|
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.
I'm still not sure what it means for a request to "describe a contest".
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.
Changed to "identifying the contest..."
…ssertionsRequest.java into an abstract superclass called ContestRequest.java
Completes #51