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
mgr/dashboard: cephfs volume rm and rename #52645
Conversation
Can we divide them in two different PR separating out remove and edit? |
The changes aren't much for both, it's just right now I've cherry-picked Pere's PR for creation as some changes are required from that PR. Once that PR is merged I can remove that commit so there won't be much changes left then. |
848cc9b
to
0dacf60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs.service.ts
Outdated
Show resolved
Hide resolved
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
0dacf60
to
aed41c2
Compare
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
this.modalService.show(FormModalComponent, { | ||
titleText: $localize`Edit Volume: ${selectedVolume}`, | ||
fields: [ | ||
{ | ||
type: 'text', | ||
name: 'volumeName', | ||
value: selectedVolume, | ||
label: $localize`Name`, | ||
required: true | ||
} | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed this. We already have a form component for the volume creation. Why not reuse that and disable whatever that is not needed for the edit? Otherwise whenever we add new things to the creation form, we'll need to explicitly maintain the edit form as well. So we can follow the similar pattern that is done all over the dashboard for this edit form as well.
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
Show resolved
Hide resolved
e7ae4df
to
1b70344
Compare
jenkins test api |
9ec3221
to
a815920
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Working nicely, thanks Avan.
jenkins retest this please |
Lint failing on relates errors @avanthakkar . Looks like some unused variables. Try to run |
Api test failure is also related! |
fbe0f63
to
860cae5
Compare
jenkins retest this please |
860cae5
to
ca6590c
Compare
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
ca6590c
to
9cbca57
Compare
9cbca57
to
f7779d8
Compare
|
@avanthakkar maybe its best to test the API tests of this PR locally before pushing and waiting for the jenkins to pass. |
also I just noticed there is no tracker attached! |
d6504f3
to
a540cac
Compare
jenkins test api |
jenkins test make check |
1 similar comment
jenkins test make check |
Fixes: https://tracker.ceph.com/issues/62408 Signed-off-by: avanthakkar <avanjohn@gmail.com>
a540cac
to
d756fad
Compare
Fixes: https://tracker.ceph.com/issues/62408
Signed-off-by: avanthakkar avanjohn@gmail.com
Edit CephFS Volume:
Screencast from 2023-07-26 23-51-40.webm
Delete CephFS Volume:
Screencast from 2023-07-26 23-52-46.webm
If
mon_allow_pool_delete
is disabled:Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows