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

Listen to deregistration events to update home view state #1653

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Jul 20, 2023

Description

Fix issue that Home page is not updated when a SAP system (or other resources) are deregistered.
We need to listen to these 3 events, as any of them can trigger some sort of update.

  • SAP system -> Obviously remove a row
  • Cluster -> If cluster is removed (super edge case) put the health as unknown
  • Host -> When a host with a failed heartbeat is removed, the computation is recalculated
    We cannot only relay in the host deregistration, as some deregistrations triggered by delta payloads would be missed.
    I excluded the database deregistration, as this is always followed by a SAP system deregistration.

update_home

How is it tested?

I added a new e2e test suite. Testing this as unit test added little value. As trade-off, the e2e test suite is now yet longer, but putting this test in any other view didn't look appropriate

@arbulu89 arbulu89 force-pushed the remove-sap-system-home-deregistration branch from 47ac9f3 to 7556fd8 Compare July 20, 2023 14:26
@arbulu89 arbulu89 force-pushed the remove-sap-system-home-deregistration branch from fcdfc09 to 30679ec Compare July 20, 2023 14:44
@arbulu89 arbulu89 added the bug Something isn't working label Jul 20, 2023
Copy link
Contributor

@abravosuse abravosuse left a comment

Choose a reason for hiding this comment

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

Code apart, it looks good to me @arbulu89 . Thank you for the quick fix!

@CDimonaco CDimonaco marked this pull request as ready for review July 20, 2023 15:30
@CDimonaco CDimonaco merged commit 7b7a2ba into main Jul 20, 2023
@CDimonaco CDimonaco deleted the remove-sap-system-home-deregistration branch July 20, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

4 participants