Skip to content

Addition of the status filter in the backup listing API #13254

Open
GeanJS wants to merge 3 commits into
apache:mainfrom
scclouds:add-filter-by-status
Open

Addition of the status filter in the backup listing API #13254
GeanJS wants to merge 3 commits into
apache:mainfrom
scclouds:add-filter-by-status

Conversation

@GeanJS

@GeanJS GeanJS commented May 26, 2026

Copy link
Copy Markdown
Contributor

Description

Currently, the listBackups API does not allow listing backups based on their status. Changes have been made to the API to allow backups to be listed informing a specific status. In addition, the backups filter of the graphical interface has been extended to support the search based on status.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

pr-screenshot

How Has This Been Tested?

The PR was tested by verifying both via CloudMonkey and the graphical interface the possibility of filtering backups by status.

How did you try to break this feature and the system with this change?

I tried to break this feature by passing an invalid status in both the CloudMonkey and the browser URL. In the API response a message was returned informing that the passed value is an invalid status.

Comment thread ui/package-lock.json
@GeanJS GeanJS force-pushed the add-filter-by-status branch from 9fa3f09 to b058f0a Compare May 26, 2026 19:21
@codecov

codecov Bot commented May 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 6.66667% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 20.14%. Comparing base (d2c8aa7) to head (fe52050).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...rg/apache/cloudstack/backup/BackupManagerImpl.java 8.33% 11 Missing ⚠️
...dstack/api/command/user/backup/ListBackupsCmd.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13254      +/-   ##
============================================
+ Coverage     18.93%   20.14%   +1.20%     
- Complexity    18471    18472       +1     
============================================
  Files          6221     5751     -470     
  Lines        560045   519387   -40658     
  Branches      68289    60627    -7662     
============================================
- Hits         106048   104614    -1434     
+ Misses       442372   403344   -39028     
+ Partials      11625    11429     -196     
Flag Coverage Δ
uitests ?
unittests 20.14% <6.66%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GeanJS GeanJS changed the title adding backup filter by status Addition of the status filter in the backup listing API May 27, 2026

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm (uma pergunta)

Comment thread ui/public/locales/pt_BR.json

@bernardodemarco bernardodemarco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@GeanJS, code lgtm. I've just left one comment/suggestion here

Comment thread ui/src/components/widgets/Status.vue Outdated
Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>

@erikbocks erikbocks left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CLGTM. Didn't test it.

@weizhouapache weizhouapache added this to the 4.23.0 milestone Jun 29, 2026

@weizhouapache weizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@weizhouapache

Copy link
Copy Markdown
Member

@GeanJS
could you fix the conflicts ?

@Tonitzpp Tonitzpp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CLGTM

@apache apache deleted a comment from blueorangutan Jul 2, 2026
@apache apache deleted a comment from blueorangutan Jul 2, 2026
@apache apache deleted a comment from blueorangutan Jul 2, 2026
@apache apache deleted a comment from blueorangutan Jul 2, 2026
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18439

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants