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

Create event when chassis or module is removed manually #2998

Conversation

stveit
Copy link
Contributor

@stveit stveit commented Sep 20, 2024

Fixes #2983

@stveit stveit self-assigned this Sep 20, 2024
@stveit stveit force-pushed the feature/create-event-when-chassis-or-module-is-removed-manually branch from f9636d2 to 10065b5 Compare September 20, 2024 11:39
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.47%. Comparing base (a9040ca) to head (73739ee).
Report is 473 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2998      +/-   ##
==========================================
- Coverage   60.48%   60.47%   -0.01%     
==========================================
  Files         604      604              
  Lines       43801    43816      +15     
  Branches       48       48              
==========================================
+ Hits        26491    26497       +6     
- Misses      17298    17307       +9     
  Partials       12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stveit stveit force-pushed the feature/create-event-when-chassis-or-module-is-removed-manually branch from 10065b5 to 5b70fc4 Compare September 23, 2024 13:03
@stveit stveit force-pushed the feature/create-event-when-chassis-or-module-is-removed-manually branch from 61460f3 to 3118c78 Compare September 23, 2024 14:08
Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

looks great, only nitpicking, as usual :)

Comment on lines 1 to 5
-- Add new deviceState alert
INSERT INTO alerttype (eventtypeid,alerttype,alerttypedesc) VALUES
('deviceState','deviceDeletedChassis','The device has been removed as a chassis.');
INSERT INTO alerttype (eventtypeid,alerttype,alerttypedesc) VALUES
('deviceState','deviceDeletedModule','The device has been removed as a module.');
Copy link
Member

Choose a reason for hiding this comment

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

Come to think of it, I think I forgot to look at this in your previous PR. 5.10 is the current stable release, this will only hit 5.11, so the migration script should be named differently...

Copy link
Member

Choose a reason for hiding this comment

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

I just found out that I was unable to merge 5.10.x back into master because the OUI changescript and a bugfix from 5.10 had conflicting changescript names. I had to forcibly rename the OUI script on master, so there may be breakage for devs that do not wipe and re-create their postgres databases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah fuked up the filename quite hard for PowerSupplyAndFan aswell

@stveit stveit force-pushed the feature/create-event-when-chassis-or-module-is-removed-manually branch from 0e42d37 to 44ee21d Compare September 24, 2024 13:58
@stveit stveit force-pushed the feature/create-event-when-chassis-or-module-is-removed-manually branch from 44ee21d to 73739ee Compare September 24, 2024 14:00
Copy link

@stveit stveit merged commit d54881a into Uninett:master Sep 24, 2024
10 checks passed
@stveit stveit deleted the feature/create-event-when-chassis-or-module-is-removed-manually branch September 24, 2024 14:11
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.

Post events for manually and intentionally deleting chassis and modules
2 participants