Skip to content

Commit

Permalink
Merge pull request #1246 from getredash/large-schema
Browse files Browse the repository at this point in the history
Fix: support large schemas in schema browser
  • Loading branch information
arikfr authored Aug 19, 2016
2 parents 19530f4 + 490928d commit b8eca28
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"angular-resizable": "^1.2.0",
"material-design-iconic-font": "^2.2.0",
"plotly.js": "^1.9.0",
"angular-ui-ace": "bower"
"angular-ui-ace": "bower",
"angular-vs-repeat": "^1.1.7"
},
"devDependencies": {
"angular-mocks": "1.2.18",
Expand Down
3 changes: 2 additions & 1 deletion rd_ui/app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ angular.module('redash', [
'naif.base64',
'ui.bootstrap.showErrors',
'angularResizable',
'ngSanitize'
'ngSanitize',
'vs-repeat'
]).config(['$routeProvider', '$locationProvider', '$compileProvider', 'growlProvider', 'uiSelectConfig', '$httpProvider',
function ($routeProvider, $locationProvider, $compileProvider, growlProvider, uiSelectConfig, $httpProvider) {
function getQuery(Query, $route) {
Expand Down
1 change: 1 addition & 0 deletions rd_ui/app/vendor_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
<script src="/bower_components/d3/d3.js"></script>
<script src="/bower_components/angular-ui-sortable/sortable.js"></script>
<script src="/bower_components/angular-ui-ace/ui-ace.js"></script>
<script src="/bower_components/angular-vs-repeat/src/angular-vs-repeat.js"></script>
<!-- endbuild -->
4 changes: 2 additions & 2 deletions rd_ui/app/views/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ <h3>
<div class="row bg-white p-b-5" ng-if="sourceMode" resizable r-directions="['bottom']" r-height="300" style="min-height:100px;">

<div class="col-md-3 schema-container hidden-sm hidden-xs" ng-show="hasSchema">
<div ng-show="schema.length < 500" class="p-t-5 p-b-5">
<div class="p-t-5 p-b-5">
<input type="text" placeholder="Search schema..." class="form-control" ng-model="schemaFilter">
</div>

<div class="schema-browser">
<div class="schema-browser" vs-repeat>
<div ng-repeat="table in schema | filter:schemaFilter track by table.name">
<div class="table-name" ng-click="table.collapsed = !table.collapsed">
<i class="fa fa-table"></i> <strong><span title="{{table.name}}">{{table.name}}</span><span
Expand Down

0 comments on commit b8eca28

Please sign in to comment.