Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: support large schemas in schema browser #1246

Merged
merged 1 commit into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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