-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: extension address doctor #1337
Conversation
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.
Localization changes approved
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.
Localizations approved
@@ -0,0 +1,6 @@ | |||
export interface AddressDoctorConfig { | |||
login: string; | |||
password: string; |
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.
Hi,
I can't really find the recommendations from Address Doctor to use their apis, is it secure to store in the front the login and password to use their services ? Isn't there a risk for someone to collect it ?
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.
@charleshopfner The client needs to send the login and password with the POST REST request in plain text to the Address Doctor server. So the client will have to know these values at some point.
In a production environment these values are set via an environment variable at deployment time, so the values are not part of the actual source code and we assume that is "secret" enough.
But we are open to any suggestions how this could be handled better if necessary.
4417c69
to
b5535c1
Compare
b5535c1
to
3c4296a
Compare
9f220d3
to
ec03c2a
Compare
…ervice * can be used to conditionally, based on a feature toggle, reference additional functionality in extensions from the main application * introduced to be used by the Address Doctor extension
* introduce notifier service to notify address doctor for new address check * use feature event service to notify extensions for further actions from the outside * use formly for address doctor form * mapper to map address doctor data to Intershop compatible Address interface * implement caching functionality to avoid unnecessary REST requests * add additional documentation for address doctor * introduce helper to check addresses for equality * don't open modal when no suggestions are available * update existing address form with selected address before submitting Co-authored-by: Marcel Eisentraut <meisentraut@intershop.de> Co-authored-by: Stefan Hauke <s.hauke@intershop.de>
36c9465
to
fbbc30f
Compare
* introduce notifier service to notify address doctor for new address check * use feature event service to notify extensions for further actions from the outside * use formly for address doctor form * mapper to map address doctor data to Intershop compatible Address interface * implement caching functionality to avoid unnecessary REST requests * add additional documentation for address doctor * introduce helper to check addresses for equality * don't open modal when no suggestions are available * update existing address form with selected address before submitting Co-authored-by: Marcel Eisentraut <meisentraut@intershop.de> Co-authored-by: Stefan Hauke <s.hauke@intershop.de>
fbbc30f
to
4b5b54d
Compare
* introduce notifier service to notify address doctor for new address check * use feature event service to notify extensions for further actions from the outside * use formly for address doctor form * mapper to map address doctor data to Intershop compatible Address interface * implement caching functionality to avoid unnecessary REST requests * add additional documentation for address doctor * introduce helper to check addresses for equality * don't open modal when no suggestions are available * update existing address form with selected address before submitting Co-authored-by: Marcel Eisentraut <meisentraut@intershop.de> Co-authored-by: Stefan Hauke <s.hauke@intershop.de>
4b5b54d
to
91a5a79
Compare
PR Type
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:
What Is the Current Behavior?
There is no Address Doctor Extension to check if the entered address is valid.
Issue Number: Closes #
What Is the New Behavior?
This feature is intended to integrate the Address Doctor address validation web service. If the feature is enabled, a call to the web service will be executed whenever a new address needs to be validated. After clicking the save button an Modal overlay will appear and you can choose the address you want. You can choose your entered or a suggestion from Address Doctor.
Does this PR Introduce a Breaking Change?
[ ] Yes
[x] No
Other Information
AB#81763