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

* 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 15:02:22 -05:00 committed by GitHub
parent b13074d75a
commit 58a9738657
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}
executeQueryOptions={{
defaultFields: ['message', 'category']
}}
/>
);
};

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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