-
Notifications
You must be signed in to change notification settings - Fork 357
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
Change report data to be rendered using angular #26
Conversation
Follow pull request of ManageIQ/manageiq#11114 @himdel @martinpovolny @dclarizio @epwinchell @serenamarie125 FYI |
@miq-bot add_label wip, ui, enhancment |
@karelhala Cannot apply the following labels because they are not recognized: ui, enhancment |
c33a689
to
4639a44
Compare
@martinpovolny @dclarizio @himdel tests are green and it's same as in ManageIQ/manageiq#11114, two things needs to be done before merge update |
70e60bd
to
04e6ca5
Compare
@martinpovolny could you please look at this and ManageIQ/manageiq#13344 |
dd60304
to
1d1a48d
Compare
end | ||
|
||
# Private method for processing params. | ||
# params can contain these oprions: |
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.
typo: "oprions"
@@ -297,21 +298,18 @@ def get_node_info(treenodeid) | |||
end | |||
|
|||
case model |
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.
options = case...
@@ -554,22 +556,22 @@ def get_node_info(treenodeid) | |||
|
|||
case model |
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.
options = case ...
app/helpers/quadicon_helper.rb
Outdated
item.message | ||
else | ||
item.name | ||
end |
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.
why this change?
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.
There's been a test which failed with empty name, when MiqProvisionRequest
used quadicon.
sendDataWithRx({initController: { | ||
name: 'reportDataController', | ||
data: { | ||
modelName: '#{CGI::escape(j_str(@display.nil? && current_model ? controller.class.model.to_s.tableize : @display))}', |
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.
really want to html escape javascript escaped data? if so, use h
instead of CGI::escape
sortColIdx: '#{@sortcol}', | ||
sortDir: '#{@sortdir}', | ||
isExplorer: '#{@explorer}' === 'true' ? true : false, | ||
showUrl: '#{view_to_url(@view) if !@view.nil? && !@view.db.nil?}' |
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.
if @view.present? && @view.db.present?
I get loads of CodeClimate warnings: missing |
…ort does not have downcase, do not return any image and show default image in report data
Change icon to check if it can be created via glyphicon Show items in per page picker
…ow ownership in nested screens
… class for icon based on view.db and row Use noSelectBox in bower
…rom string to integer, After clicking in configuration on GTL activete coresponding tree
Add correct policies in nested view Add explorer when adding policy for simulation if explorer is in @edit
Checked commits karelhala/manageiq-ui-classic@6d4b184~...296c6e4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/controllers/application_controller.rb
app/controllers/automation_manager_controller.rb
app/controllers/catalog_controller.rb
app/controllers/chargeback_controller.rb
app/controllers/container_controller.rb
app/controllers/infra_networking_controller.rb
app/controllers/miq_ae_class_controller.rb
app/controllers/miq_policy_controller.rb
app/controllers/ops_controller.rb
app/controllers/provider_foreman_controller.rb
app/controllers/report_controller.rb
app/controllers/service_controller.rb
app/controllers/storage_controller.rb
app/controllers/vm_common.rb
app/helpers/application_helper.rb
spec/controllers/application_controller/report_data_spec.rb
|
Closing because travis is testing wrong commit. I will reopen this as new PR. |
Purpose or Intent
TODO before merge:
before_install.sh
scriptbower.json
to use newest version of manageiq-ui-componentsTo have much more responsible UI, we have to rewrite GTL to angular. So no longer generating views on rendering page, but with AJAX request.
To enable these components all at once we have to include specific route to each controller, this is done in routes.rb with default actions. Each controller will then have these default routes and will be able to list all entities. With this also new method in application_controller.rb is introduced, which will take care of filtering current view.
New angular module is introduced in this PR with one controller for fetching these data.