-
Notifications
You must be signed in to change notification settings - Fork 1
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
Onboard UPS Connector to Axon-ivy market #1
Onboard UPS Connector to Axon-ivy market #1
Conversation
…-documentation chore: polish doc & move images to folder
Hi @ny-huynh, @ptanhaxon, I will start reviewing the product now, if I find any concerns or questions, I will mention you in the comment section. Thanks for your understanding! FYI @ivy-sgi |
Please add product.json for ups-connector-product |
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 @ny-huynh, @ptanhaxon, could you please check these comment?
Thank you!
ups-connector-demo/src_hd/ups/connector/demo/Address/Address.xhtml
Outdated
Show resolved
Hide resolved
ups-connector-demo/src_hd/ups/connector/demo/Address/Address.xhtml
Outdated
Show resolved
Hide resolved
ups-connector-demo/src_hd/ups/connector/demo/PickupCancel/PickupCancel.xhtml
Outdated
Show resolved
Hide resolved
ups-connector-demo/webContent/layouts/includes/progress-loader.xhtml
Outdated
Show resolved
Hide resolved
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.
Please check the tab indent and reformat this file.
ups-connector-demo/webContent/layouts/includes/exception-details.xhtml
Outdated
Show resolved
Hide resolved
refactor: format code and remove unused code
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 @ny-huynh , @ptanhaxon , thank you so much for handle some previous feedbacks. and I also add new comments below, please check it.
Best regards
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.
Could you consider to remove the json hard code or give me your reason for this?
Thank you
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.
It is mock data for testing the connector
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.
Sorry for the misunderstanding; of course, I know what it is. What I mentioned is moving the JSON values to a separate JSON file so that we could load it in this class. I see two advantages for doing this: first, it will avoid duplicate code, and second, the class would be cleaner.
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.
I know, IMO the JSON is quite simple and it could be easy to read, I already separated the large one into a file so it's not a problem
As you can see the Twitter connector also does the same thing
ups-connector/dataclasses/ups/connector/AddressValidationData.ivyClass
Outdated
Show resolved
Hide resolved
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 @ny-huynh and @ptanhaxon , thank you for addressing our feedback in the last request. We have recently added new comments, so please take a moment to review them.
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 @ny-huynh , could we add the error boundary for each rest client activity?
Thank you!
"callSignature" : "addressValidation", | ||
"input" : { | ||
"params" : [ | ||
{ "name" : "requestoption", "type" : "Integer" }, |
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 @ny-huynh , could you please change the names of some variables that weren't good? For example, change 'requestoption' to 'requestOption'.
Please make similar changes for the remaining variables.
"reqOption" : "in.reqOption", | ||
"version" : "in.version" | ||
}, | ||
"resultType" : "com.ups.wwwcie.api.client.LOCATORResponseWrapper" |
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.
The name of variable type should be 'LocatorResponseWrapper'.
"clientId" : "392a25b1-ff85-48ae-95cb-44dddd4a876b", | ||
"method" : "POST", | ||
"queryParams" : { | ||
"Locale" : "in.locale" |
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.
The name of param should be 'locale'.
refactor: change to normal property to avoid encoded the variable on rest client config
pom.xml
Outdated
<groupId>com.axonivy.connector.ups</groupId><!-- your group id: e.g. com.axonivy.connector.<myconnector> or com.axonivy.utils.<myutil> --> | ||
<name>ups-connector</name><!-- fill your product name --> | ||
<artifactId>ups-connector-modules</artifactId><!-- fill your product name + a "-modules" postfix --> | ||
<version>10.0.14-SNAPSHOT</version><!-- identicate your minimal compliant ivy version with the first 2 digits --> |
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.
please remove the hint in this pom? that hint supports we input the value after finishing we should remove it. Thanks! @ny-huynh
ups-connector-demo/src/UpsBean.java
Outdated
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.
xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
<h:body> | ||
<ui:composition template="/layouts/basic-10.xhtml"> |
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.
please use iframe-10 template, thanks! @ny-huynh
regionalrequestindicator String #field | ||
regionalrequestindicator PERSISTENT #fieldModifier | ||
maximumcandidatelistsize Integer #field | ||
maximumcandidatelistsize PERSISTENT #fieldModifier |
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.
this property name is not consistent with another name of this class, we have 2 styles inside 1 data class - camelcase and lowercase => please unify it. Thanks! @ny-huynh
refactor: use frame-10 template, update property name, use variable
fix: update project build plugin version
Hi @andreasbalsiger, could you help to review this README file? |
refactor: update package name, format code
No description provided.