Skip to content

scheduler: 'last' keyword doesn't allow job to be visible in status dir#2120

Merged
BareosBot merged 20 commits intobareos:masterfrom
florian-at-bareos:issue2046
Feb 20, 2025
Merged

scheduler: 'last' keyword doesn't allow job to be visible in status dir#2120
BareosBot merged 20 commits intobareos:masterfrom
florian-at-bareos:issue2046

Conversation

@florian-at-bareos
Copy link
Contributor

@florian-at-bareos florian-at-bareos commented Jan 15, 2025

Fixes #2046: scheduler: 'last' keyword doesn't allow job to be visible in status dir

The previous implementation of find_next_run has a bug when manually
comparing bitfields in DateTimeBitfield, where it does not account for
the case where the flag 'last_week_of_month' is set.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
    Required backport PRs have been created
  • Correct milestone is set
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@florian-at-bareos florian-at-bareos marked this pull request as ready for review January 17, 2025 09:20
@sebsura sebsura added bugfix bug This addresses a bug and removed bugfix labels Jan 17, 2025
@sebsura sebsura added this to the 25.0.0 milestone Jan 17, 2025
@florian-at-bareos florian-at-bareos deleted the issue2046 branch January 20, 2025 06:59
@florian-at-bareos florian-at-bareos restored the issue2046 branch January 20, 2025 06:59
@florian-at-bareos florian-at-bareos force-pushed the issue2046 branch 2 times, most recently from cc20bb1 to 4371a57 Compare February 13, 2025 07:29
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

There are build failures. Please fix them.

@florian-at-bareos
Copy link
Contributor Author

jenkins passed, just fixing one commit message..

Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

Thanks for the great work!

Fixes bareos#2046: scheduler: last keyword doesn't allow job to be
visible in status dir

The previous implementation of find_next_run has a bug when manually
comparing bitfields in DateTimeBitfield, where it does not account for
the case where the flag 'last_week_of_month' is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This addresses a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scheduler: last keyword doesn't allow job to be visible in status dir

3 participants