exclude status instead of state, and also attachments while we're at it

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-04-28 19:25:24 +02:00
parent 9c622c2b7a
commit 410be7722c
2 changed files with 5 additions and 3 deletions
@@ -52,8 +52,9 @@ describe('search', () => {
it('skips over special keys', () => {
const input = {
state: { x: 1 },
relations: [{ y: 2 }],
status: { x: 1 },
attachments: [{ y: 2 }],
relations: [{ z: 3 }],
a: 'a',
metadata: {
b: 'b',
+2 -1
View File
@@ -30,8 +30,9 @@ export type DbSearchRow = {
// to index, or because they are special-case always inserted whether they are
// null or not
const SPECIAL_KEYS = [
'state',
'attachments',
'relations',
'status',
'metadata.name',
'metadata.namespace',
'metadata.uid',