http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc deleted file mode 100644 index 08096ef..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.jshintrc +++ /dev/null @@ -1,32 +0,0 @@ -{ - "predef": [ - "document", - "window", - "-Promise" - ], - "browser": true, - "boss": true, - "curly": true, - "debug": false, - "devel": true, - "eqeqeq": true, - "evil": true, - "forin": false, - "immed": false, - "laxbreak": false, - "newcap": true, - "noarg": true, - "noempty": false, - "nonew": false, - "nomen": false, - "onevar": false, - "plusplus": false, - "regexp": false, - "undef": true, - "sub": true, - "strict": false, - "white": false, - "eqnull": true, - "esnext": true, - "unused": true -}
http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml deleted file mode 100644 index 64533be..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -language: node_js -node_js: - - "4" - -sudo: false - -cache: - directories: - - node_modules - -before_install: - - npm config set spin false - - npm install -g bower - - npm install phantomjs-prebuilt - -install: - - npm install - - bower install - -script: - - npm test http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig deleted file mode 100644 index e7834e3..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/.watchmanconfig +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore_dirs": ["tmp", "dist"] -} http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md deleted file mode 100644 index 1d1a14f..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/README.md +++ /dev/null @@ -1,67 +0,0 @@ -<!--- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -# Hueambarimigration-view - -This README outlines the details of collaborating on this Ember application. -A short introduction of this app could easily go here. - -## Prerequisites - -You will need the following things properly installed on your computer. - -* [Git](http://git-scm.com/) -* [Node.js](http://nodejs.org/) (with NPM) -* [Bower](http://bower.io/) -* [Ember CLI](http://ember-cli.com/) -* [PhantomJS](http://phantomjs.org/) - -## Installation - -* `git clone <repository-url>` this repository -* change into the new directory -* `npm install` -* `bower install` - -## Running / Development - -* `ember server` -* Visit your app at [http://localhost:4200](http://localhost:4200). - -### Code Generators - -Make use of the many generators for code, try `ember help generate` for more details - -### Running Tests - -* `ember test` -* `ember test --server` - -### Building - -* `ember build` (development) -* `ember build --environment production` (production) - -### Deploying - -Specify what it takes to deploy your app. - -## Further Reading / Useful Links - -* [ember.js](http://emberjs.com/) -* [ember-cli](http://ember-cli.com/) -* Development Browser Extensions - * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) - * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) - http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js deleted file mode 100644 index d096f68..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/adapters/application.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import DS from 'ember-data'; -import Ember from 'ember'; - -export default DS.RESTAdapter.extend({ - namespace: Ember.computed(function() { - var parts = window.location.pathname.match(/\/[^\/]*/g); - var view = parts[1]; - var version = '/versions' + parts[2]; - var instance = parts[3]; - if (parts.length === 4) { // version is not present - instance = parts[2]; - version = ''; - } - return 'api/v1/views' + view + version + '/instances' + instance + '/resources'; - //return ""; - }), - - handleResponse: function(status, headers, payload){ - if(status === 500 && payload){ - return payload; - } - return this._super(...arguments); - }, - - headers: { - 'X-Requested-By': 'ambari', - 'Authorization': 'Basic YWRtaW46YWRtaW4=' - } -}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js deleted file mode 100644 index 4028e22..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/app.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; -import Resolver from './resolver'; -import loadInitializers from 'ember-load-initializers'; -import config from './config/environment'; - -let App; - -Ember.MODEL_FACTORY_INJECTIONS = true; - -App = Ember.Application.extend({ - modulePrefix: config.modulePrefix, - podModulePrefix: config.podModulePrefix, - Resolver -}); - -loadInitializers(App, config.modulePrefix); - - - - -export default App; http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/components/.gitkeep ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/components/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/components/.gitkeep deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/controllers/.gitkeep ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/controllers/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/controllers/.gitkeep deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/helpers/.gitkeep ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/helpers/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/helpers/.gitkeep deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html deleted file mode 100644 index 620f4a2..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/index.html +++ /dev/null @@ -1,40 +0,0 @@ -<!--- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to You under the Apache License, Version 2.0 -(the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <title>HueambarimigrationView</title> - <meta name="description" content=""> - <meta name="viewport" content="width=device-width, initial-scale=1"> - - {{content-for "head"}} - - <link rel="stylesheet" href="assets/vendor.css"> - <link rel="stylesheet" href="assets/hueambarimigration-view.css"> - - - {{content-for "head-footer"}} - </head> - <body> - {{content-for "body"}} - - <script src="assets/vendor.js"></script> - <script src="assets/hueambarimigration-view.js"></script> - - {{content-for "body-footer"}} - </body> -</html> http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/.gitkeep ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/.gitkeep deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js deleted file mode 100644 index 5f02afc..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/allinstancedetail.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - instanceName: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js deleted file mode 100644 index ec458dc..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambaridatabase.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - configStatus: DS.attr('string'), - configParameter: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js deleted file mode 100644 index ec458dc..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/ambariwebhdfsurl.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - configStatus: DS.attr('string'), - configParameter: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js deleted file mode 100644 index 1f4d2c6..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/checkprogress.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - progressPercentage: DS.attr('string'), - numberOfQueryTransfered: DS.attr('string'), - totalNoQuery: DS.attr('string'), - intanceName: DS.attr('string'), - userNameofhue: DS.attr('string'), - totalTimeTaken: DS.attr('string'), - jobtype: DS.attr('string'), - isNoQuerySelected: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js deleted file mode 100644 index 5d55773..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/getmigrationresultid.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - idforJob: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js deleted file mode 100644 index 5f02afc..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/hiveinstancedetail.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - instanceName: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js deleted file mode 100644 index 620f806..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huedatabase.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - configStatus: DS.attr('string'), - configParameter: DS.attr('string') -}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js deleted file mode 100644 index 620f806..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huehttpurl.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - configStatus: DS.attr('string'), - configParameter: DS.attr('string') -}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js deleted file mode 100644 index 620f806..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/huewebhdfsurl.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - configStatus: DS.attr('string'), - configParameter: DS.attr('string') -}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js deleted file mode 100644 index 5f02afc..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/piginstancedetail.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - instanceName: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js deleted file mode 100644 index 5d55773..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobid.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - idforJob: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js deleted file mode 100644 index 5d55773..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/returnjobidforrevertchange.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - idforJob: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js deleted file mode 100644 index 5913726..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startmigration.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - progressPercentage: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js deleted file mode 100644 index 5913726..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/startrevertchange.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - progressPercentage: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js deleted file mode 100644 index 0313a16..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/models/usersdetail.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Model from 'ember-data/model'; -import DS from 'ember-data'; - -export default Model.extend({ - username: DS.attr('string') -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js deleted file mode 100644 index 884fa9b..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/resolver.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Resolver from 'ember-resolver'; - -export default Resolver; http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js deleted file mode 100644 index 6d99750..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/router.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; -import config from './config/environment'; - -const Router = Ember.Router.extend({ - location: config.locationType -}); - -Router.map(function() { - this.route('check-configuration'); - this.route('homePage', function() { - this.route('hive-history'); - this.route('hive-saved-query'); - this.route('pig-script'); - this.route('pig-job'); - this.route('revert-change'); - }); - - -}); - -export default Router; http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/.gitkeep ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/.gitkeep deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js deleted file mode 100644 index 8e0f28d..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js +++ /dev/null @@ -1,215 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - - -export default Ember.Route.extend({ - - actions: { - toggleStackTrace: function() { - var value = this.controller.get('isExpanded'); - this.controller.set('isExpanded', !value); - } - }, - - isExpanded: false, - - setupController: function() { - var progresBar = 0; - var passtonext = 0; - var self = this; - var control = this.controller; - this.controller.set('progresBar', progresBar); - var huehttpurl = this.store.queryRecord('huehttpurl', {}); - var huewebhdfsurl = this.store.queryRecord('huewebhdfsurl', {}); - var ambariwebhdfs = this.store.queryRecord('ambariwebhdfsurl', {}); - var huedatabases = this.store.queryRecord('huedatabase', {}); - var ambaridatabases = this.store.queryRecord('ambaridatabase', {}); - - huehttpurl.then(function() { - passtonext = passtonext + 20; - progresBar = progresBar + 20; - control.set('progresBar', progresBar); - control.set('huehttpurlTestDone', "set"); - - if (huehttpurl.get('configStatus') === "Success") { - control.set('huehttpurlTest', "Success"); - control.set('huehttpurlTestresult', "Hue Http URl test Successful"); - } - - if (passtonext === 100) { - Ember.run.later(this, function() { - self.transitionTo('homePage'); - }, 4000); - } - }, - function(error) { - progresBar = progresBar + 20; - var checkFailedMessage; - control.set('progresBar', progresBar); - control.set('huehttpurlTestresult', "Hue Http URl test Failed"); - if (error.status !== 200) { - checkFailedMessage = "Service Hue Database check failed"; - var errors; - errors = checkFailedMessage; - errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>'; - - control.set("errors", errors); - } - if (error.trace != null) { - var stackTrace; - stackTrace = checkFailedMessage + ':\n' + error.trace; - control.set("stackTrace", stackTrace); - } - }); - huewebhdfsurl.then(function() { - passtonext = passtonext + 20; - progresBar = progresBar + 20; - control.set('huewebhdfsurlTestDone', progresBar); - - if (huewebhdfsurl.get('configStatus') === "Success") { - control.set('huewebhdfsurlTest', "Success"); - control.set('huewebhdfsurlTestresult', "Hue Webhdfs url test Successful"); - } - if (passtonext === 100) { - Ember.run.later(this, function() { - self.transitionTo('homePage'); - }, 4000); - } - }, - function(error) { - progresBar = progresBar + 20; - var checkFailedMessage; - control.set('progresBar', progresBar); - if (error.status !== 200) { - checkFailedMessage = "Service Hue Database check failed"; - var errors; - errors = checkFailedMessage; - errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>'; - control.set("errors", errors); - } - if (error.trace != null) { - var stackTrace; - stackTrace = checkFailedMessage + ':\n' + error.trace; - control.set("stackTrace", stackTrace); - } - }); - ambariwebhdfs.then(function() { - progresBar = progresBar + 20; - passtonext = passtonext + 20; - control.set('progresBar', progresBar); - control.set('ambariwebhdfsTestDone', progresBar); - - if (ambariwebhdfs.get('configStatus') === "Success") { - control.set('ambariwebhdfsTest', "Success"); - control.set('ambariwebhdfsTestresult', "Ambari Webhdfs url test Successful"); - } - if (passtonext === 100) { - Ember.run.later(this, function() { - self.transitionTo('homePage'); - }, 4000); - } - }, - function(error) { - progresBar = progresBar + 20; - var checkFailedMessage; - control.set('progresBar', progresBar); - if (error.status !== 200) { - checkFailedMessage = "Service Hue Database check failed"; - var errors; - errors = checkFailedMessage; - errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>'; - control.set("errors", errors); - } - if (error.trace != null) { - var stackTrace; - stackTrace = checkFailedMessage + ':\n' + error.trace; - control.set("stackTrace", stackTrace); - } - }); - huedatabases.then(function() { - passtonext = passtonext + 20; - progresBar = progresBar + 20; - control.set('progresBar', progresBar); - control.set('huedatabasesTestDone', progresBar); - - if (huedatabases.get('configStatus') === "Success") { - control.set('huedatabasesTest', "Success"); - control.set('huedatabasesTestresult', "Hue database Connection test Successful"); - } - if (passtonext === 100) { - Ember.run.later(this, function() { - self.transitionTo('homePage'); - }, 4000); - } - }, - function(error) { - control.set('huedatabasesTest', "Success"); - control.set('huedatabasesTest', null); - progresBar = progresBar + 20; - var checkFailedMessage; - control.set('progresBar', progresBar); - control.set('huedatabasesTestresult', "Hue database Connection test Failed"); - if (error.status !== 200) { - checkFailedMessage = "Service Hue Database check failed"; - var errors; - errors = checkFailedMessage; - errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>'; - control.set("errors", errors); - } - if (error.trace !== null) { - var stackTrace; - stackTrace = checkFailedMessage + ':\n' + error.trace; - control.set("stackTrace", stackTrace); - } - }); - ambaridatabases.then(function() { - passtonext = passtonext + 20; - progresBar = progresBar + 20; - control.set('progresBar', progresBar); - control.set('ambaridatabasesTestDone', progresBar); - if (ambaridatabases.get('configStatus') === "Success") { - control.set('ambaridatabasesTest', "Success"); - control.set('ambaridatabasesTestresult', "Ambari database Connection test Successful"); - } - if (passtonext === 100) { - Ember.run.later(this, function() { - self.transitionTo('homePage'); - }, 4000); - } - }, - function(error) { - progresBar = progresBar + 20; - var checkFailedMessage; - control.set('progresBar', progresBar); - if (error.status !== 200) { - checkFailedMessage = "Service Hue Database check failed"; - var errors; - errors = checkFailedMessage; - errors += (error.message) ? (': <i>' + error.message + '</i><br>') : '<br>'; - control.set("errors", errors); - } - - if (error.trace !== null) { - var stackTrace; - stackTrace = checkFailedMessage + ':\n' + error.trace; - control.set("stackTrace", stackTrace); - } - }); - } -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js deleted file mode 100644 index ff14e60..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - -export default Ember.Route.extend({ -}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js deleted file mode 100644 index a47b93f..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-history.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - -export default Ember.Route.extend({ - - model: function() { - var store = this.store; - return Ember.RSVP.hash({ - usersdetail: store.findAll('usersdetail'), - hiveinstancedetail: store.findAll('hiveinstancedetail') - - }); - - }, - - actions: { - submitResult: function() { - this.controller.set('jobstatus', null); - this.controller.set('progressBar', null); - this.controller.set('completionStatus', null); - var migration = this.store.queryRecord('returnjobid', { - username: this.controller.get('usernamehue'), - instance: this.controller.get('instancename'), - startdate: this.controller.get('startdate'), - enddate: this.controller.get('enddate'), - jobtype: "hivehistoryquerymigration" - }); - var control = this.controller; - var store = this.store; - var repeat = this; - - migration.then(function() { - var jobid = migration.get('idforJob'); - console.log("jobid is " + jobid); - var hivehistoryqueryjobstart = store.queryRecord('startmigration', { - username: control.get('usernamehue'), - instance: control.get('instancename'), - startdate: control.get('startdate'), - enddate: control.get('enddate'), - jobid: jobid, - jobtype: "hivehistoryquerymigration" - }); - hivehistoryqueryjobstart.then(function() { - control.set('jobstatus', "0"); - repeat.progresscheck(jobid); - }); - }); - } - }, - progresscheck: function(jobid) { - var repeat = this; - var control = this.controller; - - Ember.run.later(this, function() { - var progress = this.store.queryRecord('checkprogress', { - jobid: jobid - }); - progress.then(function() { - // control.set('jobstatus',null); - var progressPercentage = progress.get('progressPercentage'); - var numberOfQueryTransfered = progress.get('numberOfQueryTransfered'); - var totalNoQuery = progress.get('totalNoQuery'); - var intanceName = progress.get('intanceName'); - var userNameofhue = progress.get('userNameofhue'); - var totalTimeTaken = progress.get('totalTimeTaken'); - var isNoQuerySelected = progress.get('isNoQuerySelected'); - - if (progressPercentage !== '100' && isNoQuerySelected === 'no') { - control.set('progressBar', progressPercentage); - repeat.progresscheck(jobid); - } - if (progressPercentage === '100' || isNoQuerySelected === 'yes') { - control.set('jobstatus', null); - control.set('completionStatus', progressPercentage); - control.set('progressBar', progressPercentage); - if (numberOfQueryTransfered === "0") { - control.set('numberOfQueryTransfered', "No Queries selected according to your criteria"); - } else { - control.set('numberOfQueryTransfered', numberOfQueryTransfered); - } - control.set('totalNoQuery', totalNoQuery); - control.set('instanceName', intanceName); - control.set('Username', userNameofhue); - control.set('totalTimeTaken', totalTimeTaken); - - } - }); - }, 500); - } -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js deleted file mode 100644 index d50a402..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/hive-saved-query.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - -export default Ember.Route.extend({ - - model: function() { - var store = this.store; - return Ember.RSVP.hash({ - usersdetail: store.findAll('usersdetail'), - hiveinstancedetail: store.findAll('hiveinstancedetail') - - }); - - }, - - actions: { - submitResult: function() { - this.controller.set('jobstatus', null); - this.controller.set('progressBar', null); - this.controller.set('completionStatus', null); - var migration = this.store.queryRecord('returnjobid', { - username: this.controller.get('usernamehue'), - instance: this.controller.get('instancename'), - startdate: this.controller.get('startdate'), - enddate: this.controller.get('enddate'), - jobtype: "hivesavedquerymigration" - }); - var control = this.controller; - var store = this.store; - var repeat = this; - - migration.then(function() { - var jobid = migration.get('idforJob'); - var hivehistoryqueryjobstart = store.queryRecord('startmigration', { - username: control.get('usernamehue'), - instance: control.get('instancename'), - startdate: control.get('startdate'), - enddate: control.get('enddate'), - jobid: jobid, - jobtype: "hivesavedquerymigration" - }); - hivehistoryqueryjobstart.then(function() { - control.set('jobstatus', "0"); - repeat.progresscheck(jobid); - }); - }); - } - }, - progresscheck: function(jobid) { - var repeat = this; - var control = this.controller; - Ember.run.later(this, function() { - var progress = this.store.queryRecord('checkprogress', { - jobid: jobid - }); - progress.then(function() { - var progressPercentage = progress.get('progressPercentage'); - var numberOfQueryTransfered = progress.get('numberOfQueryTransfered'); - var totalNoQuery = progress.get('totalNoQuery'); - var intanceName = progress.get('intanceName'); - var userNameofhue = progress.get('userNameofhue'); - var totalTimeTaken = progress.get('totalTimeTaken'); - var isNoQuerySelected = progress.get('isNoQuerySelected'); - if (progressPercentage !== '100' && isNoQuerySelected === 'no') { - control.set('progressBar', progressPercentage); - repeat.progresscheck(jobid); - } - if (progressPercentage === '100' || isNoQuerySelected === 'yes') { - control.set('jobstatus', null); - control.set('completionStatus', progressPercentage); - control.set('progressBar', progressPercentage); - if (numberOfQueryTransfered === "0") { - control.set('numberOfQueryTransfered', "No Queries selected according to your criteria"); - } else { - control.set('numberOfQueryTransfered', numberOfQueryTransfered); - } - control.set('totalNoQuery', totalNoQuery); - control.set('instanceName', intanceName); - control.set('Username', userNameofhue); - control.set('totalTimeTaken', totalTimeTaken); - - } - }); - }, 500); - } -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js deleted file mode 100644 index debb1eb..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-job.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - -export default Ember.Route.extend({ - - model: function() { - var store = this.store; - return Ember.RSVP.hash({ - usersdetail: store.findAll('usersdetail'), - piginstancedetail: store.findAll('piginstancedetail') - - }); - - }, - - actions: { - submitResult: function() { - this.controller.set('jobstatus', null); - this.controller.set('progressBar', null); - this.controller.set('completionStatus', null); - var migration = this.store.queryRecord('returnjobid', { - username: this.controller.get('usernamehue'), - instance: this.controller.get('instancename'), - startdate: this.controller.get('startdate'), - enddate: this.controller.get('enddate'), - jobtype: "pigjobmigration" - }); - var control = this.controller; - var store = this.store; - var repeat = this; - - migration.then(function() { - var jobid = migration.get('idforJob'); - var hivehistoryqueryjobstart = store.queryRecord('startmigration', { - username: control.get('usernamehue'), - instance: control.get('instancename'), - startdate: control.get('startdate'), - enddate: control.get('enddate'), - jobid: jobid, - jobtype: "pigjobmigration" - }); - hivehistoryqueryjobstart.then(function() { - control.set('jobstatus', "0"); - repeat.progresscheck(jobid); - }); - }); - } - }, - progresscheck: function(jobid) { - var repeat = this; - var control = this.controller; - Ember.run.later(this, function() { - var progress = this.store.queryRecord('checkprogress', { - jobid: jobid - }); - progress.then(function() { - var progressPercentage = progress.get('progressPercentage'); - var numberOfQueryTransfered = progress.get('numberOfQueryTransfered'); - var totalNoQuery = progress.get('totalNoQuery'); - var intanceName = progress.get('intanceName'); - var userNameofhue = progress.get('userNameofhue'); - var totalTimeTaken = progress.get('totalTimeTaken'); - var isNoQuerySelected = progress.get('isNoQuerySelected'); - if (progressPercentage !== '100' && isNoQuerySelected === 'no') { - control.set('progressBar', progressPercentage); - repeat.progresscheck(jobid); - } - if (progressPercentage === '100' || isNoQuerySelected === 'yes') { - control.set('jobstatus', null); - control.set('completionStatus', progressPercentage); - control.set('progressBar', progressPercentage); - if (numberOfQueryTransfered === "0") { - control.set('numberOfQueryTransfered', "No Queries selected according to your criteria"); - } else { - control.set('numberOfQueryTransfered', numberOfQueryTransfered); - } - control.set('totalNoQuery', totalNoQuery); - control.set('instanceName', intanceName); - control.set('Username', userNameofhue); - control.set('totalTimeTaken', totalTimeTaken); - - } - }); - }, 500); - } -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js deleted file mode 100644 index ab0b919..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/pig-script.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - -export default Ember.Route.extend({ - - model: function() { - var store = this.store; - return Ember.RSVP.hash({ - usersdetail: store.findAll('usersdetail'), - piginstancedetail: store.findAll('piginstancedetail') - - }); - - }, - - actions: { - submitResult: function() { - this.controller.set('jobstatus', null); - this.controller.set('progressBar', null); - this.controller.set('completionStatus', null); - var migration = this.store.queryRecord('returnjobid', { - username: this.controller.get('usernamehue'), - instance: this.controller.get('instancename'), - startdate: this.controller.get('startdate'), - enddate: this.controller.get('enddate'), - jobtype: "pigsavedscriptmigration" - }); - var control = this.controller; - var store = this.store; - var repeat = this; - - migration.then(function() { - var jobid = migration.get('idforJob'); - var hivehistoryqueryjobstart = store.queryRecord('startmigration', { - username: control.get('usernamehue'), - instance: control.get('instancename'), - startdate: control.get('startdate'), - enddate: control.get('enddate'), - jobid: jobid, - jobtype: "pigsavedscriptmigration" - }); - hivehistoryqueryjobstart.then(function() { - control.set('jobstatus', "0"); - repeat.progresscheck(jobid); - }); - }); - } - }, - progresscheck: function(jobid) { - var repeat = this; - var control = this.controller; - Ember.run.later(this, function() { - var progress = this.store.queryRecord('checkprogress', { - jobid: jobid - }); - progress.then(function() { - // control.set('jobstatus',null); - var progressPercentage = progress.get('progressPercentage'); - var numberOfQueryTransfered = progress.get('numberOfQueryTransfered'); - var totalNoQuery = progress.get('totalNoQuery'); - var intanceName = progress.get('intanceName'); - var userNameofhue = progress.get('userNameofhue'); - var totalTimeTaken = progress.get('totalTimeTaken'); - var isNoQuerySelected = progress.get('isNoQuerySelected'); - if (progressPercentage !== '100' && isNoQuerySelected === 'no') { - control.set('progressBar', progressPercentage); - repeat.progresscheck(jobid); - } - if (progressPercentage === '100' || isNoQuerySelected === 'yes') { - control.set('jobstatus', null); - control.set('completionStatus', progressPercentage); - control.set('progressBar', progressPercentage); - if (numberOfQueryTransfered === "0") { - control.set('numberOfQueryTransfered', "No Queries selected according to your criteria"); - } else { - control.set('numberOfQueryTransfered', numberOfQueryTransfered); - } - control.set('totalNoQuery', totalNoQuery); - control.set('instanceName', intanceName); - control.set('Username', userNameofhue); - control.set('totalTimeTaken', totalTimeTaken); - - } - }); - }, 500); - } -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js deleted file mode 100644 index b34b5ed..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/home-page/revert-change.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - - -export default Ember.Route.extend({ - - model: function() { - var store = this.store; - return Ember.RSVP.hash({ - allinstancedetail: store.findAll('allinstancedetail') - }); - }, - - actions: { - submitResult: function() { - this.controller.set('jobstatus', null); - this.controller.set('progressBar', null); - this.controller.set('completionStatus', null); - var migration = this.store.queryRecord('returnjobidforrevertchange', { - instance: this.controller.get('instancename'), - revertdate: this.controller.get('revertdate') - }); - var control = this.controller; - var store = this.store; - var repeat = this; - migration.then(function() { - var jobid = migration.get('idforJob'); - var hivehistoryqueryjobstart = store.queryRecord('startrevertchange', { - instance: control.get('instancename'), - revertdate: control.get('revertdate'), - jobid: jobid - }); - hivehistoryqueryjobstart.then(function() { - control.set('jobstatus', "0"); - repeat.progresscheck(jobid); - }); - }); - } - }, - - progresscheck: function(jobid) { - - var repeat = this; - var control = this.controller; - Ember.run.later(this, function() { - var progress = this.store.queryRecord('checkprogress', { - jobid: jobid - }); - progress.then(function() { - - var progressPercentage = progress.get('progressPercentage'); - var numberOfQueryTransfered = progress.get('numberOfQueryTransfered'); - var totalNoQuery = progress.get('totalNoQuery'); - var intanceName = progress.get('intanceName'); - var userNameofhue = progress.get('userNameofhue'); - var totalTimeTaken = progress.get('totalTimeTaken'); - //var jobtype=progress.get('jobtype'); - var isNoQuerySelected = progress.get('isNoQuerySelected'); - if (progressPercentage !== '100' && isNoQuerySelected === 'no') { - control.set('progressBar', progressPercentage); - repeat.progresscheck(jobid); - } - if (progressPercentage === '100' || isNoQuerySelected === 'yes') { - control.set('jobstatus', null); - control.set('completionStatus', progressPercentage); - control.set('progressBar', progressPercentage); - if (numberOfQueryTransfered === "0") { - control.set('numberOfQueryTransfered', "No Queries selected according to your criteria"); - } else { - control.set('numberOfQueryTransfered', numberOfQueryTransfered); - } - control.set('totalNoQuery', totalNoQuery); - control.set('instanceName', intanceName); - control.set('Username', userNameofhue); - control.set('totalTimeTaken', totalTimeTaken); - } - }); - }, 500); - } - -}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js deleted file mode 100644 index 80f2600..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Ember from 'ember'; - -export default Ember.Route.extend({ - beforeModel() { - this.transitionTo('check-configuration'); - } -}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js deleted file mode 100644 index 6e1291b..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/serializers/application.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import DS from 'ember-data'; -export default DS.RESTSerializer.extend({}); http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css deleted file mode 100644 index 3196113..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.css +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -body{ -padding-top:10px; -} - -nav.active -{ -font-weight: bold; -} http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss deleted file mode 100644 index dbea46e..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/styles/app.scss +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@import "ember-power-select"; http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs deleted file mode 100644 index 4e484d3..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/application.hbs +++ /dev/null @@ -1,24 +0,0 @@ -{{! - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -}} -<div class="container"> - {{outlet}} - -</div> - - - http://git-wip-us.apache.org/repos/asf/ambari/blob/283256c8/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/check-configuration.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/check-configuration.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/check-configuration.hbs deleted file mode 100644 index ad666be..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/check-configuration.hbs +++ /dev/null @@ -1,153 +0,0 @@ -{{! -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -}} -<div class="container-fluid"> - <h1>Welcome to HueMigration View - </h1> - <h2>Please wait... - </h2> - {{#if errors}} - <div class="progress progress-striped active"> - <div id="progressbarhivesavedquery" class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progresBar}}%"> - </div> - </div> - {{else}} - <div class="progress progress-striped active"> - <div id="progressbarhivesavedquery" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progresBar}}%"> - </div> - </div> - {{/if}} - <table class="table"> - <tbody> - <tr> - <td> - {{#if huehttpurlTestDone}} - {{#if huehttpurlTest}} - <span class="glyphicon glyphicon-ok green"> - </span> - {{else}} - <span class="glyphicon glyphicon-remove red"> - </span> - {{/if}} - {{else}} - <span class="glyphicon glyphicon-arrow-right"> - </span> - {{/if}} - </td> - <td> - Hue Http Test - </td> - </tr> - <tr> - <td> - {{#if huewebhdfsurlTestDone}} - {{#if huewebhdfsurlTest}} - <span class="glyphicon glyphicon-ok green"> - </span> - {{else}} - <span class="glyphicon glyphicon-remove red"> - </span> - {{/if}} - {{else}} - <span class="glyphicon glyphicon-arrow-right"> - </span> - {{/if}} - </td> - <td> - Hue Webhdfs Test - </td> - </tr> - <tr> - <td> - {{#if ambariwebhdfsTestDone}} - {{#if ambariwebhdfsTest}} - <span class="glyphicon glyphicon-ok green"> - </span> - {{else}} - <span class="glyphicon glyphicon-remove red"> - </span> - {{/if}} - {{else}} - <span class="glyphicon glyphicon-arrow-right"> - </span> - {{/if}} - </td> - <td> - Ambari Webhdfs Test - </td> - </tr> - <tr> - <td> - {{#if huedatabasesTestDone}} - {{#if huedatabasesTest}} - <span class="glyphicon glyphicon-ok green"> - </span> - {{else}} - <span class="glyphicon glyphicon-remove red"> - </span> - {{/if}} - {{else}} - <span class="glyphicon glyphicon-arrow-right"> - </span> - {{/if}} - </td> - <td> - Hue Database Test - </td> - </tr> - <tr> - <td> - {{#if ambaridatabasesTestDone}} - {{#if ambaridatabasesTest}} - <span class="glyphicon glyphicon-ok green"> - </span> - {{else}} - <span class="glyphicon glyphicon-remove red"> - </span> - {{/if}} - {{else}} - <span class="glyphicon glyphicon-arrow-right"> - </span> - {{/if}} - </td> - <td> - Ambari Database Test - </td> - </tr> - </tbody> - </table> - {{#if errors}} - <h3>Issues detected - </h3> - <p>{{{errors}}} - </p> - {{/if}} - {{#if stackTrace}} - <a href="#" {{action "toggleStackTrace" post}}> - {{#if isExpanded}} - <span class="glyphicon glyphicon-collapse-down"> - </span> Collapse Stack Trace - {{else}} - <span class="glyphicon glyphicon-expand"> - </span> Expand Stack Trace - {{/if}} - </a> - {{#if isExpanded}} - <pre class="prettyprint"> - {{stackTrace}} - </pre> - {{/if}} - {{/if}} -</div>