add Inputs notifications for failed, setup and stopped state and improve input creation#24283
Conversation
- open wizard after saving input
laura-b-g
left a comment
There was a problem hiding this comment.
Looking good, tested and it works 👍
Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>
gally47
left a comment
There was a problem hiding this comment.
Looking good, wrote few nitpicks/comments below
| <Col md={12}> | ||
| {hasFailedInputs && ( | ||
| <StyledAlert bsStyle="danger" title="Some inputs are in failed state."> | ||
| One or more inputs are currently failed state. Failed or failing inputs will not receive traffic until |
There was a problem hiding this comment.
typo: ...are currently in a failed state...
| if (isLoading || !inputs || !inputStates) return null; | ||
|
|
||
| return { | ||
| hasStoppedInputs: inputs.some((input) => !inputStates[input.id]), |
There was a problem hiding this comment.
is it more accurate to name it hasMissingInputStates ? since state STOPPED does exist ?
There was a problem hiding this comment.
Input in stopped stated are not sent by the backend this means missing are stopped ones.
| get: (id: string) => Promise<Input>; | ||
| getOptional: (id: string, showError: boolean) => Promise<Input>; | ||
| create: (input: ConfiguredInput) => Promise<void>; | ||
| create: (input: ConfiguredInput) => Promise<{ id: string }>; |
There was a problem hiding this comment.
Do we also need to change the create fetch promise return, to make sure it is not a void and it is returning the id?
There was a problem hiding this comment.
The backend return the id on the create fetch Promise since we are returning the promise we can be sure that if it resolve it will have the id
| return { | ||
| id: createdInputId, | ||
| title: createdInputData.title, | ||
| type: selectedInput, |
There was a problem hiding this comment.
selectedInput will always be undefined after resetFields() no ?
1e3c713
into
revamp/server_input_pagination
* first iteration of pagination * commit state * fix import and add license header * fix import * fix compliation issues * fix static field deserilization * Move inputsList to PaginatedEntityDataTable (#24113) * Implement entity data table for Inputs * Update InputsDotBadge with cluster endpoint * Delete graylog2-web-interface/src/components/inputs/InputsOveriew/cells/.#ThroughputCell.tsx * add Expanded Title section to show config and static fields * remove InputList and InputListItem - format files * make row clickable and have a single expanded section - remove unnecessary components * fix linter * fix lint * fix lint * refactor imports * fix review --------- Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com> * continue refactoring * Remove unused CatApi impl (#24215) * Position leftCol component to the left in ModalSubmit (#24111) * Updating yarn lockfile (#24217) Co-authored-by: Gary Bot <garybot2@graylog.com> * Bump auto-value.version from 1.11.0 to 1.11.1 (#24201) Bumps `auto-value.version` from 1.11.0 to 1.11.1. Updates `com.google.auto.value:auto-value-annotations` from 1.11.0 to 1.11.1 - [Release notes](https://github.com/google/auto/releases) - [Commits](google/auto@auto-value-1.11.0...auto-value-1.11.1) Updates `com.google.auto.value:auto-value` from 1.11.0 to 1.11.1 - [Release notes](https://github.com/google/auto/releases) - [Commits](google/auto@auto-value-1.11.0...auto-value-1.11.1) --- updated-dependencies: - dependency-name: com.google.auto.value:auto-value-annotations dependency-version: 1.11.1 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: com.google.auto.value:auto-value dependency-version: 1.11.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump io.modelcontextprotocol.sdk:mcp-bom from 0.15.0 to 0.16.0 (#24211) Bumps [io.modelcontextprotocol.sdk:mcp-bom](https://github.com/modelcontextprotocol/java-sdk) from 0.15.0 to 0.16.0. - [Release notes](https://github.com/modelcontextprotocol/java-sdk/releases) - [Commits](modelcontextprotocol/java-sdk@v0.15.0...v0.16.0) --- updated-dependencies: - dependency-name: io.modelcontextprotocol.sdk:mcp-bom dependency-version: 0.16.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.hibernate.validator:hibernate-validator (#24173) Bumps [org.hibernate.validator:hibernate-validator](https://github.com/hibernate/hibernate-validator) from 9.0.1.Final to 9.1.0.Final. - [Release notes](https://github.com/hibernate/hibernate-validator/releases) - [Changelog](https://github.com/hibernate/hibernate-validator/blob/main/changelog.txt) - [Commits](hibernate/hibernate-validator@9.0.1.Final...9.1.0.Final) --- updated-dependencies: - dependency-name: org.hibernate.validator:hibernate-validator dependency-version: 9.1.0.Final dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump software.amazon.msk:aws-msk-iam-auth from 2.3.4 to 2.3.5 (#24157) Bumps [software.amazon.msk:aws-msk-iam-auth](https://github.com/aws/aws-msk-iam-auth) from 2.3.4 to 2.3.5. - [Release notes](https://github.com/aws/aws-msk-iam-auth/releases) - [Commits](aws/aws-msk-iam-auth@v2.3.4...v2.3.5) --- updated-dependencies: - dependency-name: software.amazon.msk:aws-msk-iam-auth dependency-version: 2.3.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Refactor ClusterStateApi to use os3 client (#24196) * Refactor ClusterStateApi to use os3 client * fix empty properties indices * fix conflict * better index deletion handling for unavailable indices * fix deletion of indices * code cleanup * better record name and javadoc * commit compiling state * switch pagination * fix removed class * fix encrypted values * fix extractors * add missing headers * remove import * fix forbidden api call * fix test * fix forbidden api failure * Update InputsOverview.tsx * fix updating input * add back validation * add changelog * fix lint * ignore os java client (#24285) * Refector data_node_status (#24267) * refector data_node_status * Revert "refector data_node_status" This reverts commit 29c78d4. * Refector data_node_status to datanode_status --------- Co-authored-by: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com> * add more test cases * fix imports * linter fixes * linter fixes * add node filter when node is set * clean up input to use set pattern on builder * remove not needed prop * Add additional column to inputs page (#24268) * add additional columns - add InputActions test * add expanded section actions * use product name * fix lint * fix lint --------- Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com> * fix lint errors * fix desired state and buildFromMap * make returned list immutable again * Update InputsOverview.tsx * add Inputs notifications for failed, setup and stopped state and improve input creation (#24283) * add Inputs notifications for failed, setup and stopped state * fix lint * improve input creation - open wizard after saving input * remove navigation * remove filter copy * adjust to upstream changes * Update InputsPage.tsx * Update graylog2-web-interface/src/util/DocsHelper.ts Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com> * reset field after opening wizard * fix typo * add column width --------- Co-authored-by: Mohamed OULD HOCINE <106236152+gally47@users.noreply.github.com> Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Ousmane SAMBA <ousmane@graylog.com> Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com> Co-authored-by: Tomas Dvorak <tomas.dvorak@graylog.com> Co-authored-by: Maksym Yadlovskyi <maksym.yadlovskyi@graylog.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Gary Bot <garybot2@graylog.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ousmane Samba <ousmane.samba@graylog.com> Co-authored-by: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com> Co-authored-by: Mohamed OULD HOCINE <106236152+gally47@users.noreply.github.com> Co-authored-by: Patrick Mann <patrickmann@users.noreply.github.com> Co-authored-by: patrickmann <patrick.mann@graylog.com>
/nocl
fix Graylog2/graylog-plugin-enterprise#12245
/jpd https://github.com/Graylog2/graylog-plugin-enterprise/pull/12538
Types of changes
Checklist: