[Monitoring] Add default search fields for each table (#29748)

* Add default search fields for each table

* Remove custom schema

* We don't need it here

* Add ccr tables

* Fix tests
This commit is contained in:
Chris Roberson 2019-02-04 14:11:46 -05:00 committed by GitHub
parent 2320f15b9b
commit b10540f06f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 47 additions and 1 deletions

View file

@ -162,6 +162,9 @@ const AlertsUI = ({ alerts, angular, sorting, pagination, onTableChange, intl })
}, },
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['message', 'category']
}}
/> />
); );
}; };

View file

@ -130,6 +130,9 @@ export function ApmServerInstancesUI({ apms, intl }) {
] ]
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -126,6 +126,9 @@ class ListingUI extends PureComponent {
] ]
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name', 'type']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -455,6 +455,9 @@ export class Listing extends Component {
}, },
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['cluster_name']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -50,7 +50,14 @@ exports[`Ccr that it renders normally 1`] = `
}, },
] ]
} }
executeQueryOptions={Object {}} executeQueryOptions={
Object {
"defaultFields": Array [
"index",
"follows",
],
}
}
itemId="id" itemId="id"
itemIdToExpandedRowMap={Object {}} itemIdToExpandedRowMap={Object {}}
items={ items={

View file

@ -140,6 +140,9 @@ class CcrUI extends Component {
) )
} }
]} ]}
executeQueryOptions={{
defaultFields: ['shardId']
}}
sorting={true} sorting={true}
pagination={pagination} pagination={pagination}
/> />
@ -239,6 +242,9 @@ class CcrUI extends Component {
]} ]}
items={items} items={items}
pagination={pagination} pagination={pagination}
executeQueryOptions={{
defaultFields: ['index', 'follows']
}}
sorting={sorting} sorting={sorting}
itemId="id" itemId="id"
itemIdToExpandedRowMap={this.state.itemIdToExpandedRowMap} itemIdToExpandedRowMap={this.state.itemIdToExpandedRowMap}

View file

@ -182,6 +182,9 @@ const ElasticsearchIndicesUI = ({
}, },
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -229,6 +229,9 @@ function ElasticsearchNodesUI({ clusterStatus, nodes, showCgroupMetricsElasticse
}, },
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -155,6 +155,9 @@ class ShardActivityUI extends React.Component {
search={false} search={false}
pagination={pagination} pagination={pagination}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/> />
</Fragment> </Fragment>
); );

View file

@ -152,6 +152,9 @@ class ListingUI extends PureComponent {
}, },
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -176,6 +176,9 @@ class PipelineListingUI extends Component {
}, },
}} }}
onTableChange={onTableChange} onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['id']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -161,6 +161,9 @@ uiModule.directive('monitoringMlListing', kbnUrl => {
}, },
}} }}
onTableChange={scope.onTableChange} onTableChange={scope.onTableChange}
executeQueryOptions={{
defaultFields: ['job_id']
}}
/> />
</EuiPageContent> </EuiPageContent>
</EuiPageBody> </EuiPageBody>

View file

@ -169,6 +169,9 @@ uiRoutes.when('/kibana/instances', {
}, },
}} }}
onTableChange={this.onTableChange} onTableChange={this.onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/> />
</EuiPageContent> </EuiPageContent>