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:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user