Skip to content

webui: fix handling deleted clients in restore browser#1933

Merged
BareosBot merged 21 commits intobareos:masterfrom
joergsteffens:dev/joergs/master/webui-removed-clients
Sep 26, 2024
Merged

webui: fix handling deleted clients in restore browser#1933
BareosBot merged 21 commits intobareos:masterfrom
joergsteffens:dev/joergs/master/webui-removed-clients

Conversation

@joergsteffens
Copy link
Member

@joergsteffens joergsteffens commented Aug 14, 2024

Thank you for contributing to the Bareos Project!

See #1851

This change allows to restore files from clients no longer part of Bareos to other clients.
This did require changes to core as well as webui.
Also some systemtests has been added to test the parameter handling of the bconsole commands.

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
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

@joergsteffens joergsteffens added this to the 24.0.0 milestone Aug 14, 2024
@joergsteffens joergsteffens changed the title webui: fix handling deleted clients in restore brwoser webui: fix handling deleted clients in restore browser Aug 14, 2024
@joergsteffens joergsteffens self-assigned this Aug 21, 2024
@joergsteffens joergsteffens force-pushed the dev/joergs/master/webui-removed-clients branch from 33abf3e to d9769aa Compare August 23, 2024 15:13
@joergsteffens joergsteffens requested a review from sebsura August 23, 2024 15:32
@joergsteffens joergsteffens force-pushed the dev/joergs/master/webui-removed-clients branch from cfc1dc2 to ec486c7 Compare August 25, 2024 08:45
@joergsteffens joergsteffens marked this pull request as ready for review August 25, 2024 12:50
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 some very good changes in here. I only looked at the changes in core for now but i already have some comments.

@joergsteffens joergsteffens requested a review from sebsura August 28, 2024 14:43
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 still need to look at some php files but as it might take some time i wanted to already give you some feedback.

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 Changes!

@sebsura sebsura added enhancement requires no backport This will not be backported labels Sep 26, 2024
A joblevel at the "run" command must be specified as
Full, Differential or Incremental,
while the job level at the list command must be specified as
F, D or I.
This change allows the the job level atthe list command can also be used
by its full names.

(cherry picked from commit 8c1cbfb)
The python-bareos systemtests do test a lot of functionality.
As every test must be able to run indepently and in random order,
the tests often ensured that test data is available
by running a backup job.

This change uses the recently introduced function get_backup_jobid
to ensure the availability of test data in a more efficient way:
if a job with the requested parameter already exists,
it's jobid is returned. Otherwise the requested job is started.

(cherry picked from commit e5b38b3)
... as the code for both has been nearly identical.
@joergsteffens joergsteffens force-pushed the dev/joergs/master/webui-removed-clients branch from 552f04f to 585ef8d Compare September 26, 2024 06:36
@BareosBot BareosBot merged commit 339bcce into bareos:master Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement requires no backport This will not be backported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webui becomes unresponsive when trying to restore when a deleted client exists

3 participants