Skip to content

Commit

Permalink
[Monitoring] Add default search fields for each table (elastic#29748) (
Browse files Browse the repository at this point in the history
…elastic#29981)

* Add default search fields for each table

* Remove custom schema

* We don't need it here

* Add ccr tables

* Fix tests
  • Loading branch information
chrisronline authored Feb 4, 2019
1 parent b13074d commit 58a9738
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 1 deletion.
3 changes: 3 additions & 0 deletions x-pack/plugins/monitoring/public/components/alerts/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ const AlertsUI = ({ alerts, angular, sorting, pagination, onTableChange, intl })
},
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['message', 'category']
}}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export function ApmServerInstancesUI({ apms, intl }) {
]
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ class ListingUI extends PureComponent {
]
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name', 'type']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ export class Listing extends Component {
},
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['cluster_name']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ exports[`Ccr that it renders normally 1`] = `
},
]
}
executeQueryOptions={Object {}}
executeQueryOptions={
Object {
"defaultFields": Array [
"index",
"follows",
],
}
}
itemId="id"
itemIdToExpandedRowMap={Object {}}
items={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ class CcrUI extends Component {
)
}
]}
executeQueryOptions={{
defaultFields: ['shardId']
}}
sorting={true}
pagination={pagination}
/>
Expand Down Expand Up @@ -239,6 +242,9 @@ class CcrUI extends Component {
]}
items={items}
pagination={pagination}
executeQueryOptions={{
defaultFields: ['index', 'follows']
}}
sorting={sorting}
itemId="id"
itemIdToExpandedRowMap={this.state.itemIdToExpandedRowMap}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ const ElasticsearchIndicesUI = ({
},
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ function ElasticsearchNodesUI({ clusterStatus, nodes, showCgroupMetricsElasticse
},
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ class ShardActivityUI extends React.Component {
search={false}
pagination={pagination}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/>
</Fragment>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class ListingUI extends PureComponent {
},
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ class PipelineListingUI extends Component {
},
}}
onTableChange={onTableChange}
executeQueryOptions={{
defaultFields: ['id']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ uiModule.directive('monitoringMlListing', kbnUrl => {
},
}}
onTableChange={scope.onTableChange}
executeQueryOptions={{
defaultFields: ['job_id']
}}
/>
</EuiPageContent>
</EuiPageBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ uiRoutes.when('/kibana/instances', {
},
}}
onTableChange={this.onTableChange}
executeQueryOptions={{
defaultFields: ['name']
}}
/>

</EuiPageContent>
Expand Down

0 comments on commit 58a9738

Please sign in to comment.