Skip to content

Commit

Permalink
Restrict search in edit extractor example (Graylog2#4554)
Browse files Browse the repository at this point in the history
We recently fixed an issue in the RecentMessageLoader component to
ensure the search of an example is restricted to the last hour. This
change does the same for the edit extractor page.

Fixes Graylog2#4553
  • Loading branch information
edmundoa authored and bernd committed Feb 2, 2018
1 parent 6a49304 commit 4e89b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graylog2-web-interface/src/pages/EditExtractorsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const EditExtractorsPage = React.createClass({
componentDidMount() {
InputsActions.get.triggerPromise(this.props.params.inputId);
ExtractorsActions.get.triggerPromise(this.props.params.inputId, this.props.params.extractorId);
UniversalSearchstore.search('relative', `gl2_source_input:${this.props.params.inputId} OR gl2_source_radio_input:${this.props.params.inputId}`, { range: 0 }, undefined, 1)
UniversalSearchstore.search('relative', `gl2_source_input:${this.props.params.inputId} OR gl2_source_radio_input:${this.props.params.inputId}`, { relative: 3600 }, undefined, 1)
.then((response) => {
if (response.total_results > 0) {
this.setState({ exampleMessage: response.messages[0] });
Expand Down

0 comments on commit 4e89b70

Please sign in to comment.