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

vm_controller and genericSessionMixin update #647

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 24 additions & 14 deletions app/controllers/mixins/generic_session_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Copy link
Contributor

@himdel himdel Mar 13, 2017

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 :))

@showtype = session["#{prefix}_showtype".to_sym]
@base = session["#{prefix}_compare_base".to_sym]
Copy link
Contributor

Choose a reason for hiding this comment

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

OK, the same goes for @base .. #665

@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
32 changes: 4 additions & 28 deletions app/controllers/vm_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class VmController < ApplicationController
include VmCommon # common methods for vm controllers
include VmRemote # methods for VM remote access

include Mixins::GenericSessionMixin

def index
session[:vm_type] = nil # Reset VM type if coming in from All tab
redirect_to :action => 'show_list'
Expand All @@ -17,33 +19,7 @@ def show_list
process_show_list(options)
end

private ####

def get_session_data
@title = _("Virtual Machines")
@layout = "vm"
@lastaction = session[:vm_lastaction]
@showtype = session[:vm_showtype]
@base = session[:vm_compare_base]
@filters = session[:vm_filters]
@catinfo = session[:vm_catinfo]
@cats = session[:vm_cats]
@display = session[:vm_display]
@polArr = session[:polArr] || "" # current tags in effect
@policy_options = session[:policy_options] || ""
end

def set_session_data
session[:vm_lastaction] = @lastaction
session[:vm_showtype] = @showtype
session[:miq_compressed] = @compressed unless @compressed.nil?
session[:miq_exists_mode] = @exists_mode unless @exists_mode.nil?
session[:vm_compare_base] = @base
session[:vm_filters] = @filters
session[:vm_catinfo] = @catinfo
session[:vm_cats] = @cats
session[:vm_display] = @display unless @display.nil?
session[:polArr] = @polArr unless @polArr.nil?
session[:policy_options] = @policy_options unless @policy_options.nil?
def title
_("Virtual Machines")
end
end