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

Stats: TBhours in last month #1431

Merged
merged 31 commits into from
Jun 7, 2023
Merged

Conversation

i-oden
Copy link
Member

@i-oden i-oden commented May 31, 2023

Before submitting this PR

  1. Description: Calculate and save number of TB hours used during the last month.
  2. Jira task / GitHub issue: DDS-1560
  3. How to test: Add information on how someone could manually test this functionality. As detailed as possible.
  4. Type of change: Check the relevant boxes in the section below
  5. Add docstrings and comments to code, even if you personally think it's obvious.

What type of change(s) does the PR contain?

  • New feature
    • Breaking: Please describe the reason for the break and how we can fix it.
    • Non-breaking
  • Database change
    • Migration included in PR
    • Migration not needed
  • Bug fix
    • Breaking: Please describe the reason for the break and how we can fix it.
    • Non-breaking
  • Security Alert fix
  • Documentation
  • Tests (only)
  • Workflow

Checklist

  • Sprintlog
    • Added
    • Not needed (E.g. PR contains only tests)
  • Rebase / Update / Merge from base branch (the branch from which the current is forked)
    • Done
    • Not needed
  • Blocking PRs
    • Merged
    • No blocking PRs
  • PR to master branch

Actions / Scans

  • Black: Python code formatter. Does not execute. Only tests.
    Run black . locally to execute formatting.
    • Passed
  • Prettier: General code formatter. Our use case: MD and yaml mainly.
    Run npx prettier --write . locally to execute formatting.
    • Passed
  • Yamllint: Linting of yaml files.
    • Passed
  • Tests: Pytest to verify that functionality works as expected.
    • New tests added
    • No new tests
    • Passed
  • CodeQL: Scan for security vulnerabilities, bugs, errors
    • New alerts: Go through them and either fix, dismiss och ignore. Add reasoning in items below.
    • Alerts fixed: What?
    • Alerts ignored / dismissed: Why?
    • Passed
  • Trivy: Security scanner
    • New alerts: Go through them and either fix, dismiss och ignore. Add reasoning in items below.
    • Alerts fixed: What?
    • Alerts ignored / dismissed: Why?
    • Passed
  • Snyk: Security scanner
    • New alerts: Go through them and either fix, dismiss och ignore. Add reasoning in items below.
    • Alerts fixed: What?
    • Alerts ignored / dismissed: Why?
    • Passed

@i-oden i-oden self-assigned this May 31, 2023
@i-oden i-oden requested a review from valyo May 31, 2023 14:38
@i-oden i-oden marked this pull request as ready for review May 31, 2023 14:38
Copy link
Member

@valyo valyo left a comment

Choose a reason for hiding this comment

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

Looks good, just minor comments on the two comments

dds_web/utils.py Outdated Show resolved Hide resolved
dds_web/utils.py Outdated Show resolved Hide resolved
i-oden and others added 2 commits June 1, 2023 09:00
Co-authored-by: Valentin Georgiev <[email protected]>
Co-authored-by: Valentin Georgiev <[email protected]>
@i-oden
Copy link
Member Author

i-oden commented Jun 1, 2023

Looks good, just minor comments on the two comments

@valyo 👍🏻 Fixed!

@valyo valyo mentioned this pull request Jun 1, 2023
40 tasks
dds_web/utils.py Outdated Show resolved Hide resolved
@i-oden i-oden requested a review from valyo June 2, 2023 12:57
@i-oden i-oden merged commit 6139b0a into dev Jun 7, 2023
@i-oden i-oden deleted the DDS-1560-stats-tb-hours-in-last-month branch June 7, 2023 11:20
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