-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(Get Classmate Work): Create endpoint for classmate Discussion work #54
Conversation
Run run = runService.retrieveById(runId); | ||
Group period = groupService.retrieveById(periodId); | ||
if (isAllowedToGetData(auth, run, period, nodeId, componentId)) { |
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.
These lines are also in getClassmateDiscussionAnnotations(). Extract to method?
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.
Functionality works as described.
Here are my suggestions for improving code readability/testing:
- See comments/questions inline
- Revert changes where comments add extra lines
- Add tests for
- HibernateStudentWorkDao.getStudentWork()
- HibernateRunDao.isUserInRunAndPeriod()
- HibernateAnnotationDao.getAnnotations()
- ClassmatedataController methods
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.core.env.Environment; |
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.
Remove unused import?
import org.wise.vle.domain.annotation.wise5.Annotation; | ||
import org.wise.vle.domain.work.StudentWork; | ||
|
||
public class ClassmateDataController { |
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 this class ever be instantiated by itself? Make into abstract class?
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Discussion student work endpoint example
Discussion annotations endpoint example
Closes #51