Skip to content

configuration: deprecate base jobs#1580

Merged
BareosBot merged 7 commits intobareos:masterfrom
pstorz:dev/pstorz/master/deprecate-basejobs
Nov 13, 2023
Merged

configuration: deprecate base jobs#1580
BareosBot merged 7 commits intobareos:masterfrom
pstorz:dev/pstorz/master/deprecate-basejobs

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Oct 30, 2023

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
  • Check backport line
  • Required backport PRs have been created
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
Tests
  • Decision taken that a test is required (if not, then remove this paragraph)
  • The choice of the type of test (unit test or systemtest) is reasonable
  • Testname matches exactly what is being tested
  • On a fail, output of the test leads quickly to the origin of the fault

@pstorz pstorz added the draft label Oct 30, 2023
@pstorz pstorz force-pushed the dev/pstorz/master/deprecate-basejobs branch from 2c0be93 to 462706b Compare October 30, 2023 12:15
arogge
arogge previously requested changes Nov 2, 2023
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

in core/src/dird/dird_conf.cc we have JobResource::Validate() that should probably also check if Level = Base and store a configuration warning.

@pstorz pstorz removed the draft label Nov 9, 2023
@pstorz pstorz requested review from arogge and sebsura and removed request for arogge November 9, 2023 11:59
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.

Looks good. We should probably add a warning to TasksAndConcepts/FileDeduplicationUsingBaseJobs.html saying that base jobs are deprecated as well.

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.

I think we should also deprecate
Dir->Fileset->Include->Options->BaseJob
Since it only does something when base jobs are involved afaik.
It should be found in inc_conf.cc.

The unused and undocumented option Base inside inc_conf.cc should also be deprecated now so that we can remove it next release.

@pstorz pstorz requested a review from sebsura November 13, 2023 14:27
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.

Great Work!

@pstorz pstorz dismissed arogge’s stale review November 13, 2023 15:12

Sebsura took over

@BareosBot BareosBot force-pushed the dev/pstorz/master/deprecate-basejobs branch from f5ace6b to 2b770e6 Compare November 13, 2023 15:54
@BareosBot BareosBot merged commit 19e3d62 into bareos:master Nov 13, 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.

4 participants