Skip to content

feat: improve object version management#149

Merged
overtrue merged 1 commit into
mainfrom
cxymds/issue-147-object-versions
Jul 5, 2026
Merged

feat: improve object version management#149
overtrue merged 1 commit into
mainfrom
cxymds/issue-147-object-versions

Conversation

@cxymds

@cxymds cxymds commented Jul 5, 2026

Copy link
Copy Markdown
Member

Pull Request

Description

Improve object version management from the object versions dialog:

  • Expand the versions dialog for large screens and show displayed version count plus total size.
  • Add sortable Last Modified and Size columns using the shared data table sorting behavior.
  • Add a confirmed Restore action for non-current versions using CopyObject with the source version ID.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test improvements
  • Security fix

Testing

  • Unit tests added/updated
  • Manual testing completed
source ~/.nvm/nvm.sh && nvm use v22 && pnpm install --frozen-lockfile
source ~/.nvm/nvm.sh && nvm use v22 && pnpm tsc --noEmit
source ~/.nvm/nvm.sh && nvm use v22 && pnpm lint
source ~/.nvm/nvm.sh && nvm use v22 && pnpm prettier --check .
source ~/.nvm/nvm.sh && nvm use v22 && node --test tests/lib/*.test.js tests/lib/object-rename.test.ts tests/lib/i18n-locales.test.js tests/lib/object-versions-source.test.js

Note: package.json does not currently define pnpm test:run, so the Node test runner command above was used for the executable test subset.

Checklist

  • Code follows the project's style guidelines
  • Self-review completed
  • TypeScript types are properly defined
  • All commit messages are in English (Conventional Commits)
  • All existing executable tests pass
  • No new dependencies added, or they are justified

Related Issues

Closes #147

Screenshots (if applicable)

Not captured.

Additional Notes

The restore action depends on RustFS backend support for same-key CopyObject with a source versionId, added in rustfs/rustfs#4250.

@overtrue overtrue merged commit d8d974f into main Jul 5, 2026
10 checks passed
@overtrue overtrue deleted the cxymds/issue-147-object-versions branch July 5, 2026 10:08
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.

[FEATURE] Improve working with object versions

2 participants