Skip to content

Commit

Permalink
Fixed Issue #93: Problem in the included and excluded indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Jettro Coenradie authored and Jettro Coenradie committed Nov 26, 2015
1 parent bf84efa commit 7d9e3b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions _site/assets/js/elasticsearch-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,17 +657,17 @@

function indexIsNotIgnored(index) {
var ignore = false;
if (configuration.includedIndexes && configuration.includedIndexes.length > 0) {
if (configuration.configuration.includedIndexes && configuration.configuration.includedIndexes.length > 0) {
ignore = true;
var includedIndexes = (configuration.includedIndexes) ? configuration.includedIndexes.split(",") : [];
var includedIndexes = (configuration.configuration.includedIndexes) ? configuration.configuration.includedIndexes.split(",") : [];
angular.forEach(includedIndexes, function (includedIndex) {
var indexToCheck = includedIndex.trim();
if (index.substring(0, indexToCheck.length) === indexToCheck) {
ignore = false;
}
});
} else {
var excludedIndexes = (configuration.excludedIndexes) ? configuration.excludedIndexes.split(",") : [];
var excludedIndexes = (configuration.configuration.excludedIndexes) ? configuration.configuration.excludedIndexes.split(",") : [];
angular.forEach(excludedIndexes, function (excludedIndex) {
var indexToCheck = excludedIndex.trim();
if (index.substring(0, indexToCheck.length) === indexToCheck) {
Expand Down
4 changes: 2 additions & 2 deletions _site/assets/js/elasticsearch-gui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _site/assets/js/elasticsearch-gui.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions javascript/services/elastic.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,17 @@

function indexIsNotIgnored(index) {
var ignore = false;
if (configuration.includedIndexes && configuration.includedIndexes.length > 0) {
if (configuration.configuration.includedIndexes && configuration.configuration.includedIndexes.length > 0) {
ignore = true;
var includedIndexes = (configuration.includedIndexes) ? configuration.includedIndexes.split(",") : [];
var includedIndexes = (configuration.configuration.includedIndexes) ? configuration.configuration.includedIndexes.split(",") : [];
angular.forEach(includedIndexes, function (includedIndex) {
var indexToCheck = includedIndex.trim();
if (index.substring(0, indexToCheck.length) === indexToCheck) {
ignore = false;
}
});
} else {
var excludedIndexes = (configuration.excludedIndexes) ? configuration.excludedIndexes.split(",") : [];
var excludedIndexes = (configuration.configuration.excludedIndexes) ? configuration.configuration.excludedIndexes.split(",") : [];
angular.forEach(excludedIndexes, function (excludedIndex) {
var indexToCheck = excludedIndex.trim();
if (index.substring(0, indexToCheck.length) === indexToCheck) {
Expand Down

0 comments on commit 7d9e3b8

Please sign in to comment.