Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements in Event Definitions page (#6091)
* Remove unused execute method in EventDefinitionsStore This resource was meant for testing the execution before the scheduler was done. * Add pagination to EventDefinitionsStore * Add pagination to Event Definition list * Add filter controls to Event Definition list * Add grand total to PaginatedResponse Before this change, using PaginatedResponse with a query returned a total of elements matching the query. The response had no indication of how many items of that entity were there, something problematic for the frontend, since we want to render a different messages for both situations. This commit adds a `grandTotal` field to `PaginatedList` and adds it into the response if the field is set, making it easier for the frontend to detect when there are no available items from certain entity. * Update check of empty list of event definitions * Remove test page size * Use single element for event definition actions * Get event definition name from plugin * Add more information to Event Definition list The change includes scheduling information and notifications information.
- Loading branch information
Showing
15 changed files
with
244 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
graylog2-web-interface/src/actions/event-definitions/EventDefinitionsActions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import Reflux from 'reflux'; | ||
|
||
const EventDefinitionsActions = Reflux.createActions({ | ||
list: { asyncResult: true }, | ||
listAll: { asyncResult: true }, | ||
listPaginated: { asyncResult: true }, | ||
get: { asyncResult: true }, | ||
create: { asyncResult: true }, | ||
update: { asyncResult: true }, | ||
delete: { asyncResult: true }, | ||
execute: { asyncResult: true }, | ||
}); | ||
|
||
export default EventDefinitionsActions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...og2-web-interface/src/components/event-definitions/event-definitions/EventDefinitions.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
:local(.definitionList) { | ||
margin-top: 10px; | ||
} | ||
|
||
:local(.inline) { | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.