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

show_progress: add finished=true/false to archive_progress json #6683

Conversation

ThomasWaldmann
Copy link
Member

fixes #6570

also:

  • remove empty values from final json
  • add test

@ThomasWaldmann ThomasWaldmann added this to the 1.2.1 milestone May 8, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 8, 2022

Codecov Report

Merging #6683 (9dff959) into 1.2-maint (bcac974) will increase coverage by 0.18%.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##           1.2-maint    #6683      +/-   ##
=============================================
+ Coverage      82.81%   82.99%   +0.18%     
=============================================
  Files             38       38              
  Lines          10497    10503       +6     
  Branches        2059     2060       +1     
=============================================
+ Hits            8693     8717      +24     
+ Misses          1287     1271      -16     
+ Partials         517      515       -2     
Impacted Files Coverage Δ
src/borg/archive.py 81.73% <100.00%> (+0.59%) ⬆️
src/borg/repository.py 84.04% <0.00%> (+0.18%) ⬆️
src/borg/archiver.py 80.48% <0.00%> (+0.32%) ⬆️
src/borg/selftest.py 77.55% <0.00%> (+1.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcac974...9dff959. Read the comment docs.

@ThomasWaldmann ThomasWaldmann merged commit fd4503c into borgbackup:1.2-maint May 8, 2022
@ThomasWaldmann ThomasWaldmann deleted the fix-archive-progress-json-1.2 branch May 8, 2022 17:45
ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this pull request Jul 1, 2022
…up#4074

in the finished == true message, these are missing:
- message
- current / total
- info

This is to be somewhat consistent with borgbackup#6683 by only providing a
minimal set of values for the finished case.

The finished messages is primarily intended for cleanup purposes,
e.g. clearing the progress display.
ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this pull request Jul 1, 2022
…up#4074

in the finished == true message, these are missing:
- message
- current / total
- info

This is to be somewhat consistent with borgbackup#6683 by only providing a
minimal set of values for the finished case.

The finished messages is primarily intended for cleanup purposes,
e.g. clearing the progress display.
ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this pull request Jul 1, 2022
…up#4074

in the finished == true message, these are missing:
- message
- current / total
- info

This is to be somewhat consistent with borgbackup#6683 by only providing a
minimal set of values for the finished case.

The finished messages is primarily intended for cleanup purposes,
e.g. clearing the progress display.
ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this pull request Jul 1, 2022
…up#4074

in the finished == true message, these are missing:
- message
- current / total
- info

This is to be somewhat consistent with borgbackup#6683 by only providing a
minimal set of values for the finished case.

The finished messages is primarily intended for cleanup purposes,
e.g. clearing the progress display.
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