Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit for lucene index size for /filter and /group API requests (#25)
* Lucene index optimization: application property "lucene.index.max.segment.size" added to allow control over lucene index segment size. * Lucene index optimization: do not return total pages count and variant histograms for large files, application property for max lucene index size is "lucene.index.max.size.grouping" * Lucene index optimization: removed lucene index segment size optimization * Lucene index optimization: throw exception if group/ method is called for a index exceeding max allowed size * 'VCF File too large, unable to show data' message will be displayed if the corresponding error occurs * Infinite scroll support for variations table of large VCF index files (if no 'totalPages' field returned) * Variants table loading indicator * Pagination control disappeared - fixed * Lucene index optimization: return only top 100 results for filter/searchGenes request * Lucene index optimization: use term API for gene lucene search * Do not display diagrams for large vcf files
- Loading branch information
Showing
24 changed files
with
443 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
client/client/app/components/ngbVariantsTablePanel/ngbVariantsLoadingIndicator/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import angular from 'angular'; | ||
import './ngbVariantsLoadingIndicator.scss'; | ||
|
||
// Import internal modules | ||
import component from './ngbVariantsLoadingIndicator.component'; | ||
import controller from './ngbVariantsLoadingIndicator.controller'; | ||
|
||
// Import external modules | ||
export default angular.module('ngbVariantsLoadingIndicator', []) | ||
.controller(controller.UID, controller) | ||
.component('ngbVariantsLoadingIndicator', component) | ||
.name; |
6 changes: 6 additions & 0 deletions
6
...gbVariantsTablePanel/ngbVariantsLoadingIndicator/ngbVariantsLoadingIndicator.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import controller from './ngbVariantsLoadingIndicator.controller'; | ||
|
||
export default { | ||
controller: controller.UID, | ||
template: require('./ngbVariantsLoadingIndicator.tpl.html') | ||
}; |
34 changes: 34 additions & 0 deletions
34
...bVariantsTablePanel/ngbVariantsLoadingIndicator/ngbVariantsLoadingIndicator.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import baseController from '../../../shared/baseController'; | ||
|
||
export default class ngbVariantsLoadingIndicatorController extends baseController { | ||
|
||
static get UID() { | ||
return 'ngbVariantsLoadingIndicatorController'; | ||
} | ||
|
||
projectContext; | ||
isProgressShown = false; | ||
_scope; | ||
|
||
constructor(dispatcher, projectContext, $scope) { | ||
super(dispatcher); | ||
this._scope = $scope; | ||
Object.assign(this, { | ||
$scope, | ||
dispatcher, | ||
projectContext | ||
}); | ||
|
||
this.initEvents(); | ||
this.refresh(false); | ||
} | ||
|
||
events = { | ||
'variants:page:loading:finished': ::this.refresh, | ||
'variants:page:loading:started': ::this.refresh | ||
}; | ||
|
||
refresh () { | ||
this.isProgressShown = this.projectContext.variantsPageLoading; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...onents/ngbVariantsTablePanel/ngbVariantsLoadingIndicator/ngbVariantsLoadingIndicator.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ngb-variants-loading-indicator { | ||
align-self: center; | ||
height: 22px; | ||
.indicator { | ||
margin-right: 10px; | ||
margin-top: 4px; | ||
md-progress-circular { | ||
svg path { stroke: white; } | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ts/ngbVariantsTablePanel/ngbVariantsLoadingIndicator/ngbVariantsLoadingIndicator.tpl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="indicator"> | ||
<md-progress-circular | ||
md-mode="indeterminate" | ||
ng-show="$ctrl.isProgressShown" | ||
md-diameter="16"> | ||
</md-progress-circular> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
client/client/app/shared/components/ngbGoldenLayout/ngbViewActions/ngbViewActions.tpl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.