Skip to content

Commit

Permalink
UI: Do not display objects that have also a delete marker
Browse files Browse the repository at this point in the history
Fixes: https://github.com/aquarist-labs/s3gw/issues/548

Signed-off-by: Volker Theile <vtheile@suse.com>
  • Loading branch information
votdev committed May 25, 2023
1 parent 68407f6 commit 2b16f09
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.17.0]

### Fixed

- Do not display objects that have also a delete marker (gh#aquarist-labs/s3gw#548).

## [0.16.0]

### Removed

- Disable bucket and user quotas in the UI (gh#aquarist-labs/s3gw#503).

## [0.15.0]

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,14 @@ export class ObjectDatatablePageComponent implements OnInit {
});
// @ts-ignore
if (this.showDeletedObjects) {
newObjects.push(..._.filter(objects, ['IsDeleted', true]));
newObjects.push(
..._.filter(objects, {
/* eslint-disable @typescript-eslint/naming-convention */
IsLatest: true,
IsDeleted: true
/* eslint-enable @typescript-eslint/naming-convention */
})
);
}
this.objects = [...this.objects, ...newObjects];
},
Expand Down

0 comments on commit 2b16f09

Please sign in to comment.