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

feat: extension address doctor #1337

Merged
merged 3 commits into from
Jun 21, 2023
Merged

Conversation

carlosDjangoo
Copy link
Contributor

@carlosDjangoo carlosDjangoo commented Dec 8, 2022

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

address-doctor

AB#81763

@shauke shauke self-assigned this Dec 9, 2022
@shauke shauke added this to the 3.2 milestone Dec 9, 2022
@shauke shauke requested review from NicolasGrizard and marschmidt89 and removed request for NicolasGrizard December 12, 2022 08:50
Copy link
Contributor

@marschmidt89 marschmidt89 left a comment

Choose a reason for hiding this comment

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

Localization changes approved

mglatter
mglatter previously approved these changes Dec 14, 2022
Copy link
Contributor

@mglatter mglatter left a comment

Choose a reason for hiding this comment

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

Localizations approved

@shauke shauke modified the milestones: 3.2, 3.3 Dec 22, 2022
@@ -0,0 +1,6 @@
export interface AddressDoctorConfig {
login: string;
password: string;

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 ?

Copy link
Collaborator

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.

@suschneider suschneider modified the milestones: 3.3, 4.0 Feb 6, 2023
@SGrueber SGrueber modified the milestones: 4.0, 4.1 Mar 27, 2023
@andreassteinmann andreassteinmann modified the milestones: 4.1, 4.0 Mar 27, 2023
@shauke shauke modified the milestones: 4.0, 4.1 Mar 31, 2023
@shauke shauke assigned Eisie96 and unassigned shauke May 15, 2023
@Eisie96 Eisie96 force-pushed the feature/extension_address_doctor branch from 4417c69 to b5535c1 Compare May 31, 2023 09:24
@Eisie96 Eisie96 force-pushed the feature/extension_address_doctor branch from b5535c1 to 3c4296a Compare June 5, 2023 11:36
@shauke shauke self-requested a review June 12, 2023 18:34
@shauke shauke force-pushed the feature/extension_address_doctor branch from 9f220d3 to ec03c2a Compare June 16, 2023 18:51
shauke and others added 2 commits June 21, 2023 16:27
…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
shauke added a commit that referenced this pull request Jun 21, 2023
* 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>
@shauke shauke force-pushed the feature/extension_address_doctor branch from 36c9465 to fbbc30f Compare June 21, 2023 14:41
shauke added a commit that referenced this pull request Jun 21, 2023
* 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>
@shauke shauke force-pushed the feature/extension_address_doctor branch from fbbc30f to 4b5b54d Compare June 21, 2023 14:46
shauke
shauke previously approved these changes Jun 21, 2023
* 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>
@shauke shauke force-pushed the feature/extension_address_doctor branch from 4b5b54d to 91a5a79 Compare June 21, 2023 15:26
@shauke shauke merged commit 28eb2ce into develop Jun 21, 2023
@shauke shauke deleted the feature/extension_address_doctor branch June 21, 2023 17:14
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.

9 participants