-
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
ATS Client Push #184
ATS Client Push #184
Conversation
73ad279
to
5d51b35
Compare
19fa94b
to
822f76f
Compare
2f2f0a8
to
15fc73f
Compare
258a1a5
to
e4ace83
Compare
toast.error('Error pushing client to ATS'); | ||
} | ||
} catch (error) { | ||
if (!axios.isCancel(error)) toast.error('Error pushing client to ATS ' + error); |
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.
No cancel token is being used. CancelToken has also deprecated since v0.22.0
address: address | ||
}; | ||
client.formattedAddress = address; | ||
client.phone = client.address.primaryPhone ?? client.address.secondaryPhone; |
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.
Is client.phone
part of the original response? if not we should be referencing it through the proper keys instead of duplicating it.
address: address | ||
}; | ||
client.formattedAddress = address; | ||
client.phone = client.address.primaryPhone ?? client.address.secondaryPhone; |
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.
See above
address: address | ||
}; | ||
client.formattedAddress = address; | ||
client.phone = client.address.primaryPhone ?? client.address.secondaryPhone; | ||
}); | ||
} catch (error) { | ||
if (!axios.isCancel(error)) toast.error('Error searching for users ' + error); |
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.
See above about cancel token
Sample Client Object (sanitized) for reference: |
…nkModal, atsService updated
…sController, route, services, validator updated Backend unti test added New ATSClientResource type, frontend components updated
e4ace83
to
e715fe8
Compare
Description
PADS-231 - ATS Client Push API
PADS-317 - ATS Client Push UI
ATS client push UI:
New ATSUserCreateModal
New frontend type for ATSClientResource
SubmissionForm, ATSUserLinkModal, ATSUserDetailModal, atsService updated
ATS client push API:
New POST API for creating clients in ATS
New backend type ATSClientResource, ATSUserSearchParameters
atsController, route, services, validator updated
Backend unit test added
Types of changes
Checklist
Further comments