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
[#9420] Consolidate account, student RESTFul API #9436
Conversation
I found a bug while writing test cases for account search action. See 84006a5 |
693f37c
to
d1065b1
Compare
Waiting for AccountData and CourseData to be merged. (E2E tests does not pass for this reason) Ready for review. |
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.
Sorry in advance XD
src/main/java/teammates/ui/webapi/action/SearchAccountsAction.java
Outdated
Show resolved
Hide resolved
src/main/java/teammates/ui/webapi/action/PutStudentProfileAction.java
Outdated
Show resolved
Hide resolved
src/main/java/teammates/ui/webapi/action/CreateAccountAction.java
Outdated
Show resolved
Hide resolved
2028700
to
7fdf474
Compare
A regression bug has been found in InstructorLogic......
The first argument should be courseId instead, fixed in this PR |
All updates has been made. currently for get Account, there are two functions. Ready for review |
c9e08de
to
3e6e501
Compare
Tests added according to review, see a667168, ready for review |
be24b2c
to
a667168
Compare
4d89ad7
to
02293ab
Compare
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.
LGTM!
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.
Code looks good mostly, just some classes need renaming.
* * <br> * account name, email, google id, course name, institution. | ||
* * <br> * link for join course, home page and manage account. | ||
*/ | ||
public class CommonBundle { |
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.
It was partially my mistake before to give is a vague name such as CommonBundle
, but at that time this class was confined at the action class. Now that this class is in the DTO package, it needs a better name. A possible name would be CommonAccountSearchResult
.
* * <br> * The section name, team name, comments. | ||
* * <br> * Associated opened, not opened, and published sessions. | ||
*/ | ||
public class StudentBundle extends CommonBundle { |
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.
Per the previous comment, this could be named StudentAccountSearchResult
.
/** | ||
* Represents details of an instructor account. | ||
*/ | ||
public class InstructorBundle extends CommonBundle { |
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.
Per the previous comment, this could be named InstructorAccountSearchResult
.
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.
Updated, see 64de35f
89d2146
to
64de35f
Compare
c0eed9d
to
deac5a5
Compare
62a9964
to
500c92e
Compare
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.
LGTM
Part of #9420