Skip to content

Commit

Permalink
refactor: remove obsolete lineage.html file
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Jul 22, 2021
1 parent cc36853 commit 9fa3851
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 91 deletions.
59 changes: 0 additions & 59 deletions static/lineage.html

This file was deleted.

19 changes: 0 additions & 19 deletions static/search.html
Expand Up @@ -16,21 +16,6 @@
</ui-select-choices>
</ui-select>
</div>
<div class="form-group col-xs-3 col-sm-3 col-md-2">
<ui-select id="lineage_value"
ng-model="$parent.lineage"
theme="bootstrap"
ng-disabled="disabled"
ng-change="doSearch()"
style="min-width: 200px; max-width: 300px;"
reset-search-input="false"
title="Lineage">
<ui-select-match placeholder="Lineage" allow-clear="true">{{$parent.lineage}}</ui-select-match>
<ui-select-choices repeat="k in lineages | filter: $select.search | orderBy">
{{k}}
</ui-select-choices>
</ui-select>
</div>
<div class="form-group col-xs-3 col-sm-3 col-md-2">
<ui-select id="resource_type"
ng-model="$parent.resType"
Expand Down Expand Up @@ -109,9 +94,6 @@
<th>
Serial
</th>
<th>
Lineage
</th>
<th>
Module Path
</th>
Expand All @@ -131,7 +113,6 @@
<td>{{r.path}}</td>
<td>{{r.tf_version}}</td>
<td>{{r.serial}}</td>
<td>{{r.lineage_value}}</td>
<td>{{r.module_path}}</td>
<td>{{r.resource_type}}.{{r.resource_name}}{{r.resource_index}}</td>
<td>{{r.attribute_key}}</td>
Expand Down
13 changes: 0 additions & 13 deletions static/terraboard.js
Expand Up @@ -431,12 +431,6 @@ app.controller("tbSearchCtrl",
$http.get('api/attribute/keys').then(function(response){
$scope.attribute_keys = response.data;
});
$http.get('api/lineages').then(function(response){
$scope.lineages = []
response.data.forEach(element => {
$scope.lineages.push(element["lineage"])
});
});

$scope.refreshAttrKeys = function() {
$http.get('api/attribute/keys?resource_type='+$scope.resType).then(function(response){
Expand All @@ -463,9 +457,6 @@ app.controller("tbSearchCtrl",
if ($scope.tfVersion != undefined) {
params.tf_version = $scope.tfVersion;
}
if ($scope.lineage != undefined) {
params.lineage_value = $scope.lineage;
}
if (page != undefined) {
params.page = page;
}
Expand Down Expand Up @@ -498,15 +489,11 @@ app.controller("tbSearchCtrl",
if ($location.search().tf_version != undefined) {
$scope.tfVersion = $location.search().tf_version;
}
if ($location.search().lineage != undefined) {
$scope.lineage = $location.search().lineage;
}

$scope.doSearch(1);

$scope.clearForm = function() {
$scope.tfVersion = undefined;
$scope.lineage = undefined;
$scope.resType = undefined;
$scope.resID = undefined;
$scope.attrKey = undefined;
Expand Down

0 comments on commit 9fa3851

Please sign in to comment.