You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- message is different depending on "match"
- fixed indexed filter is resource, not name
- side stuff: added a note in the readme for initial repo setup
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,16 @@
4
4
5
5
Based on [Openshift Console dynamic plugin](https://github.com/openshift/console/tree/master/frontend/packages/console-dynamic-plugin-sdk), this plugin implement the console elements for Network Observability.
6
6
7
+
## First setup
8
+
9
+
You will need Go, Node.js and npm in order to run the `make` commands described below. You can take a look at the [Dockerfile](./Dockerfile) to get known working versions of these tools. In particular, node and npm are known to often break builds if you don't use the expected versions (even patch versions for npm). You can use [nvm](https://github.com/nvm-sh/nvm) to manage installed node / npm versions.
10
+
11
+
Once these tools are installed, run the following command:
Copy file name to clipboardExpand all lines: web/locales/en/plugin__network-observability-plugin.json
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,10 @@
154
154
"Expand": "Expand",
155
155
"Actions": "Actions",
156
156
"View": "View",
157
-
"Network Traffic": "Network Traffic",
157
+
"When in \"Match any\" mode, try using only Namespace, Owner or Resource filters (which use indexed fields), or decrease limit / range, to improve the query performance": "When in \"Match any\" mode, try using only Namespace, Owner or Resource filters (which use indexed fields), or decrease limit / range, to improve the query performance",
158
+
"Add Namespace, Owner or Resource filters (which use indexed fields), or decrease limit / range, to improve the query performance": "Add Namespace, Owner or Resource filters (which use indexed fields), or decrease limit / range, to improve the query performance",
158
159
"Add more filters or decrease limit / range to improve the query performance": "Add more filters or decrease limit / range to improve the query performance",
'When in "Match any" mode, try using only Namespace, Owner or Resource filters (which use indexed fields), or decrease limit / range, to improve the query performance'
689
+
);
690
+
}
691
+
if(match==='all'&&!hasIndexFields(filters)){
692
+
returnt(
693
+
'Add Namespace, Owner or Resource filters (which use indexed fields), or decrease limit / range, to improve the query performance'
694
+
);
695
+
}
696
+
returnt('Add more filters or decrease limit / range to improve the query performance');
0 commit comments