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

mgr/dashboard: disable delete on multisite #51283

Merged
merged 1 commit into from Jun 27, 2023

Conversation

Pegonzal
Copy link
Contributor

@Pegonzal Pegonzal commented Apr 28, 2023

Fixed shown pools to be deleted:

image

And disabled delete button on specified occasions where shouldn't be able to delete

Fixes: https://tracker.ceph.com/issues/59441
Signed-off-by: Pedro Gonzalez Gomez pegonzal@redhat.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

@github-actions
Copy link

github-actions bot commented May 4, 2023

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@Pegonzal Pegonzal marked this pull request as ready for review May 16, 2023 11:17
@Pegonzal Pegonzal requested a review from a team as a code owner May 16, 2023 11:17
@Pegonzal Pegonzal requested review from avanthakkar and pereman2 and removed request for a team May 16, 2023 11:17
@Pegonzal
Copy link
Contributor Author

jenkins test make check

@Pegonzal
Copy link
Contributor Author

jenkins test make check

src/pybind/mgr/dashboard/controllers/rgw.py Show resolved Hide resolved

if (node.data.type === 'zonegroup') {
if (this.zonegroups.length < 2) {
this.deleteTitle = 'You can not delete the only zonegroup available';
Copy link
Contributor

Choose a reason for hiding this comment

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

I supposed this function would only return whether it is disabled or not. Maybe the return should be an empty string when it isn't disabled and a message of why is disabled if true.

Copy link
Contributor

@pereman2 pereman2 left a comment

Choose a reason for hiding this comment

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

Left some suggestions

@Pegonzal
Copy link
Contributor Author

jenkins test make check

1 similar comment
@Pegonzal
Copy link
Contributor Author

jenkins test make check

Copy link
Contributor

@aaSharma14 aaSharma14 left a comment

Choose a reason for hiding this comment

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

Thank you @Pegonzal for the PR. Works as expected,tested locally. Can you please rebase the PR

@aaSharma14 aaSharma14 requested a review from pereman2 June 15, 2023 06:19
Fixes: https://tracker.ceph.com/issues/59441
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
@aaSharma14
Copy link
Contributor

jenkins test dashboard

@aaSharma14
Copy link
Contributor

jenkins test dashboard cephadm

2 similar comments
@aaSharma14
Copy link
Contributor

jenkins test dashboard cephadm

@aaSharma14
Copy link
Contributor

jenkins test dashboard cephadm

@aaSharma14 aaSharma14 merged commit a58490c into ceph:main Jun 27, 2023
10 of 13 checks passed
@aaSharma14 aaSharma14 deleted the disable-delete branch June 27, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
3 participants