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

Improve Watt-time plugin #65

Merged
merged 30 commits into from
Apr 9, 2024
Merged

Improve Watt-time plugin #65

merged 30 commits into from
Apr 9, 2024

Conversation

manushak
Copy link
Contributor

Types of changes

  • Enhancement (project structure, spelling, grammar, formatting)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • 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 added tests to cover my changes.
  • All new and existing tests passed.

A description of the changes proposed in the Pull Request

  • improve watt time plugin
  • change dayjs to luxon
  • add logic to avoid requesting if the duration is less than 5 minutes, and set the previous emission value to the current one

@manushak manushak added awaiting-dev-review PR is awaiting review from core dev fix PR fixes a bug or improves something size: medium medium sized task labels Mar 27, 2024
Copy link
Contributor

@jmcook1186 jmcook1186 left a comment

Choose a reason for hiding this comment

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

lgtm!

@jmcook1186 jmcook1186 added dev-review-pass PR has been approved by core dev awaiting-qa PR is waiting for QA approval and removed awaiting-dev-review PR is awaiting review from core dev labels Mar 28, 2024
@manushak manushak requested a review from jmcook1186 April 3, 2024 12:24
-check if the geolocation or cloud/region-wt-id is the same when the duration is lower then 5 mins
@MariamKhalatova MariamKhalatova merged commit 907309f into main Apr 9, 2024
2 checks passed
@MariamKhalatova MariamKhalatova deleted the watt-time-plugin branch April 9, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-qa PR is waiting for QA approval dev-review-pass PR has been approved by core dev fix PR fixes a bug or improves something size: medium medium sized task
Projects
None yet
4 participants