Skip to content
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

Merged
merged 6 commits into from
Oct 22, 2024
Merged

Conversation

eckermania
Copy link
Contributor

No description provided.


import java.util.List;

@RequestMapping(URL.BASE_URL + "/pen-records/createDateInRange")
Copy link
Contributor

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.

Copy link
Contributor

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);
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

Copy link
Contributor

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 {
Copy link
Contributor

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))
Copy link
Contributor

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;
Copy link
Contributor

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.

Copy link

@eckermania eckermania merged commit b8849e1 into master Oct 22, 2024
6 checks passed
@eckermania eckermania deleted the feature/eas-13 branch October 22, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants