-
Notifications
You must be signed in to change notification settings - Fork 0
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
Creates endpoint for fetching student merges #21
Conversation
|
||
import java.util.List; | ||
|
||
@RequestMapping(URL.BASE_URL + "/pen-records/createDateInRange") |
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.
The path identifier createDateInRange could be moved to specific endpoint. Better to have in lowercase.
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.
Please modify this to:
@RequestMapping(URL.BASE_URL + "/student-merges")
} | ||
|
||
public List<StudentMerge> getMergedStudentsForDateRange(String createDateStart, String createDateEnd){ | ||
return restUtils.getMergedStudentsForDateRange(UUID.randomUUID(), createDateStart, createDateEnd); |
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.
Do we need this randomID ?
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.
as far as I know, we do - it is only a transaction id that will be shared between the student api and assessments. basically grabbed this directly from how we are retrieving merges in sdc
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.
@eckermania - It's only useful if we log in on this side.
|
||
@Slf4j | ||
@RestController | ||
public class PENRecordController implements PENRecordEndpoint { |
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.
Please rename this class & service to remove references to PEN. We're retrieving student merges.
@@ -324,4 +327,26 @@ public List<School> getAllSchoolList(UUID correlationID) { | |||
throw new EasAPIRuntimeException(NATS_TIMEOUT + correlationID + ex.getMessage()); | |||
} | |||
} | |||
|
|||
@Retryable(retryFor = {Exception.class}, noRetryFor = {EasAPIRuntimeException.class}, backoff = @Backoff(multiplier = 2, delay = 2000)) |
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.
Please remove this line.
/** | ||
* The Student merge id. | ||
*/ | ||
String studentMergeID; |
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.
This is also not nullable.
|
No description provided.