Skip to content

Conversation

@suriyan3
Copy link
Collaborator

@suriyan3 suriyan3 commented Apr 8, 2024

I have updated the routes for Bulk uploads to return one map object which will let us know that the operation is failure or success.

Copy link

@vbothe23 vbothe23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

if (invalidClinics.size() > 0) {
map.put("issues", invalidClinics);
if (map.size() > 0) {
map.put("uploadTaskStatus", "Failure");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see uploadTaskStatus here and somewhere down UploadTaskStatus. Keep it string constant.

if (invalidUsers.size() > 0) {
map.put("issues", invalidUsers);
if (map.size() > 0) {
map.put("UploadTaskStatus", "Failure");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure and Success can be replaced with enums

Copy link
Member

@nsabale7 nsabale7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small nit.

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.

4 participants