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

[change] Send OS details in all event categories #371 #375

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

pandafy
Copy link
Member

@pandafy pandafy commented Mar 22, 2024

  • Removed "OS details" as a separate category
  • There are only three supported categories - Install, Upgrade and Heartbeat
  • Refactored code

Closes #371

Changes

#Please explain changes made in your PR#

Screenshots

#For UI changes, please share a screenshot#

Checklist

  • I have read the contributing guidelines.
  • I have manually tested the proposed changes.
  • I have written new test cases to avoid regressions. (if necessary)
  • I have updated the documentation. (e.g. README.rst)
  • I have added [change!] to commit title to indicate a backward incompatible change. (if required)
  • I have checked the links added / modified in the documentation.

#Closes #(issue-number)#

- Removed "OS details" as a separate category
- There are only three supported categories - Install, Upgrade and Heartbeat
- Refactored code

Closes #371
@pandafy pandafy force-pushed the issues/371-metric-collection-refactoring branch from f991218 to b75a42a Compare March 22, 2024 19:17
@coveralls
Copy link

coveralls commented Mar 22, 2024

Coverage Status

coverage: 98.4% (+0.005%) from 98.395%
when pulling f3f7c0e on issues/371-metric-collection-refactoring
into 0752812 on master.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

I am testing this from an instance as follows:

from openwisp_utils.measurements.tasks import send_usage_metrics
send_usage_metrics.delay()
send_usage_metrics.delay(category='Heartbeat')
send_usage_metrics(category='Heartbeat')

I see no events being collected.

Are you sure this is working as expected?

OpenWISP Priorities for next releases automation moved this from In progress to Reviewer approved Apr 4, 2024
@nemesifier nemesifier merged commit 578afe1 into master Apr 4, 2024
10 checks passed
OpenWISP Priorities for next releases automation moved this from Reviewer approved to Done Apr 4, 2024
@nemesifier nemesifier deleted the issues/371-metric-collection-refactoring branch April 4, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[change] Metric collection: OS details, readability
3 participants