Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing log collector for sidecar configurations. #14104

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dennisoelkers
Copy link
Member

Description

Motivation and Context

This PR is fixing an issue when a sidecar configuration is referencing a log collector which is not present anymore. In this case, the Sidecar/Configuration page throws an exception and is not usable anymore.

It is currently unclear which steps can lead to a condition like this, because deleting a log collector from the frontend is not possible when it is referenced, but it was seen in the wild.

How Has This Been Tested?

Screenshots (if appropriate):

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 updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@dennisoelkers dennisoelkers force-pushed the fix/handle-empty-sidecar-os branch 2 times, most recently from 84e257b to 9ae1b22 Compare December 2, 2022 10:08
Copy link
Contributor

@linuspahl linuspahl left a comment

Choose a reason for hiding this comment

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

Just found some smaller things we can improve, feel free to merge the PR already.

<p><strong>Examples</strong></p>
<p>
Find sidecars that did not communicate with Graylog since a date:<br />
<kbd>{'last_seen:<=2018-04-10'}</kbd><br />
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove {''} here.

<OverlayTrigger trigger="click" rootClose placement="right" overlay={queryHelpPopover}>
<Button bsStyle="link"><Icon name="question-circle" /></Button>
</OverlayTrigger>
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we can define queryHelpPopover and queryHelp outside of the component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants