From 15d0e86f920231df4f5bb83e61694469de3beeac Mon Sep 17 00:00:00 2001 From: lasanthaDLPDS Date: Mon, 28 Oct 2019 01:39:10 +0530 Subject: [PATCH 1/3] maven checkstyle version --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index fcf9adb12f..e4f9c8eb06 100644 --- a/pom.xml +++ b/pom.xml @@ -1767,6 +1767,11 @@ ${carbon.multitenancy.version} provided + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven.checkstyle.vesion} + @@ -2246,6 +2251,8 @@ 1.7.6 v10.15.3 6.9.0 + + 3.1.0 7.0.85 From 138ed15dff6839a43fc633859e0f800056dcbabf Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Mon, 28 Oct 2019 11:59:12 +0530 Subject: [PATCH 2/3] Modify search by app field in APPM Publisher UI --- .../src/components/apps/list-apps/ListApps.js | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js index 401b35b79d..2af6f06975 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/ListApps.js @@ -31,10 +31,16 @@ class ListApps extends React.Component { super(props); this.state = { filters: {} - } + }; + this.appName = ''; } setFilters = (filters) => { + if (this.appName === '' && filters.hasOwnProperty("appName")) { + delete filters["appName"]; + } else { + filters.appName = this.appName; + } this.setState({ filters }); @@ -42,6 +48,7 @@ class ListApps extends React.Component { setSearchText = (appName) => { const filters = {...this.state.filters}; + this.appName = appName; if (appName === '' && filters.hasOwnProperty("appName")) { delete filters["appName"]; } else { @@ -52,6 +59,17 @@ class ListApps extends React.Component { }); }; + onChangeSearchText = (e) => { + const filters = {...this.state.filters}; + const appName = e.target.value; + if (appName === '' && filters.hasOwnProperty("appName")) { + delete filters["appName"]; + this.setState({ + filters + }); + } + }; + render() { const {isDrawerVisible, filters} = this.state; return ( @@ -67,9 +85,10 @@ class ListApps extends React.Component { From 84ee82471674485409e2882804b0a5b65eed30cc Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Mon, 28 Oct 2019 14:38:46 +0530 Subject: [PATCH 3/3] Add ent. app installation feature to APPM UI --- .../src/components/apps/release/ReleaseView.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js index 7fd5c6eee1..d024f5903c 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js @@ -46,15 +46,27 @@ class ReleaseView extends React.Component { const config = this.props.context; const release = this.props.app.applicationReleases[0]; const {uuid} = release; + const {isAndroidEnterpriseApp} = this.props.app; this.setState({ loading: true, }); + const parameters = {}; + let url = window.location.origin + config.serverConfig.invoker.uri + - config.serverConfig.invoker.store + "/subscription/" + uuid + "/" + type + "/" + operation; + config.serverConfig.invoker.store + "/subscription/" + uuid + "/" + type + "/"; + if (isAndroidEnterpriseApp) { + url += "ent-app-install/"; // add ent-app-install path param for android enterprise app + parameters.requiresUpdatingExternal = true; + } + url += operation; // add operation to url if (timestamp != null) { - url += `?timestamp=${timestamp}`; + parameters.timestamp = timestamp; // add timestamp for scheduled operations } + + const queryParams = Object.keys(parameters).map(key => key + '=' + parameters[key]).join('&'); + url += '?' + queryParams; + axios.post( url, payload,