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: Add RGW user and bucket management features #21351

Merged
merged 4 commits into from May 2, 2018

Conversation

votdev
Copy link
Member

@votdev votdev commented Apr 11, 2018

bildschirmfoto vom 2018-04-11 15-08-24

fireshot capture 25 - ceph - http___localhost_4200_ _rgw_user

fireshot capture 18 - ceph - http___localhost_4200_ _rgw_user_add

fireshot capture 14 - ceph - http___localhost_4200_ _rgw_user_edit_test

bildschirmfoto vom 2018-04-11 15-08-58

bildschirmfoto vom 2018-04-11 15-09-17

bildschirmfoto vom 2018-04-11 15-09-39

fireshot capture 16 - ceph - http___localhost_4200_ _rgw_bucket

fireshot capture 17 - ceph - http___localhost_4200_ _rgw_bucket_add

bildschirmfoto vom 2018-04-11 15-10-55

@@ -53,6 +49,36 @@ def decorate(cls):
return decorate


def DetailErrorResponse(func, default_status=500):
"""
This decorator ensures that all exceptions are catched and a
Copy link
Contributor

Choose a reason for hiding this comment

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

caught instead of catched

@votdev votdev force-pushed the dashboard_rgw_management branch 4 times, most recently from b7b9ad3 to 6e26b33 Compare April 16, 2018 07:12
@votdev votdev force-pushed the dashboard_rgw_management branch 3 times, most recently from 093ff2c to c0913ad Compare April 26, 2018 14:07
@rjfd
Copy link
Contributor

rjfd commented Apr 26, 2018

QA tests results: http://pulpito.ceph.com/rdias-2018-04-26_15:40:43-rados:mgr-wip-rdias-testing-distro-basic-smithi/

There is one failure but I think it's unrelated with this PR.

@rjfd
Copy link
Contributor

rjfd commented Apr 26, 2018

jenkins retest this please

@rjfd
Copy link
Contributor

rjfd commented Apr 27, 2018

@ricardoasmarques
Copy link
Contributor

minor: What about being more verbose when we don't have subusers, capabilities, etc...

Something like There are no subusers.:

screenshot from 2018-04-27 11-26-56

Instead of Empty:

screenshot from 2018-04-27 11-27-14

@ricardoasmarques
Copy link
Contributor

minor: On RBD form, we decided to disable the submission on "Enter key pressed".

If we want consistency, we should disable it here too.

@ricardoasmarques
Copy link
Contributor

minor: Shouldn't we use a default button to close the dialog, instead of a primary button?

IMO, the close action doesn't deserve so highlight here.

screenshot from 2018-04-27 11-39-22

@Directive({
selector: '[cdCopy2ClipboardButton]'
})
export class Copy2ClipboardButtonDirective implements OnInit {
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding a reusable component on shared module deserves a separate commit.

This helps the review, and also future maintenance.

(something to take into account in the future...)

Copy link
Contributor

@ricardoasmarques ricardoasmarques left a comment

Choose a reason for hiding this comment

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

LGTM

@votdev
Copy link
Member Author

votdev commented Apr 27, 2018

@ricardoasmarques Your comments has been addressed.

@votdev
Copy link
Member Author

votdev commented Apr 27, 2018

@rjfd I'm now catching exceptions more selective.

@votdev votdev force-pushed the dashboard_rgw_management branch 4 times, most recently from 29805d7 to f577ded Compare April 27, 2018 13:50
@votdev
Copy link
Member Author

votdev commented Apr 27, 2018

@ricardoasmarques A separate commit has been created for the Copy2ClipboardButtonDirective.

Signed-off-by: Volker Theile <vtheile@suse.com>
Signed-off-by: Volker Theile <vtheile@suse.com>
Signed-off-by: Volker Theile <vtheile@suse.com>
- Do some minor improvements in the RGW client
- Do not catch ALL exceptions to do not block the current exception handler that prints the stack trace in the log file
- Throw RequestException istead of Exception when user does not have the required keys

Signed-off-by: Volker Theile <vtheile@suse.com>
@LenzGr
Copy link
Contributor

LenzGr commented May 2, 2018

retest this please

@LenzGr LenzGr merged commit bcfd227 into ceph:master May 2, 2018
@votdev votdev deleted the dashboard_rgw_management branch May 2, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants