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

fix(dcellar-web-ui): correct the bucket status #389

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/dcellar-web-ui/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "dcellar-web-ui",
"entries": [
{
"version": "1.6.1",
"tag": "dcellar-web-ui_v1.6.1",
"date": "Thu, 30 May 2024 10:00:54 GMT",
"comments": {
"patch": [
{
"comment": "Correct the bucket status"
}
]
}
},
{
"version": "1.6.0",
"tag": "dcellar-web-ui_v1.6.0",
Expand Down
9 changes: 8 additions & 1 deletion apps/dcellar-web-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - dcellar-web-ui

This log was last generated on Thu, 30 May 2024 09:05:12 GMT and should not be manually modified.
This log was last generated on Thu, 30 May 2024 10:00:54 GMT and should not be manually modified.

## 1.6.1
Thu, 30 May 2024 10:00:54 GMT

### Patches

- Correct the bucket status

## 1.6.0
Thu, 30 May 2024 09:05:12 GMT
Expand Down
2 changes: 1 addition & 1 deletion apps/dcellar-web-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dcellar-web-ui",
"version": "1.6.0",
"version": "1.6.1",
"private": false,
"scripts": {
"dev": "node ./scripts/dev.js -p 3200",
Expand Down
5 changes: 1 addition & 4 deletions apps/dcellar-web-ui/src/store/slices/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,7 @@ export const setupBucketList =
}

const bucketList =
res.body?.map((bucket) => ({
...bucket,
BucketInfo: { ...bucket.BucketInfo, BucketStatus: 1 },
})) || [];
res.body?.map((bucket) => ({ ...bucket, BucketInfo: { ...bucket.BucketInfo } })) || [];

const bucketSpInfo = bucketList.map((b) => ({
bucketName: b.BucketInfo.BucketName,
Expand Down
Loading