iguazio.dashboard-controls 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-controls",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "main": "dist/js/iguazio.dashboard-controls.js",
5
5
  "description": "Collection of resources (such as CSS styles, fonts and images) and AngularJs 1.x components and services to share among different Iguazio repos.",
6
6
  "repository": {
@@ -368,8 +368,7 @@ such restriction.
368
368
  if (ctrl.logs.length > 0) {
369
369
  ctrl.lastEntryTimestamp = ctrl.logs[0].time;
370
370
 
371
- if (ctrl.logs.replicas && (lodash.isEmpty(initialReplicas) ||
372
- initialReplicas.length !== ctrl.replicasList.length)) {
371
+ if (ctrl.logs.replicas) {
373
372
  ctrl.replicasList = ctrl.logs.replicas.map(function (replica) {
374
373
  return {
375
374
  label: replica,
@@ -392,10 +391,11 @@ such restriction.
392
391
  function generateFilterQuery() {
393
392
  var levels = lodash.chain(ctrl.filter.level).pickBy().keys().join(' OR ').value();
394
393
  var projectName = lodash.get(ctrl.version, ['metadata', 'labels', 'nuclio.io/project-name']);
395
- var queries = ['system-id:"' + ConfigService.systemId + '"', '_exists_:nuclio', 'nuclio.project_name.keyword:' + projectName];
394
+ var projectFilter = '(nuclio.project_name.keyword:' + projectName + ' OR nuclio.project_name:' + projectName + ')'
395
+ var queries = ['system-id:"' + ConfigService.systemId + '"', '_exists_:nuclio', projectFilter];
396
396
 
397
397
  if (!lodash.isEmpty(ctrl.version.metadata.name)) {
398
- queries.push('name:' + ctrl.version.metadata.name);
398
+ queries.push('(name.keyword:' + ctrl.version.metadata.name + ' OR name:' + ctrl.version.metadata.name + ')');
399
399
  }
400
400
 
401
401
  if (ctrl.selectedReplicas.length && ctrl.selectedReplicas.length !== initialReplicas.length) {