-
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 Open Weather Connector to Axon-ivy market #2
Onboard Open Weather Connector to Axon-ivy market #2
Conversation
return weatherDescription; | ||
} | ||
|
||
private static int getWeatherPriority(int weatherId) { |
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.
remove static
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 function should be part of class rather than instance. It look like helper or util, but I don't want to create a class just contains only function so... I put it here
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 mean remove static keyword. Use regular functions instead of static functions
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 understand what you mean, but I think this function should be static because it seems more class method than instance method.
...ather-connector-demo/src/com/axonivy/connector/openweather/dto/DailyForecastDisplayInfo.java
Outdated
Show resolved
Hide resolved
...-test/src_test/com/axonivy/connector/openweather/test/AbstractOpenWeatherMapProcessTest.java
Outdated
Show resolved
Hide resolved
...-connector-test/src_test/com/axonivy/connector/openweather/test/AirPollutionProcessTest.java
Outdated
Show resolved
Hide resolved
...ector-test/src_test/com/axonivy/connector/openweather/test/GeocodingLocationProcessTest.java
Outdated
Show resolved
Hide resolved
return weatherDescription; | ||
} | ||
|
||
private static int getWeatherPriority(int weatherId) { |
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 mean remove static keyword. Use regular functions instead of static functions
@@ -0,0 +1,4 @@ | |||
Variables: |
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.
Leave this file empty, the demo should use the same variables as 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.
I also add the defaultSearchedCity to the demo variable. Is any problems if the demo different than connector?
...er-connector-demo/src/com/axonivy/connector/openweather/managedbean/ForecastWeatherBean.java
Outdated
Show resolved
Hide resolved
...er-connector-demo/src/com/axonivy/connector/openweather/managedbean/ForecastWeatherBean.java
Outdated
Show resolved
Hide resolved
...er-connector-demo/src/com/axonivy/connector/openweather/managedbean/ForecastWeatherBean.java
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.
LGTM
public static final String DEFAULT_SEARCHED_CITY_VARIABLE_PATH = "openWeatherConnectorDemo_defaultSearchedCity"; | ||
public static final String SELECTED_TIME_INDEX_JS_VARIABLE_NAME = "selectedTimeIndex"; | ||
|
||
private Constants() { |
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.
You can remove this constructor by change Constants to interface
* Onboard Open Weather Connector to Axon-ivy market (#2) * Initial commit * product-name * Initial project setup * Init project * Update chart listener * Update pom * Fill real data to UI * Update forecast weather * Add action for UI * Update panChart * Refactor code * refactor html * Update new chart pop * update converter feature * Refactor * Enhance UI * Update feature pan chart when first time switch to another tab * remove unused comment * Add AuthFeature and update README.md * Update README.md * Remove Product project sample * Update variable file * Update precipitation chart * Update test process for weather geo * Update unit test for ivy process * Reformat process UI * Rename formatted to postfix name * Remove appId value in demo project * Update groupId in product project * Update README with how to get api key * Refactor variable name * Remove hard string and update cms * Add dark theme * Update dark mode theme * Remove unused function * Delete unused images * Update README.md * Delete open-weather-connector-product/images/forecast-sub-process.png * Handle feedbacks * Fix unit test errors * Handle feedbacks * Add custom for Units --------- Co-authored-by: khanhduynguyen170900 <[email protected]> * Update latest ivy-environment same as project version (#5) * Update general path for test process (#6) * Update README.md --------- Co-authored-by: khanhduynguyen170900 <[email protected]>
No description provided.