Repository: ambari Updated Branches: refs/heads/trunk 259279cd6 -> 6f4a9c288
http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page.hbs new file mode 100644 index 0000000..60fccf3 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page.hbs @@ -0,0 +1,42 @@ +{{! + 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. +}} +<nav class="navbar navbar-default"> + <div class="container-fluid"> + <ul class="nav navbar-nav"> + <li class="dropdown nav-tab"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Hive <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li>{{#link-to 'homePage.hive-history'}}HiveHistory Query{{/link-to}}</li> + <li>{{#link-to 'homePage.hive-saved-query'}}HiveSaved Query{{/link-to}}</li> + </ul> + </li> + <li class="dropdown nav-tab"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Pig <span class="caret"></span></a> + <ul class="dropdown-menu"> + <li>{{#link-to 'homePage.pig-script'}}PigSaved script{{/link-to}}</li> + <li>{{#link-to 'homePage.pig-job'}}PigJob{{/link-to}}</li> + </ul> + </li> + <li>{{#link-to 'homePage.revert-change'}}RevertChange{{/link-to}}</li> + </ul> + </div> +</nav> + +<div class="container"> + {{outlet}} + +</div> + http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-history.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-history.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-history.hbs new file mode 100644 index 0000000..b43e49f --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-history.hbs @@ -0,0 +1,125 @@ +{{! +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="panel panel-default"> + <div class="panel-heading"> + <h3>History Query Migration + </h3> + </div> + <div class="panel-body"> + <div class="row"> + <div class="col-sm-3"> + User Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.usersdetail optionValuePath="content.username" optionLabelPath="content.username" value=usernamehue placeholder="Select an userName" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Instance Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.hiveinstancedetail optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename placeholder="Select an Instance name" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Start Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=startdate valueFormat='YYYY-MM-DD' name="startdate" id="startdate" value=startdate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + End Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=enddate valueFormat='YYYY-MM-DD' name="enddate" id="enddate" value=enddate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit</button> + </div> + <div class="col-sm-3"> + {{#if jobstatus}} + <h5> + <font color="green">Job has been Submitted. + </font> + </h5> + {{/if}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-9"> + {{#if jobstatus}} + <br> + <div class="progress" id="progressbar" style=""> + <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progressBar}}%"> + </div> + </div> + {{/if}} + </div> + </div> + <div class="row"> + <div class="col-sm-9"> + {{#if completionStatus}} + <h2>Migration Report + </h2> + <table class="table table-hover"> + <thead> + <tr> + <th>Parameters</th> + <th>Status</th> + </tr> + </thead> + <tbody> + <tr> + <td>Number of Query Transferred</td> + <td>{{numberOfQueryTransfered}}</td> + </tr> + <tr> + <td>Total Number of Queries</td> + <td>{{totalNoQuery}}</td> + </tr> + <tr> + <td>Total Time Taken</td><td>{{totalTimeTaken}}ms</td> + </tr> + <tr> + <td>Hue User Name(Source)</td> + <td>{{Username}}</td> + </tr> + <tr> + <td>Ambari Instance Name(Target)</td> + <td>{{instanceName}}</td> + </tr> + </tbody> + </table> + {{/if}} + </div> + </div> + </div> +</div> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-saved-query.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-saved-query.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-saved-query.hbs new file mode 100644 index 0000000..c755446 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/hive-saved-query.hbs @@ -0,0 +1,126 @@ +{{! +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="panel panel-default"> + <div class="panel-heading"> + <h3>Saved Query Migration + </h3> + </div> + <div class="panel-body"> + <div class="row"> + <div class="col-sm-3"> + User Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.usersdetail optionValuePath="content.username" optionLabelPath="content.username" value=usernamehue placeholder="Select an userName" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Instance Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.hiveinstancedetail optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename placeholder="Select an Instance name" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Start Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=startdate valueFormat='YYYY-MM-DD' name="startdate" id="startdate" value=startdate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + End Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=enddate valueFormat='YYYY-MM-DD' name="enddate" id="enddate" value=enddate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit</button> + </div> + <div class="col-sm-3"> + {{#if jobstatus}} + <h5> + <font color="green">Job has been Submitted. + </font> + </h5> + {{/if}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-9"> + {{#if jobstatus}} + <br> + <div class="progress" id="progressbar" style=""> + <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progressBar}}%"> + </div> + </div> + {{/if}} + </div> + </div> + <div class="row"> + <div class="col-sm-9"> + {{#if completionStatus}} + <h2>Migration Report + </h2> + <table class="table table-hover"> + <thead> + <tr> + <th>Parameters</th> + <th>Status</th> + </tr> + </thead> + <tbody> + <tr> + <td>Number of Query Transferred</td> + <td>{{numberOfQueryTransfered}}</td> + </tr> + <tr> + <td>Total Number of Queries</td> + <td>{{totalNoQuery}}</td> + </tr> + <tr> + <td>Total Time Taken</td> + <td>{{totalTimeTaken}}ms</td> + </tr> + <tr> + <td>Hue User Name(Source)</td> + <td>{{Username}}</td> + </tr> + <tr> + <td>Ambari Instance Name(Target)</td> + <td>{{instanceName}}</td> + </tr> + </tbody> + </table> + {{/if}} + </div> + </div> + </div> +</div> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-job.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-job.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-job.hbs new file mode 100644 index 0000000..4562ce3 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-job.hbs @@ -0,0 +1,127 @@ +{{! +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="panel panel-default"> + <div class="panel-heading"> + <h3>Pig Job Migration + </h3> + </div> + <div class="panel-body"> + <div class="row"> + <div class="col-sm-3"> + User Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.usersdetail optionValuePath="content.username" optionLabelPath="content.username" value=usernamehue placeholder="Select an userName" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Instance Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.piginstancedetail optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename placeholder="Select an Instance name" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Start Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=startdate valueFormat='YYYY-MM-DD' name="startdate" id="startdate" value=startdate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + End Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=enddate valueFormat='YYYY-MM-DD' name="enddate" id="enddate" value=enddate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit + </button> + </div> + <div class="col-sm-3"> + {{#if jobstatus}} + <h5> + <font color="green">Job has been Submitted. + </font> + </h5> + {{/if}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-9"> + {{#if jobstatus}} + <br> + <div class="progress" id="progressbar" style=""> + <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progressBar}}%"> + </div> + </div> + {{/if}} + </div> + </div> + <div class="row"> + <div class="col-sm-9"> + {{#if completionStatus}} + <h2>Migration Report + </h2> + <table class="table table-hover"> + <thead> + <tr> + <th>Parameters</th> + <th>Status</th> + </tr> + </thead> + <tbody> + <tr> + <td>Number of Query Transferred</td> + <td>{{numberOfQueryTransfered}}</td> + </tr> + <tr> + <td>Total Number of Queries</td> + <td>{{totalNoQuery}}</td> + </tr> + <tr> + <td>Total Time Taken</td> + <td>{{totalTimeTaken}}ms</td> + </tr> + <tr> + <td>Hue User Name(Source)</td> + <td>{{Username}}</td> + </tr> + <tr> + <td>Ambari Instance Name(Target)</td> + <td>{{instanceName}}</td> + </tr> + </tbody> + </table> + {{/if}} + </div> + </div> + </div> +</div> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-script.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-script.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-script.hbs new file mode 100644 index 0000000..425b6ea --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/pig-script.hbs @@ -0,0 +1,127 @@ +{{! +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="panel panel-default"> + <div class="panel-heading"> + <h3>Saved Script Migration + </h3> + </div> + <div class="panel-body"> + <div class="row"> + <div class="col-sm-3"> + User Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.usersdetail optionValuePath="content.username" optionLabelPath="content.username" value=usernamehue placeholder="Select an userName" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Instance Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.piginstancedetail optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename placeholder="Select an Instance name" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Start Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=startdate valueFormat='YYYY-MM-DD' name="startdate" id="startdate" value=startdate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + End Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=enddate valueFormat='YYYY-MM-DD' name="enddate" id="enddate" value=enddate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit + </button> + </div> + <div class="col-sm-3"> + {{#if jobstatus}} + <h5> + <font color="green">Job has been Submitted. + </font> + </h5> + {{/if}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-9"> + {{#if jobstatus}} + <br> + <div class="progress" id="progressbar" style=""> + <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progressBar}}%"> + </div> + </div> + {{/if}} + </div> + </div> + <div class="row"> + <div class="col-sm-9"> + {{#if completionStatus}} + <h2>Migration Report + </h2> + <table class="table table-hover"> + <thead> + <tr> + <th>Parameters</th> + <th>Status</th> + </tr> + </thead> + <tbody> + <tr> + <td>Number of Query Transferred</td> + <td>{{numberOfQueryTransfered}}</td> + </tr> + <tr> + <td>Total Number of Queries</td> + <td>{{totalNoQuery}}</td> + </tr> + <tr> + <td>Total Time Taken</td> + <td>{{totalTimeTaken}}ms</td> + </tr> + <tr> + <td>Hue User Name(Source)</td> + <td>{{Username}}</td> + </tr> + <tr> + <td>Ambari Instance Name(Target)</td> + <td>{{instanceName}}</td> + </tr> + </tbody> + </table> + {{/if}} + </div> + </div> + </div> +</div> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/revert-change.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/revert-change.hbs b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/revert-change.hbs new file mode 100644 index 0000000..a3ea43d --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/templates/home-page/revert-change.hbs @@ -0,0 +1,99 @@ +{{! +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="panel panel-default"> + <div class="panel-heading"> + <h3>Revert Change + </h3> + </div> + <div class="panel-body"> + <div class="row"> + <div class="col-sm-3"> + Instance Name + <font size="3" color="red"> * + </font> + </div> + <div class="col-sm-3"> + {{ember-selectize content=model.allinstancedetail optionValuePath="content.instanceName" optionLabelPath="content.instanceName" value=instancename placeholder="Select an Instance name" }} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + Revert Date + </div> + <div class="col-sm-9"> + {{date-picker size="35" date=startdate valueFormat='YYYY-MM-DD HH:MM:SS' name="revertdate" id="revertdate" value=revertdate}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-3"> + <button class="btn btn-success" {{action 'submitResult'}} disabled={{jobstatus}}>Submit + </button> + </div> + <div class="col-sm-3"> + {{#if jobstatus}} + <h5> + <font color="green">Job has been Submitted. + </font> + </h5> + {{/if}} + </div> + </div> + <br> + <div class="row"> + <div class="col-sm-9"> + {{#if jobstatus}} + <br> + <div class="progress" id="progressbar" style=""> + <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50" style="width:{{progressBar}}%"> + </div> + </div> + {{/if}} + </div> + </div> + <div class="row"> + <div class="col-sm-9"> + {{#if completionStatus}} + <h2>RevertChange Report + </h2> + <table class="table table-hover"> + <thead> + <tr> + <th>Parameters</th> + <th>Status</th> + </tr> + </thead> + <tbody> + <tr> + <td>Total Number of Query Reverted</td> + <td>{{numberOfQueryTransfered}}</td> + </tr> + <tr> + <td>Total Time Taken</td> + <td>{{totalTimeTaken}}ms</td> + </tr> + <tr> + <td>Instance Name</td> + <td>{{instanceName}}</td> + </tr> + </tbody> + </table> + {{/if}} + </div> + </div> + </div> +</div> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/bower.json ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/bower.json b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/bower.json new file mode 100644 index 0000000..f80b9ad --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/bower.json @@ -0,0 +1,14 @@ +{ + "name": "hueambarimigration-view", + "dependencies": { + "ember": "~2.4.3", + "ember-cli-shims": "0.1.1", + "ember-cli-test-loader": "0.2.2", + "ember-qunit-notifications": "0.1.0", + "bootstrap": "^3.3.6", + "pikaday": "^1.4.0", + "moment": "^2.13.0", + "selectize": "miguelcobain/selectize.js#master", + "pace": "^1.0.2" + } +} http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/config/environment.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/config/environment.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/config/environment.js new file mode 100644 index 0000000..07b1e26 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/config/environment.js @@ -0,0 +1,63 @@ +/** + * 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. + */ + +module.exports = function(environment) { + var ENV = { + modulePrefix: 'hueambarimigration-view', + environment: environment, + baseURL: '/', + locationType: 'hash', + EmberENV: { + FEATURES: { + // Here you can enable experimental features on an ember canary build + // e.g. 'with-controller': true + } + }, + + APP: { + // Here you can pass flags/options to your application instance + // when it is created + } + }; + + if (environment === 'development') { + // ENV.APP.LOG_RESOLVER = true; + ENV.APP.LOG_ACTIVE_GENERATION = true; + // ENV.APP.LOG_TRANSITIONS = true; + // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; + ENV.APP.LOG_VIEW_LOOKUPS = true; + } + + if (environment === 'test') { + // Testem prefers this... + ENV.baseURL = '/'; + ENV.locationType = 'auto'; + + // keep test console output quieter + ENV.APP.LOG_ACTIVE_GENERATION = false; + ENV.APP.LOG_VIEW_LOOKUPS = false; + + ENV.APP.rootElement = '#ember-testing'; + } + + if (environment === 'production') { + + } + + return ENV; +}; http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/ember-cli-build.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/ember-cli-build.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/ember-cli-build.js new file mode 100644 index 0000000..002bf1c --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/ember-cli-build.js @@ -0,0 +1,61 @@ +/** + * 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. + */ + +/*jshint node:true*/ +/* global require, module */ +var EmberApp = require('ember-cli/lib/broccoli/ember-app'); + +module.exports = function(defaults) { + var app = new EmberApp(defaults, { + + // Add options here + }); + + // Use `app.import` to add additional libraries to the generated + // output files. + // + // If you need to use different assets in different + // environments, specify an object as the first parameter. That + // object's keys should be the environment name and the values + // should be the asset to use in that environment. + // + // If the library that you are including contains AMD or ES6 + // modules that you would like to import into your application + // please specify an object with the list of modules as keys + // along with the exports of each module as its value. + + app.import('bower_components/bootstrap/dist/css/bootstrap.css'); + app.import('bower_components/bootstrap/dist/css/bootstrap.css.map',{ + destDir: 'assets' + }); + app.import('bower_components/bootstrap/dist/js/bootstrap.js'); + app.import('bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff', { + destDir: 'fonts' + }); + app.import('bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2', { + destDir: 'fonts' + }); + app.import('bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf', { + destDir: 'fonts' + }); + + + + + return app.toTree(); +}; http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/package.json ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/package.json b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/package.json new file mode 100644 index 0000000..b9f832e --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/package.json @@ -0,0 +1,51 @@ +{ + "name": "hueambarimigration-view", + "version": "0.0.0", + "description": "Small description for hueambarimigration-view goes here", + "private": true, + "directories": { + "doc": "doc", + "test": "tests" + }, + "scripts": { + "start": "ember server", + "build": "ember build", + "test": "ember test", + "preinstall": "chmod +x node/npm/bin/node-gyp-bin/node-gyp", + "postinstall": "bash node/with_new_path.sh node node_modules/.bin/bower --allow-root install" + + }, + "repository": "", + "engines": { + "node": ">= 0.10.0" + }, + "author": "", + "license": "MIT", + "devDependencies": { + "bower": "1.7.2", + "broccoli-asset-rev": "^2.4.2", + "ember-ajax": "0.7.1", + "ember-cli": "2.4.3", + "ember-cli-app-version": "^1.0.0", + "ember-cli-auto-complete": "^0.2.1", + "ember-cli-babel": "^5.1.6", + "ember-cli-datepicker": "2.0.1", + "ember-cli-dependency-checker": "^1.2.0", + "ember-cli-htmlbars": "^1.0.3", + "ember-cli-htmlbars-inline-precompile": "^0.3.1", + "ember-cli-inject-live-reload": "^1.4.0", + "ember-cli-pace": "0.1.0", + "ember-cli-qunit": "^1.4.0", + "ember-cli-release": "0.2.8", + "ember-cli-selectize": "0.5.3", + "ember-cli-sri": "^2.1.0", + "ember-cli-uglify": "^1.2.0", + "ember-data": "^2.4.2", + "ember-export-application-global": "^1.0.5", + "ember-load-initializers": "^0.5.1", + "ember-power-select": "0.10.4", + "ember-resolver": "^2.0.3", + "emberx-select": "2.1.2", + "loader.js": "^4.0.1" + } +} http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/crossdomain.xml ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/crossdomain.xml b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/crossdomain.xml new file mode 100644 index 0000000..0c16a7a --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/crossdomain.xml @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> +<cross-domain-policy> + <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html --> + + <!-- Most restrictive policy: --> + <site-control permitted-cross-domain-policies="none"/> + + <!-- Least restrictive policy: --> + <!-- + <site-control permitted-cross-domain-policies="all"/> + <allow-access-from domain="*" to-ports="*" secure="false"/> + <allow-http-request-headers-from domain="*" headers="*" secure="false"/> + --> +</cross-domain-policy> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/robots.txt ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/robots.txt b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/robots.txt new file mode 100644 index 0000000..f591645 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/public/robots.txt @@ -0,0 +1,3 @@ +# http://www.robotstxt.org +User-agent: * +Disallow: http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/testem.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/testem.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/testem.js new file mode 100644 index 0000000..30c6f0e --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/testem.js @@ -0,0 +1,29 @@ +/* + * 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. +*/ +module.exports = { + "framework": "qunit", + "test_page": "tests/index.html?hidepassed", + "disable_watching": true, + "launch_in_ci": [ + "PhantomJS" + ], + "launch_in_dev": [ + "PhantomJS", + "Chrome" + ] +}; http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/.jshintrc ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/.jshintrc b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/.jshintrc new file mode 100644 index 0000000..113e158 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/.jshintrc @@ -0,0 +1,53 @@ +{ + "predef": [ + "document", + "window", + "location", + "setTimeout", + "$", + "-Promise", + "define", + "console", + "visit", + "exists", + "fillIn", + "click", + "select", + "keyEvent", + "triggerEvent", + "find", + "findWithAssert", + "wait", + "DS", + "andThen", + "currentURL", + "currentPath", + "currentRouteName" + ], + "node": false, + "browser": false, + "boss": true, + "curly": true, + "debug": false, + "devel": false, + "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/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/destroy-app.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/destroy-app.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/destroy-app.js new file mode 100644 index 0000000..a0fb910 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/destroy-app.js @@ -0,0 +1,22 @@ +/** + * 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 function destroyApp(application) { + Ember.run(application, 'destroy'); +} http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/module-for-acceptance.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/module-for-acceptance.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/module-for-acceptance.js new file mode 100644 index 0000000..541b4ed --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/module-for-acceptance.js @@ -0,0 +1,40 @@ +/** + * 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 { module } from 'qunit'; +import startApp from '../helpers/start-app'; +import destroyApp from '../helpers/destroy-app'; + +export default function(name, options = {}) { + module(name, { + beforeEach() { + this.application = startApp(); + + if (options.beforeEach) { + options.beforeEach.apply(this, arguments); + } + }, + + afterEach() { + if (options.afterEach) { + options.afterEach.apply(this, arguments); + } + + destroyApp(this.application); + } + }); +} http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/resolver.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/resolver.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/resolver.js new file mode 100644 index 0000000..e64a9de --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/resolver.js @@ -0,0 +1,28 @@ +/** + * 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 '../../resolver'; +import config from '../../config/environment'; + +const resolver = Resolver.create(); + +resolver.namespace = { + modulePrefix: config.modulePrefix, + podModulePrefix: config.podModulePrefix +}; + +export default resolver; http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/start-app.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/start-app.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/start-app.js new file mode 100644 index 0000000..01841f7 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/helpers/start-app.js @@ -0,0 +1,35 @@ +/** + * 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 Application from '../../app'; +import config from '../../config/environment'; + +export default function startApp(attrs) { + let application; + + let attributes = Ember.merge({}, config.APP); + attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; + + Ember.run(() => { + application = Application.create(attributes); + application.setupForTesting(); + application.injectTestHelpers(); + }); + + return application; +} http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/index.html ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/index.html b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/index.html new file mode 100644 index 0000000..ba794e5 --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/index.html @@ -0,0 +1,48 @@ +<!--- +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 Tests</title> + <meta name="description" content=""> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + {{content-for "head"}} + {{content-for "test-head"}} + + <link rel="stylesheet" href="assets/vendor.css"> + <link rel="stylesheet" href="assets/hueambarimigration-view.css"> + <link rel="stylesheet" href="assets/test-support.css"> + + {{content-for "head-footer"}} + {{content-for "test-head-footer"}} + </head> + <body> + {{content-for "body"}} + {{content-for "test-body"}} + + <script src="testem.js" integrity=""></script> + <script src="assets/vendor.js"></script> + <script src="assets/test-support.js"></script> + <script src="assets/hueambarimigration-view.js"></script> + <script src="assets/tests.js"></script> + <script src="assets/test-loader.js"></script> + + {{content-for "body-footer"}} + {{content-for "test-body-footer"}} + </body> +</html> http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/test-helper.js ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/test-helper.js b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/test-helper.js new file mode 100644 index 0000000..4f1456b --- /dev/null +++ b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/tests/test-helper.js @@ -0,0 +1,25 @@ +/** + * 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 './helpers/resolver'; +import registerSelectHelper from './helpers/register-select-helper'; +registerSelectHelper(); +import { + setResolver +} from 'ember-qunit'; + +setResolver(resolver); http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/vendor/.gitkeep ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/vendor/.gitkeep b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/vendor/.gitkeep new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/package.json ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/package.json b/contrib/views/hueambarimigration/src/main/resources/ui/package.json deleted file mode 100644 index 8d16a01..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "huetoambari", - "version": "0.0.0", - "private": true, - "directories": { - "doc": "doc", - "test": "tests" - }, - "scripts": { - "start": "ember server", - "build": "ember build", - "test": "ember test", - "preinstall": "chmod +x node/npm/bin/node-gyp-bin/node-gyp", - "postinstall": "bash node/with_new_path.sh node node_modules/.bin/bower --allow-root install" - }, - - "engines": { - "node": ">= 0.10.32" - }, - "author": "", - "license": "MIT", - "devDependencies": { - - "bower": ">= 1.3.12" - - } -} http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/pigjobmigration.jsp ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/pigjobmigration.jsp b/contrib/views/hueambarimigration/src/main/resources/ui/pigjobmigration.jsp deleted file mode 100644 index 6e8471a..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/pigjobmigration.jsp +++ /dev/null @@ -1,233 +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. ---> - -<!DOCTYPE html> -<html> -<head> -<title>bootstrap datepicker examples</title> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - -<script type="text/javascript"> - function pigjobquery1() { - - var startdate = document.getElementById('startdate4').value; - var enddate = document.getElementById('enddate4').value; - - var uname = document.getElementById("username4"); - uname = uname.options[uname.selectedIndex].value; - var instance = document.getElementById("instance4"); - instance = instance.options[instance.selectedIndex].value; - - if (uname == "default") { - alert("Please select an username"); - } else if (instance == "default") { - alert("Please select an instance name"); - } else { - $('#progressbar').show(); - $('#lines').hide(); - pigjob(uname, startdate, enddate, instance); - interval = setInterval(loadpercentage, 1000 ); - } - - } - - function loadpercentage() { - $.ajax({ - url : "ProgressBarStatus", - success : function(result) { - $('#progressbarhivesavedquery').css('width', result); - console.log("Got the precentage completion "+ result); - }, - - }); - } - - function pigjob(uname, startdate, enddate, instance) { - - var url = "Pigjobsevlet?username=" + uname + "&startdate=" - + startdate + "&enddate=" + enddate + "&instance=" + instance; - - $.ajax({ - url : url, - success : function(result) { - console.log("Got Result"); - document.getElementById("lines").innerHTML = result; - clearInterval(interval); - $('#progressbar').hide() - $('#lines').show() - } - }); - - } -</script> -<%@ page import="java.sql.*"%> -<%@ page import="org.sqlite.*"%> -<%@ page import="java.util.ArrayList"%> -<%@ page import="org.apache.ambari.view.huetoambarimigration.datasource.DataSourceAmbariDatabase"%> -<%@ page import="org.apache.ambari.view.huetoambarimigration.datasource.DataSourceHueDatabase"%> -<%@ page import="javax.servlet.ServletConfig"%> -<%@ page import="javax.servlet.ServletContext"%> -<%@ page import="org.apache.ambari.view.ViewContext"%> - -</head> -<% - ArrayList<String> username = new ArrayList<String>(); - ArrayList<String> instancename = new ArrayList<String>(); - int i; - - Connection conn = null; - - ServletContext context = request.getServletContext(); - ViewContext view=(ViewContext) context.getAttribute(ViewContext.CONTEXT_ATTRIBUTE); - - conn = DataSourceHueDatabase.getInstance(view.getProperties().get("huedrivername"),view.getProperties().get("huejdbcurl"),view.getProperties().get("huedbusername"),view.getProperties().get("huedbpassword")).getConnection(); - Statement stat = conn.createStatement(); - - ResultSet rs = stat.executeQuery("select * from auth_user;"); - - while (rs.next()) { - username.add(rs.getString(2)); - } - - rs.close(); - - Connection c = null; - Statement stmt = null; - - - c = DataSourceAmbariDatabase.getInstance(view.getProperties().get("ambaridrivername"),view.getProperties().get("ambarijdbcurl"),view.getProperties().get("ambaridbusername"),view.getProperties().get("ambaridbpassword")).getConnection(); - c.setAutoCommit(false); - stmt = c.createStatement(); - - ResultSet rs1=null; - - if(view.getProperties().get("ambaridrivername").contains("oracle")) - { - rs1 = stmt - .executeQuery("select distinct(view_instance_name) as instancename from viewentity where view_name='PIG{1.0.0}'"); - } - else - { - rs1 = stmt - .executeQuery("select distinct(view_instance_name) as instancename from viewentity where view_name='PIG{1.0.0}';"); - } - - - while (rs1.next()) { - instancename.add(rs1.getString(1)); - - } - rs1.close(); - stmt.close(); - -%> -<div class="row"> - <div class="col-sm-12"> - <form method="GET" onSubmit="pigjobquery()"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3>Pig Job Migration</h3> - </div> - <div class="panel-body"> - <div class="row"> - <div class="col-sm-3"> - UserName<font size="3" color="red"> *</font> - </div> - <div class="col-sm-3"> - <!-- <input type="text" placeholder="Enter username(*)" name="username4" id="username4"> --> - <select class="form-control" name="username4" - placeholder="User name" id="username4" required> - <option value="default" selected>Select below</option> - <option value="all">ALL User</option> - - <% - for (i = 0; i < username.size(); i++) { - %><option value="<%=username.get(i)%>"><%=username.get(i)%></option> - <% - } - %> - <% - username.clear(); - %> - </select> - </div> - </div> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-3"> - Instance name<font size="3" color="red"> *</font> - </div> - <div class="col-sm-3"> - <!-- <input type="text" placeholder="Enter Instance Name(*)" name="instance4" id="instance4"> --> - <select class="form-control" name="instance4" - placeholder="Instance name" id="instance4" required> - <option value="default" selected>Select below</option> - - <% - for (i = 0; i < instancename.size(); i++) { - %><option value="<%=instancename.get(i)%>"><%=instancename.get(i)%></option> - <% - } - %> - <% - instancename.clear(); - %> - </select> - </div> - </div> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-3">Start Date</div> - <div class="col-sm-3"> - <input type="date" placeholder="Enter date" name="startdate4" - id="startdate4"> - </div> - </div> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-3">End Date</div> - <div class="col-sm-3"> - <input type="date" placeholder="Enter date" name="enddate4" - id="enddate4"> - </div> - </div> - - <div class="row"> - - <div class="col-sm-3"> - <input type="button" id="submit" class="btn btn-success" - value="submit" onclick="pigjobquery1()"> - </div> - </div> - - <div id="lines" style="display: none;"></div> - - <br> - <br> - - <div class="progress" id="progressbar" style="display: none;"> - <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:0%"> - </div> - </div> - </div> - </form> - </div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/pigscriptsmigration.jsp ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/pigscriptsmigration.jsp b/contrib/views/hueambarimigration/src/main/resources/ui/pigscriptsmigration.jsp deleted file mode 100644 index 090ebc9..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/pigscriptsmigration.jsp +++ /dev/null @@ -1,227 +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. ---> - -<!DOCTYPE html> -<html> -<head> -<title>bootstrap datepicker examples</title> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - -<script type="text/javascript"> - function pigsavedquery() { - var startdate = document.getElementById('startdate3').value; - var enddate = document.getElementById('enddate3').value; - - var uname = document.getElementById("username3"); - uname = uname.options[uname.selectedIndex].value; - var instance = document.getElementById("instance3"); - instance = instance.options[instance.selectedIndex].value; - // alert("lets see"); - if (uname == "default") { - alert("Please select an username"); - } else if (instance == "default") { - alert("Please select an instance name"); - } else { - console.log("Showing loading"); - $('#progressbar').show(); - $('#lines').hide(); - pigsaved(uname, startdate, enddate, instance); - interval = setInterval(loadpercentage, 1000 ); - - } - - } - - function loadpercentage() { - $.ajax({ - url : "ProgressBarStatus", - success : function(result) { - $('#progressbarhivesavedquery').css('width', result); - console.log("Got the precentage completion "+ result); - }, - - }); - - } - - function pigsaved(uname, startdate, enddate, instance) { - //alert("savedquery"); - var url = "PigServlet?username=" + uname + "&startdate=" + startdate - + "&enddate=" + enddate + "&instance=" + instance; - - $.ajax({ - url : url, - success : function(result) { - console.log("Got Result"); - document.getElementById("lines").innerHTML = result; - clearInterval(interval); - $('#progressbar').hide() - $('#lines').show() - } - }); - - } -</script> - -<%@ page import="java.sql.*"%> -<%@ page import="org.sqlite.*"%> -<%@ page import="java.util.ArrayList"%> -<%@ page import="org.apache.ambari.view.huetoambarimigration.datasource.DataSourceAmbariDatabase"%> -<%@ page import="org.apache.ambari.view.huetoambarimigration.datasource.DataSourceHueDatabase"%> -<%@ page import="javax.servlet.ServletConfig"%> -<%@ page import="javax.servlet.ServletContext"%> -<%@ page import="org.apache.ambari.view.ViewContext"%> - -</head> -<% - ArrayList<String> username = new ArrayList<String>(); - ArrayList<String> instancename = new ArrayList<String>(); - int i; - - Connection conn = null; - ServletContext context = request.getServletContext(); - ViewContext view=(ViewContext) context.getAttribute(ViewContext.CONTEXT_ATTRIBUTE); - - conn = DataSourceHueDatabase.getInstance(view.getProperties().get("huedrivername"),view.getProperties().get("huejdbcurl"),view.getProperties().get("huedbusername"),view.getProperties().get("huedbpassword")).getConnection(); - Statement stat = conn.createStatement(); - - ResultSet rs = stat.executeQuery("select * from auth_user;"); - - while (rs.next()) { - username.add(rs.getString(2)); - } - - Connection c = null; - Statement stmt = null; - - c = DataSourceAmbariDatabase.getInstance(view.getProperties().get("ambaridrivername"),view.getProperties().get("ambarijdbcurl"),view.getProperties().get("ambaridbusername"),view.getProperties().get("ambaridbpassword")).getConnection(); - - stmt = c.createStatement(); - ResultSet rs1=null; - if(view.getProperties().get("ambaridrivername").contains("oracle")) - { - rs1 = stmt - .executeQuery("select distinct(view_instance_name) as instancename from viewentity where view_name='PIG{1.0.0}'"); - } - else - { - rs1 = stmt - .executeQuery("select distinct(view_instance_name) as instancename from viewentity where view_name='PIG{1.0.0}';"); - } - while (rs1.next()) { - instancename.add(rs1.getString(1)); - - } - rs1.close(); - stmt.close(); - -%> -<div class="row"> - <div class="col-sm-12"> - <form method="GET" onSubmit="pigsavedquery()"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3>Pig Saved Script Migration</h3> - </div> - <div class="panel-body"> - <div class="row"> - <div class="col-sm-3"> - UserName<font size="3" color="red"> *</font> - </div> - <div class="col-sm-3"> - <!-- <input type="text" placeholder="Enter username(*)" name="username3" id="username3"> --> - <select class="form-control" name="username3" - placeholder="User name" id="username3" required> - <option value="default" selected>Select below</option> - <option value="all">ALL User</option> - - <% - for (i = 0; i < username.size(); i++) { - %><option value="<%=username.get(i)%>"><%=username.get(i)%></option> - <% - } - %> - <% - username.clear(); - %> - </select> - </div> - </div> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-3"> - Instance name<font size="3" color="red"> *</font> - </div> - <div class="col-sm-3"> - <!-- <input type="text" placeholder="Enter Instance Name(*)" name="instance3" id="instance3"> --> - <select class="form-control" name="instance3" - placeholder="Instance name" id="instance3" required> - <option value="default" selected>Select below</option> - - <% - for (i = 0; i < instancename.size(); i++) { - %><option value="<%=instancename.get(i)%>"><%=instancename.get(i)%></option> - <% - } - %> - <% - instancename.clear(); - %> - </select> - </div> - </div> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-3">Start Date</div> - <div class="col-sm-3"> - <input type="date" placeholder="Enter date" name="startdate3" - id="startdate3"> - </div> - </div> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-3">End Date</div> - <div class="col-sm-3"> - <input type="date" placeholder="Enter date" name="enddate3" - id="enddate3"> - </div> - </div> - - <div class="row"> - - <div class="col-sm-3"> - <input type="button" id="submit" class="btn btn-success" - value="submit" onclick="pigsavedquery()"> - </div> - </div> - - <div id="lines" style="display: none;"></div> - - <br> - <br> - <div class="progress" id="progressbar" style="display: none;"> - <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:0%"> - </div> - </div> - </div> - </form> - </div> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/ui/revertchange.jsp ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/ui/revertchange.jsp b/contrib/views/hueambarimigration/src/main/resources/ui/revertchange.jsp deleted file mode 100644 index 40774aa..0000000 --- a/contrib/views/hueambarimigration/src/main/resources/ui/revertchange.jsp +++ /dev/null @@ -1,203 +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. ---> - -<html> -<head> -<title>bootstrap datepicker examples</title> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - - <script type="text/javascript" src="js/jquery.min.js"></script> - <script type="text/javascript" src="js/moment.min.js"></script> - <script type="text/javascript" src="js/bootstrap.min.js"></script> - <script type="text/javascript" src="js/bootstrap-datetimepicker.min.js"></script> - - <link rel="stylesheet" href="css/bootstrap.min.css" /> - <link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css" /> - -<%@ page import="java.sql.*"%> -<%@ page import="org.sqlite.*"%> -<%@ page import="java.util.ArrayList"%> -<%@ page import="org.apache.ambari.view.huetoambarimigration.datasource.DataSourceAmbariDatabase"%> -<%@ page import="org.apache.ambari.view.huetoambarimigration.datasource.DataSourceHueDatabase"%> -<%@ page import="javax.servlet.ServletConfig"%> -<%@ page import="javax.servlet.ServletContext"%> -<%@ page import="org.apache.ambari.view.ViewContext"%> -</head> -<% - int i; - ArrayList<String> instancename=new ArrayList<String>(); - Connection c = null; - Statement stmt = null; - ServletContext context = request.getServletContext(); - ViewContext view=(ViewContext) context.getAttribute(ViewContext.CONTEXT_ATTRIBUTE); - - c = DataSourceAmbariDatabase.getInstance(view.getProperties().get("ambaridrivername"),view.getProperties().get("ambarijdbcurl"),view.getProperties().get("ambaridbusername"),view.getProperties().get("ambaridbpassword")).getConnection(); - - stmt = c.createStatement(); - ResultSet rs1=null; - if(view.getProperties().get("ambaridrivername").contains("oracle")) - { - rs1 = stmt.executeQuery("select distinct(view_instance_name) as instancename from viewentity"); - } - else - { - rs1 = stmt.executeQuery("select distinct(view_instance_name) as instancename from viewentity;"); - } - - while (rs1.next()) { - instancename.add(rs1.getString(1)); - - } - rs1.close(); - stmt.close(); - c.close(); -%> -<div class="row"> - - <div class="col-sm-12"> - <form method="GET" onSubmit="validateAndSearch()"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3>Revert Change</h3> - </div> - <div class="panel-body"> - <p></p> - <p></p> - <p></p> - <p></p> - <div class="row"> - <div class="col-sm-6"> - Instance name<font size="3" color="red"> *</font> - </div> - <div class="col-sm-3"> - <!-- <input type="text" placeholder="Enter Instance Name(*)" name="instance4" id="instance4"> --> - <select class="form-control" name="instance" - placeholder="Instance name" id="instance" required> - <option value="default" selected>Select below</option> - - <% - for(i=0;i<instancename.size();i++) - { - %><option value="<%=instancename.get(i)%>"><%=instancename.get(i)%></option> - <% - } - %> - <% - instancename.clear(); - %> - </select> - </div> - </div> - <p></p> - <p></p> - <p></p> - <p></p> - - <div class="row"> - <div class="col-sm-6"> Enter the Time Upto which you want to - Revert</div> - - - <div class="container"> - <div class="row"> - <div class='col-sm-3'> - <div class="form-group"> - <div class='input-group date' id='datetimepicker1'> - <input type='text' class="form-control" id="startdate" name="startdate" /> - <span class="input-group-addon"> - <span class="glyphicon glyphicon-calendar"></span> - </span> - </div> - </div> - </div> - <script type="text/javascript"> - $(function () { - $('#datetimepicker1').datetimepicker( - {format : "YYYY-MM-DD HH:MM:SS"} - ); - }); - </script> - </div> - </div> - - - - </div> - <p></p> - <p></p> - <p></p> - <p></p> - - - <div class="row"> - - <div class="col-sm-3"> - <input type="button" id="submit" class="btn btn-success" - value="submit" onclick="submittime()"> - </div> - </div> - <div id="lines" style="display: none;"> - - <div class="progress" id="progressbar" > - <div id="progressbarhivesavedquery" class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:0%"> - - </div> - - </div> - </div> - </form> - - </div> -</div> - -<script type="text/javascript"> - function submittime() { - var strDatetime = $("#startdate").val(); - var instance = document.getElementById("instance"); - instance= instance.options[instance.selectedIndex].value; - - $('#progressbar').show(); - $('#lines').hide(); - revertingchange(strDatetime,instance); - interval = setInterval(loadpercentage, 1000 ); - - } - - function revertingchange(revertdate,instance) { - //alert("hello"); - - var url = "RevertChange?revertdate="+revertdate+"&instance="+instance; - - $.ajax({url: url, success: function(result){ - console.log("Got Result"); - document.getElementById("lines").innerHTML = result; - $('#progressbar').hide() - $('#lines').show() - clearInterval(interval); - }}); - } - function loadpercentage() { - $.ajax({ - url : "ProgressBarStatus", - success : function(result) { - $('#progressbarhivesavedquery').css('width', result); - console.log("Got the precentage completion "+ result); - }, - }); - } -</script> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/hueambarimigration/src/main/resources/view.xml ---------------------------------------------------------------------- diff --git a/contrib/views/hueambarimigration/src/main/resources/view.xml b/contrib/views/hueambarimigration/src/main/resources/view.xml index d43ab7f..3151d67 100644 --- a/contrib/views/hueambarimigration/src/main/resources/view.xml +++ b/contrib/views/hueambarimigration/src/main/resources/view.xml @@ -126,4 +126,102 @@ limitations under the License. Kerberos, LDAP, Custom. Binary/Htt <placeholder>y/n</placeholder> </parameter> + + <resource> + <name>ambaridatabases</name> + <plural-name>ambaridatabases</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.AmbariDatabaseCheck</service-class> + </resource> + + <resource> + <name>huedatabases</name> + <plural-name>huedatabases</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.HueDatabaseCheck</service-class> + </resource> + + <resource> + <name>huehttpurls</name> + <plural-name>huehttpurls</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.HueHttpUrlCheck</service-class> + </resource> + + <resource> + <name>huewebhdfsurls</name> + <plural-name>huewebhdfsurls</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.HueWebHdfsCheck</service-class> + </resource> + + <resource> + <name>ambariwebhdfsurls</name> + <plural-name>ambariwebhdfsurls</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.AmbariWebHdfsCheck</service-class> + </resource> + + + + + <resource> + <name>checkprogresses</name> + <plural-name>checkprogresses</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.CheckProgresStatus</service-class> + </resource> + + + <resource> + <name>startmigrations</name> + <plural-name>startmigrations</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.InitiateJobMigration</service-class> + </resource> + + <resource> + <name>returnjobids</name> + <plural-name>returnjobids</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.CreateJobId</service-class> + </resource> + + <resource> + <name>returnjobidforrevertchanges</name> + <plural-name>returnjobidforrevertchanges</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.CreateJobIdRevertChange</service-class> + </resource> + + <resource> + <name>startrevertchanges</name> + <plural-name>startrevertchanges</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.InitiateJobMigrationforRevertchange</service-class> + </resource> + + <resource> + <name>usersdetails</name> + <plural-name>usersdetails</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.UserDetailHue</service-class> + </resource> + + <resource> + <name>hiveinstancedetails</name> + <plural-name>hiveinstancedetails</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.HiveInstanceDetailsAmbari</service-class> + </resource> + + <resource> + <name>allinstancedetails</name> + <plural-name>allinstancedetails</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.AllInstanceDetailsAmbari</service-class> + </resource> + + <resource> + <name>piginstancedetails</name> + <plural-name>piginstancedetails</plural-name> + <service-class>org.apache.ambari.view.huetoambarimigration.migration.configuration.PigInstanceDetailsAmbari</service-class> + </resource> + + <persistence> + <entity> + <class>org.apache.ambari.view.huetoambarimigration.resources.scripts.models.MigrationResponse</class> + <id-property>id</id-property> + </entity> + </persistence> + + + </view> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/6f4a9c28/contrib/views/pom.xml ---------------------------------------------------------------------- diff --git a/contrib/views/pom.xml b/contrib/views/pom.xml index 8435e60..d442444 100644 --- a/contrib/views/pom.xml +++ b/contrib/views/pom.xml @@ -77,6 +77,9 @@ <exclude>.settings</exclude> <exclude>**/target/**</exclude> <exclude>**/.gitkeep</exclude> + <exclude>**/.ember-cli</exclude> + <exclude>**/.travis.yml</exclude> + <exclude>**/.watchmanconfig</exclude> <exclude>**/.bowerrc</exclude> <exclude>**/.editorconfig</exclude> <exclude>**/.jshintrc</exclude>