Skip to content

add Inputs notifications for failed, setup and stopped state and improve input creation#24283

Merged
kodjo-anipah merged 18 commits intorevamp/server_input_paginationfrom
revamp/inputs-notification
Nov 28, 2025
Merged

add Inputs notifications for failed, setup and stopped state and improve input creation#24283
kodjo-anipah merged 18 commits intorevamp/server_input_paginationfrom
revamp/inputs-notification

Conversation

@ousmaneo
Copy link
Contributor

@ousmaneo ousmaneo commented Nov 19, 2025

/nocl
fix Graylog2/graylog-plugin-enterprise#12245

/jpd https://github.com/Graylog2/graylog-plugin-enterprise/pull/12538

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have requested a documentation update.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@ousmaneo ousmaneo changed the base branch from revamp/server_input_pagination to revamp/additional-column November 19, 2025 15:41
@ousmaneo ousmaneo changed the base branch from revamp/additional-column to revamp/server_input_pagination November 19, 2025 15:42
@ousmaneo ousmaneo changed the title add Inputs notifications for failed, setup and stopped state add Inputs notifications for failed, setup and stopped state and improve input creation Nov 21, 2025
Copy link
Contributor

@laura-b-g laura-b-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, tested and it works 👍

ousmaneo and others added 2 commits November 27, 2025 15:40
Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>
Copy link
Contributor

@gally47 gally47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: ...are currently in a failed state...

if (isLoading || !inputs || !inputStates) return null;

return {
hasStoppedInputs: inputs.some((input) => !inputStates[input.id]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it more accurate to name it hasMissingInputStates ? since state STOPPED does exist ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 }>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selectedInput will always be undefined after resetFields() no ?

@kodjo-anipah kodjo-anipah merged commit 1e3c713 into revamp/server_input_pagination Nov 28, 2025
24 checks passed
@kodjo-anipah kodjo-anipah deleted the revamp/inputs-notification branch November 28, 2025 15:10
kodjo-anipah added a commit that referenced this pull request Dec 1, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants