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

Fix is_list_ignored=false filters for network and temperature #1037

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

dvalter
Copy link
Contributor

@dvalter dvalter commented Mar 2, 2023

Description

Use filter logic from network/sysinfo in temperature and network/heim harvesters. Previously is_list_ignored=false filter configs would silently accept every sensor and every interface.

Testing

Network: with debug eprintln! of matched interface names
Temperature: by configuring the filter and checking that it now actually filters

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

Use filter logic from network/sysinfo in temperature and network/heim
harvesters. Previously is_list_ignored=false filter configs would
silently accept every sensor and every interface.
@dvalter dvalter force-pushed the fix/filter-not-ignored branch from 070b3ed to e641709 Compare March 2, 2023 07:31
@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.20 🎉

Comparison is base (7008f1d) 25.71% compared to head (e641709) 25.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1037      +/-   ##
==========================================
+ Coverage   25.71%   25.92%   +0.20%     
==========================================
  Files          83       80       -3     
  Lines       14880    14762     -118     
==========================================
  Hits         3827     3827              
+ Misses      11053    10935     -118     
Flag Coverage Δ
macos-12 26.78% <0.00%> (+0.19%) ⬆️
ubuntu-latest 26.57% <0.00%> (+0.17%) ⬆️
windows-2019 26.49% <0.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/app/data_harvester/network/heim.rs 0.00% <0.00%> (ø)
src/app/data_harvester/temperature.rs 4.76% <0.00%> (+0.41%) ⬆️
src/app/data_harvester/processes/linux.rs 19.43% <0.00%> (-1.35%) ⬇️
src/app/data_harvester.rs 0.00% <0.00%> (ø)
src/app/data_harvester/cpu.rs 0.00% <0.00%> (ø)
src/app/data_harvester/memory/general/heim.rs 0.00% <0.00%> (ø)
src/app/data_harvester/cpu/heim/unix.rs
src/app/data_harvester/cpu/heim/windows_macos.rs
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ClementTsang
Copy link
Owner

Thanks! Will take a look in a bit.

Copy link
Owner

@ClementTsang ClementTsang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for catching this and fixing it! I'll probably add some tests + changelog updates in a separate PR.

@ClementTsang
Copy link
Owner

@all-contributors please add @dvalter for code.

@allcontributors
Copy link
Contributor

@ClementTsang

I've put up a pull request to add @dvalter! 🎉

@ClementTsang ClementTsang merged commit 40288c1 into ClementTsang:master Mar 3, 2023
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.

2 participants