-
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
vm_controller and genericSessionMixin update #647
Closed
Closed
Changes from 5 commits
Commits
Show all changes
322 commits
Select commit
Hold shift + click to select a range
2f8108f
Split 'perf_menu_click' method to smaller method 'timeline_selected'
romanblanco 6ac19c4
Split 'perf_menu_click' method to smaller method 'chart_current_hourly'
romanblanco 85dffc0
Split 'perf_menu_click' method to smaller method 'chart_current_daily'
romanblanco dca419f
Split 'perf_menu_click' method to smaller method 'chart_selected'
romanblanco 213b527
Split 'perf_menu_click' method to smaller method 'chart_top_by_tag'
romanblanco 2a9b50c
Split 'perf_menu_click' method to smaller method 'chart_top'
romanblanco 590fb3d
Store the messages to instance variable 'menu_click_msg'
romanblanco a507b3e
Fixs spelling.
d-m-u b8535a7
Merge pull request #662 from d-m-u/spellingVisibility
mzazrivec b79749f
Merge pull request #425 from AparnaKarve/creds_component
himdel d128c03
MiqDecorator - delegate #fonticon and #listicon_image to self.class
skateman 8e985f9
Define MiqDecorator#fonticon as a class method where possible
skateman 6f39714
Define MiqDecorator#listicon_image as a class method where possible
skateman 5342aba
Review response: removed unnecessary return
romanblanco 745fc7b
MiqTemplateController - remove dead @cats
himdel 818dcb7
ReportController - remove dead @cats
himdel 39476c5
ConfigurationController - remove dead @cats
himdel 6acd293
Vm*Controller - remove dead @cats
himdel 77174dc
Remove unnecessary console.log from charts JS
skateman 26a75e4
Merge pull request #663 from skateman/unnecessary-console-log
martinpovolny 3bef426
Compare - remove dead compare_set_base, {compare,drift}_matches
himdel 6b47603
Merge pull request #497 from miha-plesko/delete_aws_object
h-kataria dd7bb94
Remove dead @base from controllers
himdel fa6c2af
Merge pull request #653 from skateman/redecorate-decorators
himdel 672d84e
renaming external_logging feature
7413410
Fixing warnings.
josejulio fbc783b
Corrected loading record id by selected node
romanblanco 3481b46
Move "image?" col next to "name" col on the pre-prov view.
mansam 5fd3635
Changelog 56
mfeifer 8bc11ee
Modify label_tag_mapping_add to accomdate scoped entity type.
f1ed389
Merge pull request #614 from eclarizio/BZ1428171
bddbcfd
Failing spec when action type is container_image_check_compliance
AparnaKarve 022561a
Fix filter values for container_image_check_compliance
AparnaKarve 07ede2c
Ansible Service summary screen.
h-kataria 7dd3312
Further to changes to Ansible Playbook service summary screen
h-kataria 35075ad
Addressed label changes to make them consistent
h-kataria e7f01ee
some minor cleanup of duplicated code.
h-kataria be2e5b0
Changes to handle multiple code mirror boxes on screen.
h-kataria ecd75e7
Merge pull request #558 from h-kataria/ansible_service_summary_screen
ae0af92
Fix rubocops
AparnaKarve 917373b
Fixed an error when clicking on items in Service Catalogs accordion
h-kataria 6349fee
Merge pull request #674 from h-kataria/fix_catalog_item_link
0bb8e3f
Add high_voltage ~> 3.0.0 as a gem dependency
NickLaMuro 29f3fa1
add min bucket types
yaacov 7dfa7e2
make the kebab larger
yaacov 0c3f6ab
space
cben 95d6375
CA textarea affect required validation
cben 4ac7d0b
Merge pull request #672 from mfeifer/changelog56
mzazrivec e044cdc
Add security fields to js controller init()
cben 3a4ea87
Provider-dependent default security protocol
cben 3f8c099
New provider: copy security fields from backend
cben c76858e
Copy security fields to postValidationModel
cben ee24393
Don't reset security fields on kubernetes/openshift change
cben 77bf9ac
Merge pull request #671 from romanblanco/correct_node
himdel 1905cc3
Add defaukt tab for first selected group after login
ZitaNemeckova b76273b
Delete unused vendor-ansible_tower_configuration.svg symlink
ZitaNemeckova f915a6d
Merge pull request #669 from enoodle/refactor_external_logging_to_omi…
ac2683d
Merge pull request #680 from ZitaNemeckova/fix_group_tree
himdel 5232fb1
Fixed mapping and updated specs to include scoped examples.
e5a7561
Merge pull request #607 from yaacov/pagination-support
himdel 8b7d2f2
Remove Playbook Service Templates from list of Available resources
h-kataria cb6c343
Changed condition to get list of available resources.
h-kataria afb2cc1
Label changes on Remove Resources drop down
h-kataria f2817a9
Merge pull request #613 from h-kataria/remove_playbook_templates_from…
5737bd7
Merge pull request #685 from h-kataria/change_remove_resources_labels
8a69a85
Merge pull request #660 from NickLaMuro/remove_hides_action_patch_to_…
chessbyte 7e432da
Merge pull request #677 from NickLaMuro/add_high_voltage_as_a_dependency
chessbyte f60069a
Remove unused delete routes
tzumainn 788c178
Merge pull request #686 from tzumainn/fix-multiple-delete-routes
martinpovolny 7fe502c
Fix middleware nested lists.
martinpovolny a623717
Add a sample nested list test for MiddlewareServerController.
martinpovolny 9e680c0
add pagination
yaacov 4390b5d
Merge pull request #664 from himdel/dead-cats
mzazrivec f22f681
Merge pull request #665 from himdel/dead-base
mzazrivec 18093b3
Merge pull request #687 from martinpovolny/display_methods
mzazrivec 5c26251
Merge pull request #124 from mansam/update-image-view-to-differentiat…
mzazrivec ee92f70
Add Button class to toolbar for Set Ownership screen
lpichler 28fcd08
Use where instead of find and order with using sql
lpichler acd2392
Use scope for ownership on the class if exists
lpichler 2eb47df
Merge pull request #618 from mansam/differentiate-between-snapshots-a…
7b3c6a9
Merge pull request #374 from skateman/disable-async-notifications
martinpovolny d37565e
Check whether there are any remaining items to change ownership
lpichler 658573d
Use variable
lpichler cd9c60c
Check validity of ids when change of ownership is confirmed
lpichler dc3fa4e
Spec enabling/disabling the button
lpichler 1c0503a
Fix spec for tree_spec
lpichler 8fdc812
Use where condition instead of find
lpichler 8dfb1ba
Added retired services node
lgalis 73707c5
Update specs for the new services tree structure
lgalis 2ee6e81
Toolbar for retired services
lgalis a18a1fa
Leverage the fact that TagControl#values includes nil values now
eclarizio 595123e
Do not display child services in the services tree
lgalis 62a771f
Existing Hawkular endpoint with security_protocol == nil show as SSL
cben 92177f2
Merge pull request #632 from lgalis/add_retired_service_tree_node
98f912d
Merge pull request #681 from ZitaNemeckova/delete_ansible_symlink
aa55c89
Corrected class for items with link in textual summary
romanblanco c185470
Merge pull request #673 from AparnaKarve/bz1402939_fix_container_imag…
mzazrivec cc954a2
Merge pull request #701 from romanblanco/correct_hover_class
martinpovolny f085fe0
Added missing bracket to widget editing template
romanblanco a9c72d7
Fixed miq policy profile onclick in the policy profile list
skateman 11457ab
Merge pull request #700 from romanblanco/fixed_editing_widget
martinpovolny 0228382
Merge pull request #702 from skateman/policy-profile-prefix
martinpovolny 4d9593f
Add a TODO reminder that we need to move the pagination ui use the st…
yaacov 9137125
Call changeAuthTab from more miq_tab_header()s
cben 91643a2
Merge pull request #694 from eclarizio/BZ1428133-continuation
h-kataria 81e5432
Fix failing chart specs
PanSpagetka 46d486c
Merge pull request #705 from PanSpagetka/fix-failing-chart-specs
martinpovolny f295dfa
Overriding the default_show_template so that for m. domain, m. server…
jkremser b7bd3f7
Adding missing entry for middleware_server_group. Although, it's not …
jkremser b4752f1
Fix dashboard styling
epwinchell d651402
Change graph options calls
PanSpagetka c20f2c8
Merge pull request #710 from PanSpagetka/change-graph-options-calls
martinpovolny eea932a
Corrected bug introduced in commit 417d3f12
romanblanco b431c78
Merge pull request #709 from epwinchell/fix_dashboard_styling1
martinpovolny 6306c86
Merge pull request #711 from romanblanco/fix_expanding_button
martinpovolny 481b3a0
Merge pull request #649 from lpichler/disable_ownership_screen_for_pr…
martinpovolny 78af57d
Merge pull request #708 from Jiri-Kremser/middleware-show-fix
martinpovolny 57b0e1f
Fix Persistent Volume link to ems_container
zakiva 8817e43
Add Gemfile.dev.rb to .gitignore
NickLaMuro c5a5720
Verify button haml should always be called via credentials haml
AparnaKarve c298c14
Change 'container' to 'resource'.
25f8cda
Fixed some issues introduced with retirement remove resources option
h-kataria ce62aef
Merge pull request #666 from djberg96/label_mapping
1b1298d
Merge pull request #670 from cben/container-edit-fix
d4f095e
Merge pull request #697 from h-kataria/catalog_item_fixes
d074293
Update gettext catalog for master
mzazrivec c83ca4c
Attribute of Struct isn't initialized
lpichler 48e62ed
Merge pull request #706 from cben/changeAuthTab
himdel d5c171e
Remove layouts/_multi_auth_credentials
himdel 0c93aa9
Use API call to populate cloud_types drop down
h-kataria ea7987d
Fix all users of CredentialsController to provide vm-scope
himdel ffd6f65
MiqAeTools#form_field_changed spec - reintroduce test for target_clas…
himdel f02468a
Update dashboard widget styling
epwinchell 68787b8
MiqAeTools#form_field_changed - don't crash on empty target_class
himdel 85b0dfe
Added Lifecycle box on Playbook Service summary screen
h-kataria a12f060
Add missing “product-element” font icon
epwinchell f80293f
EmsCommon - remove form_field_changed - since all the providers' edit…
himdel 34fc693
Remove dead shared/views/ems_common/_form and all the useless partial…
himdel cf93e80
Ems* - remove form_field_changed specs
himdel 523a72a
Merge pull request #731 from epwinchell/icon_update
f7d115a
Reorganize the logic in lookup_attrs for AutomateSimulationTree
skateman e46da6f
Add the missing icon element introduced by lookup_attrs refactor
skateman e083b47
Merge pull request #712 from NickLaMuro/add_gemfile_dot_dev_to_gitignore
himdel 384a802
Merge pull request #728 from epwinchell/dashboard_update
494fc26
Merge pull request #730 from h-kataria/add_lifecycle_box_to_service_s…
98133c0
Fixed TreeNode.exists? behavior when using a non-ActiveRecord object
skateman 7fc03b1
Merge pull request #570 from h-kataria/api_call_for_cloud_types
094462f
Added "Copy from Provisioning" button on Retirement tab.
h-kataria 8111de2
Changes to Credential drop down labels, from plural to singular
h-kataria 7c38501
Addressed code climate errors.
h-kataria 72968f4
Merge pull request #734 from h-kataria/label_changes
7689829
For middleware servers, only allow operations on mutable servers.
mtho11 2e48b19
Add Rspec examples for immutable middleware servers.
mtho11 679cb36
Network Router: Gateway setup
gildub 5bc71aa
name field is require
gildub d54a1d8
Make method 'button_order?' return boolean
romanblanco 896b77b
Grouped same methods in one mixin
romanblanco 226652f
Review response: Mixin moved to presenter
romanblanco e32107a
Merge pull request #652 from romanblanco/performance_controller_clean…
martinpovolny 3afab91
Merge pull request #721 from skateman/treenode-exists-fix
mzazrivec 8b98bb7
Remove Y bottom padding for charts
PanSpagetka 9ddef18
Merge pull request #723 from skateman/fix-automate-simulation-tree
mzazrivec 295ad88
Merge pull request #724 from lpichler/available_tags_of_struct_isnt_i…
mzazrivec 038cf17
fix Centos image dimensions
epwinchell 6b79e9b
Merge pull request #726 from himdel/credentials-vmscope
mzazrivec db188ab
Merge pull request #713 from AparnaKarve/fix_hawkular_verify_button
h-kataria 124432b
Merge pull request #743 from epwinchell/os_centos_image
mzazrivec 6e3ac1b
Merge pull request #727 from himdel/bz1428905-handle-empty-target-class
mzazrivec 1573a46
Merge pull request #732 from h-kataria/copy_provisioning_button
martinpovolny 479b233
Merge pull request #717 from mzazrivec/update_gettext_catalog
martinpovolny 922ce64
Merge pull request #741 from PanSpagetka/remove-bottom-padding-for-ch…
mzazrivec 524fe8c
Support operation `clear` on CloudObjectStoreContainer
miha-plesko bcc885d
Fixes simulate message passing
d-m-u fe72635
Merge pull request #460 from josejulio/hawkular/add_ssl_support
mzazrivec c52e4f7
Add a 'Labels' prefix to custom attribute column display names
8583cc6
Merge pull request #498 from miha-plesko/empty_aws_bucket
h-kataria 7372e99
Merge pull request #733 from zeari/descriptive_custom_attribute_columns2
h-kataria adefa56
Merge pull request #704 from romanblanco/button_order
martinpovolny 1f9cf59
Fix volume attach/detach flash messages
gberginc 2649d94
Updated string value
bmclaughlin 5a484aa
Better required fields
gildub 7b2aff1
Adds help block for required fields
gildub 741917e
Merge pull request #716 from gildub/network_router-gateway-setup
h-kataria d718ee5
Make SCVMM "name@realm" hint declarative
cben 7475ceb
Do not store available_tags in session
isimluk 898ffe3
Fix multilabel tables for Container entities
zakiva fb3fc13
Image or Instance don't have ext_management_system always
lpichler f91c89d
Add case Instance/Vm without ext_management_system
lpichler cff36d4
Merge pull request #748 from zakiva/fix_multilabel_tables
martinpovolny 91a64c0
Changes to Ansible service summary screen.
h-kataria 64c9f89
Hiding Network Credentials drop down from UI
h-kataria 65f6d9a
Merge pull request #757 from h-kataria/hide_network_credentials
c9d5d87
Sets default security_protocol for middleware
josejulio d259773
Merge pull request #756 from h-kataria/service_summary
35eb921
Update rubocop config files
bdunne 0c890d1
Fixed undefined method `each' for nil:NilClass error on retirement tab
h-kataria d4bafa5
Merge pull request #760 from bdunne/rubocop_config
Fryguy 17d77a9
Move FilterSubstMixin from core to UI repo
isimluk 725dda2
Avoid extra return statements
isimluk f06c213
Use find cycle instead of each, it is simpler
isimluk 39f69be
Use elsif instead of else-if
isimluk 524a903
prefer %() over list of strings
isimluk 079a293
Fix unneessary spacing rubocop is crying mom
isimluk e8c6260
Fix actions' icons of policy events
7cd5d8a
Merge pull request #750 from isimluk/move-filter-subst-to-ui
martinpovolny 89fad1e
Merge pull request #749 from isimluk/exp-drop-available_tags-from-ses…
martinpovolny 6564c61
Merge pull request #692 from zakiva/fix_volume_link
martinpovolny 59e58f3
Sanitize hawkular error messages in ad-hoc page
yaacov 67a0c0a
Merge pull request #762 from h-kataria/fix_undefined_method_error
mzazrivec 5daf0dc
Added "Remove Resources" on Catalog Item summary Retirement tab
h-kataria e1b49fc
Hiding Network Credentials on retirement tab on summary screen
h-kataria 025792b
Add secure find check items function
PanSpagetka 457b085
Add example find_checked_items_with_rbac call
PanSpagetka d2d1092
Added gettext calls around display strings.
h-kataria 38f65c8
Merge pull request #763 from h-kataria/hide_network_cred_on_retiremen…
mzazrivec ba86bf9
Merge pull request #751 from PanSpagetka/fix-rbac-checking-on-items
mzazrivec 49b560e
Merge pull request #764 from h-kataria/show_remove_resources_value
mzazrivec 3ace41f
Merge pull request #767 from yaacov/sanitize-hawkular-html-errors-in-…
h-kataria cf07054
Merge pull request #683 from yaacov/ad-hoc-paging
h-kataria a5c4944
Tenant options instead of free text
yaacov 59dde9d
Merge pull request #690 from yaacov/tenant-combobox
h-kataria b991bee
Fixed checks around retirement dialog values.
h-kataria 3ce463c
Need to only check for existence of dialog_id key to fetch the dialog.
h-kataria 18c091f
Merge pull request #753 from lpichler/fix_set_owneship_toolbar
mzazrivec a9fa2c4
Merge pull request #758 from josejulio/hawkular/set_default_security_…
mzazrivec ef03fe3
Merge pull request #754 from jzigmund/bz1410910-wrong_icon_for_policy…
mzazrivec a0e0a7a
Add filter selections for the ad-hoc metrics page
yaacov d9bc515
remove confusing remoark
yaacov 4465b14
Merge pull request #747 from bmclaughlin/change-project-to-project-id…
mzazrivec 207420d
Merge pull request #745 from gberginc/fix_volume_attach_detach_flash
mzazrivec 4c85e83
Fix double rendered icon on Hosts comparison delete column button
064885c
Merge pull request #636 from mtho11/mw-os-disable-cmds2
h-kataria f4bdfe5
Merge pull request #679 from cben/scvmm-note
mzazrivec 58b4222
Merge pull request #725 from himdel/multi-auth-remove
mzazrivec 6653e31
Merge pull request #735 from yaacov/ad-hoc-filter-options
h-kataria 9709fdf
Addressed code climate error
h-kataria 2184f6d
Merge pull request #768 from h-kataria/fix_saving_of_dialog_value
29a031e
Crop the powerstate svg in quadicons using border-radius
skateman 01cadcc
Display Cluster Resource Pool
GregP 2e83a4d
Merge pull request #773 from jzigmund/bz1431257-button_icon_host_compare
6def6a8
Merge pull request #778 from skateman/stretch-powerstate
beb15af
Merge pull request #742 from d-m-u/simulateMessagePassing
088f77a
Extended textual summary for ansible credentials
mzazrivec 4592519
Merge pull request #785 from GregP/cluster_resource_pools
h-kataria bb54029
Merge pull request #787 from mzazrivec/extended_summary_for_ansible_c…
h-kataria 64c733d
[WIP]vm_controller and generic session mixin update
6b9c4a5
[WIP]vm_controller added private keyword
267bb90
Merge pull request #2 from LANeo64/session-mixin
LANeo64 3756938
Added mixin for session into vm_controller
424d42f
Merge branch 'master' of https://github.com/LANeo64/manageiq-ui-classic
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,34 @@ module GenericSessionMixin | |
private | ||
|
||
def get_session_data | ||
prefix = self.class.session_key_prefix | ||
@title = respond_to?(:title) ? title : ui_lookup(:tables => self.class.table_name) | ||
@layout = prefix | ||
@table_name = request.parameters[:controller] | ||
@lastaction = session["#{prefix}_lastaction".to_sym] | ||
@display = session["#{prefix}_display".to_sym] | ||
@filters = session["#{prefix}_filters".to_sym] | ||
@catinfo = session["#{prefix}_catinfo".to_sym] | ||
@showtype = session["#{prefix}_showtype".to_sym] | ||
prefix = self.class.session_key_prefix | ||
@title = respond_to?(:title) ? title : ui_lookup(:tables => self.class.table_name) | ||
@layout = prefix | ||
@table_name = request.parameters[:controller] | ||
@lastaction = session["#{prefix}_lastaction".to_sym] | ||
@display = session["#{prefix}_display".to_sym] | ||
@filters = session["#{prefix}_filters".to_sym] | ||
@catinfo = session["#{prefix}_catinfo".to_sym] | ||
@cats = session["#{prefix}_cats".to_sym] | ||
@showtype = session["#{prefix}_showtype".to_sym] | ||
@base = session["#{prefix}_compare_base".to_sym] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, the same goes for |
||
@polArr = session[:polArr] || "" # current tags in effect | ||
@policy_options = session[:policy_options] || "" | ||
end | ||
|
||
def set_session_data | ||
prefix = self.class.session_key_prefix | ||
session["#{prefix}_lastaction".to_sym] = @lastaction | ||
session["#{prefix}_display".to_sym] = @display unless @display.nil? | ||
session["#{prefix}_filters".to_sym] = @filters | ||
session["#{prefix}_catinfo".to_sym] = @catinfo | ||
session["#{prefix}_showtype".to_sym] = @showtype | ||
session["#{prefix}_lastaction".to_sym] = @lastaction | ||
session["#{prefix}_display".to_sym] = @display unless @display.nil? | ||
session["#{prefix}_compare_base".to_sym] = @base | ||
session["#{prefix}_filters".to_sym] = @filters | ||
session["#{prefix}_catinfo".to_sym] = @catinfo | ||
session["#{prefix}_cats".to_sym] = @cats | ||
session["#{prefix}_showtype".to_sym] = @showtype | ||
session[:miq_compressed] = @compressed unless @compressed.nil? | ||
session[:miq_exists_mode] = @exists_mode unless @exists_mode.nil? | ||
session[:polArr] = @polArr unless @polArr.nil? | ||
session[:policy_options] = @policy_options unless @policy_options.nil? | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Sorry, removing
@cats
in #664 .. so no point in adding to the common mixin.. (turns out@cats
is dead :))