-
Notifications
You must be signed in to change notification settings - Fork 356
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
Server group power ops ui #286
Server group power ops ui #286
Conversation
@Jiri-Kremser Cannot apply the following labels because they are not recognized: providers/hawkular, pending_core |
@Jiri-Kremser: moving forward we should do this throught the API rather than adding new UI controller code. If any pieces would be missing for running API actions from the toolbars for example, ping me and @himdel. |
@Jiri-Kremser Cannot apply the following labels because they are not recognized: providers/hawkular, pending_core |
This pull request is not mergeable. Please rebase and repush. |
It's no longer blocked by the PR ManageIQ/manageiq#13741 |
7b2ad85
to
ba01e0f
Compare
@Jiri-Kremser @bronaghs is an invalid assignee, ignoring... |
@Fryguy - not sure if you are the right person for this, but we need a bunch of labels and assignees made available in the manageiq-ui-classic repo, see errors above. |
|
||
function ServerOpsServiceFactory($http, $q, isGroup) { | ||
var runOperation = function runOperation(id, operation, timeout) { | ||
var errorMsg = _('Error running operation on this server' + (isGroup ? '.' : ' group.')); |
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.
Please, don't do math on strings that need translation. It's better to repeat the common substring rather than making the hell from the translation work ;-)
@@ -191,7 +191,7 @@ def run_operation | |||
operation_info = ALL_OPERATIONS.fetch(operation) | |||
run_server_param_operation(operation_info, selected_servers) | |||
else | |||
msg = _("Unknown server operation: ") + operation | |||
msg = _("Unknown server operation: ") + operation.to_s |
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.
here, the preferred form would be: msg = _("Unknown server operation: %{operation}") % {:operation => operation}
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.
it's done, good catch, I missed it
aside the small i18n issues, we are good to merge! |
ba01e0f
to
9086a68
Compare
Checked commits jkremser/manageiq-ui-classic@21bbaf9~...9086a68 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@martinpovolny if this is gtg, could you pls merge? |
Adding the support for power operations on middleware server groups. To save some code I reused the
middleware_server_controller.js
angular controller to work also with server groups.It depends on ManageIQ/manageiq#13741(UPDATE: merged)@miq-bot add_labels providers/hawkular, enhancement, pending_core