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

Onboard Open Weather Connector to Axon-ivy market #2

Merged
merged 46 commits into from
Mar 14, 2024

Conversation

ndkhanh-axonivy
Copy link
Collaborator

No description provided.

@ghost ghost linked an issue Feb 23, 2024 that may be closed by this pull request
15 tasks
open-weather-connector-product/README.md Outdated Show resolved Hide resolved
open-weather-connector-demo/config/variables.yaml Outdated Show resolved Hide resolved
return weatherDescription;
}

private static int getWeatherPriority(int weatherId) {
Copy link

Choose a reason for hiding this comment

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

remove static

Copy link
Collaborator Author

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

Copy link

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

Copy link
Collaborator Author

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.

open-weather-connector-product/pom.xml Outdated Show resolved Hide resolved
open-weather-connector-test/config/variables.yaml Outdated Show resolved Hide resolved
return weatherDescription;
}

private static int getWeatherPriority(int weatherId) {
Copy link

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:
Copy link

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.

Copy link
Collaborator Author

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?

@ghost ghost removed a link to an issue Mar 14, 2024
15 tasks
Copy link

@ghost ghost left a 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() {
Copy link

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

@ndkhanh-axonivy ndkhanh-axonivy changed the base branch from master to develop March 14, 2024 08:21
@ndkhanh-axonivy ndkhanh-axonivy merged commit 37f699b into axonivy-market:develop Mar 14, 2024
1 check passed
ndkhanh-axonivy added a commit that referenced this pull request Mar 18, 2024
* 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]>
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.

2 participants