Skip to content

CLOUDSTACK-10051 Mouse Scrolling is not working in instance VM console - #2240

Merged
yadvr merged 2 commits into
masterfrom
unknown repository
Nov 6, 2017
Merged

CLOUDSTACK-10051 Mouse Scrolling is not working in instance VM console#2240
yadvr merged 2 commits into
masterfrom
unknown repository

Conversation

@vedulasantosh

Copy link
Copy Markdown
Contributor

When mouse is scrolled in VM Console it is not working.

@@ -0,0 +1,336 @@
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@rhtyd Updated the license. Added the Apache license on top of Jquery license. Is it acceptable?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@rhtyd can you review this license

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vedulasantosh if the license used in this specific library are same as those used by other jquery files then I suppose we should be okay, however can you start a discussion on dev@?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@rhtyd for all other jquery files there is no apache license because they are placed in exclude tag in pom.xml. while pushing this jquery.flot.navigate.js checks are failing at license. That is why i added apache license to this file.

pom.xml
<exclude>ui/lib/flot/jquery.flot.js</exclude> <exclude>ui/lib/flot/jquery.flot.navigate.js</exclude> <exclude>ui/lib/flot/jquery.flot.pie.js</exclude> <exclude>ui/lib/flot/jquery.flot.resize.js</exclude> <exclude>ui/lib/flot/jquery.flot.selection.js</exclude> <exclude>ui/lib/flot/jquery.flot.stack.js</exclude> <exclude>ui/lib/flot/jquery.flot.symbol.js</exclude> <exclude>ui/lib/flot/jquery.flot.threshold.js</exclude> <exclude>ui/lib/jquery-ui/css/jquery-ui.css</exclude> <exclude>ui/lib/jquery-ui/index.html</exclude> <exclude>ui/lib/jquery-ui/js/jquery-ui.js</exclude> <exclude>ui/lib/jquery.cookies.js</exclude> <exclude>ui/lib/jquery.easing.js</exclude> <exclude>ui/lib/jquery.js</exclude> <exclude>ui/lib/jquery.md5.js</exclude> <exclude>ui/lib/jquery.validate.js</exclude> <exclude>ui/lib/jquery.tokeninput.js</exclude> <exclude>ui/lib/qunit/qunit.css</exclude> <exclude>ui/lib/qunit/qunit.js</exclude> <exclude>ui/lib/reset.css</exclude> <exclude>ui/lib/require.js</exclude> <exclude>utils/testsmallfileinactive</exclude> <exclude>systemvm/conf/agent.properties</exclude> <exclude>systemvm/conf/environment.properties</exclude> <exclude>systemvm/js/jquery.js</exclude>

systemvm/js/jquery.js

`/*

  • jQuery JavaScript Library v1.3.2
  • http://jquery.com/
  • Copyright (c) 2009 John Resig
  • Dual licensed under the MIT and GPL licenses.
  • http://docs.jquery.com/License
  • Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
  • Revision: 6246
    /
    (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]
    (<(.|\s)+>)[^>]$|^#([\w-]+)$/,f=/^.[^:#\[\.,]$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType)`

@yadvryadvrSep 22, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vedulasantosh if the existing jquery library files have the same license as the new one you're adding, then yes you may exclude this file from RAT checks, this makes sense. However, I'm not the expert around licensing, please start a conversation on dev@ to discuss this further.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@rhtyd Made discussion on dev@. Got reply to add exclude tag for the jquery file.so I added the exclude tag in pom.xml for that file.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@rhtyd can you please review these changes.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@rhtyd can you please review these changes. need to merge this PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vedulasantosh sure, add this new library dependency in maven exclusion list, however, then remove the Apache license unless you authored this library.

@yadvr

Copy link
Copy Markdown
Member

@vedulasantosh check/fix the Travis failures

@cloudmonger

Copy link
Copy Markdown

ACS CI BVT Run

Sumarry:
Build Number 1150
Hypervisor xenserver
NetworkType Advanced
Passed=108
Failed=6
Skipped=12

Link to logs Folder (search by build_no):https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0

Failed tests:

  • test_volumes.py

  • test_06_download_detached_volume Failed

  • test_routers_network_ops.py

  • test_01_isolate_network_FW_PF_default_routes_egress_true Failing since 15 runs

  • test_02_isolate_network_FW_PF_default_routes_egress_false Failing since 142 runs

  • test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Failing since 137 runs

  • test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Failing since 137 runs

  • test_03_RVR_Network_check_router_state Failed

Skipped tests:
test_vm_nic_adapter_vmxnet3
test_01_verify_libvirt
test_02_verify_libvirt_after_restart
test_03_verify_libvirt_attach_disk
test_04_verify_guest_lspci
test_05_change_vm_ostype_restart
test_06_verify_guest_lspci_again
test_static_role_account_acls
test_11_ss_nfs_version_on_ssvm
test_nested_virtualization_vmware
test_3d_gpu_support
test_deploy_vgpu_enabled_vm

Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_vm_snapshots.py
test_over_provisioning.py
test_global_settings.py
test_router_dnsservice.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_loadbalance.py
test_routers.py
test_reset_vm_on_reboot.py
test_deploy_vms_with_varied_deploymentplanners.py
test_network.py
test_router_dns.py
test_non_contigiousvlan.py
test_login.py
test_deploy_vm_iso.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_metrics_api.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_vm_life_cycle.py
test_disk_offerings.py

@SowjanyaPatha

Copy link
Copy Markdown
Contributor

LGTM for Testing. Created an Ubuntu instance and verified for Mouse scrolling.

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1053

Comment threadsystemvm/js/jquery.flot.navigate.js Outdated
specific language governing permissions and limitations
under the License.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vedulasantosh This is a third party code under MIT license. Check on the licensing part whether to add ASF license on the top of that or not.

onMouseScroll: function(x, y, whichButton, modifiers) {
this.sendMouseEvent(AjaxViewer.MOUSE_SCROLL, x, y, whichButton, modifiers);
},

@sureshanapartisureshanapartiSep 12, 2017

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vedulasantosh Address @rhtyd comments. Code changes LGTM.

var sd = e.originalEvent.detail/3;

var pt = ajaxViewer.pageToPanel(e.clientX, e.clientY);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove extra newline.

});

target.bind('mousewheel DOMMouseScroll',function(e) {
if(!ajaxViewer.ptInPanel(e.pageX, e.pageY))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you consider adding braces to if () {}

@yadvr

Copy link
Copy Markdown
Member

Thanks @vedulasantosh for your PR, since these are purely UI changes we'll need an additional review/LGTM testing that can confirm the UI fix. Regression testing is not strictly required to merge this change.

This is compatible with Apache 2.0 license, however, new dependencies should not be stripped of their original license headers.
@yadvr

yadvr commented Nov 5, 2017

Copy link
Copy Markdown
Member

I went ahead and added the missing license from the newly added file.
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1209

@yadvr

yadvr commented Nov 5, 2017

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-1620)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31873 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2240-t1620-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_host_annotations.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Test completed. 59 look OK, 4 have error(s)

TestResultTime (s)Test File
test_01_vpc_remote_access_vpnFailure55.84test_vpc_vpn.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLFailure383.60test_vpc_redundant.py
test_04_rvpc_privategw_static_routesFailure288.75test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure172.94test_privategw_acl.py
test_02_vpc_privategw_static_routesFailure162.81test_privategw_acl.py
test_01_vpc_privategw_aclFailure56.78test_privategw_acl.py
test_05_add_annotation_for_invalid_entityTypeError0.06test_host_annotations.py
test_change_service_offering_for_vm_with_snapshotsSkipped0.00test_vm_snapshots.py
test_09_copy_delete_templateSkipped0.01test_templates.py
test_06_copy_templateSkipped0.00test_templates.py
test_static_role_account_aclsSkipped0.02test_staticroles.py
test_11_ss_nfs_version_on_ssvmSkipped0.02test_ssvm.py
test_01_scale_vmSkipped0.00test_scale_vm.py
test_01_primary_storage_iscsiSkipped0.08test_primary_storage.py
test_vm_nic_adapter_vmxnet3Skipped0.00test_nic_adapter_type.py
test_03_nic_multiple_vmwareSkipped1.03test_nic.py
test_nested_virtualization_vmwareSkipped0.00test_nested_virtualization.py
test_06_copy_isoSkipped0.00test_iso.py
test_list_ha_for_host_validSkipped0.02test_hostha_simulator.py
test_list_ha_for_host_invalidSkipped0.02test_hostha_simulator.py
test_list_ha_for_hostSkipped0.02test_hostha_simulator.py
test_hostha_enable_feature_without_setting_providerSkipped0.02test_hostha_simulator.py
test_hostha_enable_feature_validSkipped0.02test_hostha_simulator.py
test_hostha_disable_feature_validSkipped0.02test_hostha_simulator.py
test_hostha_configure_invalid_providerSkipped0.02test_hostha_simulator.py
test_hostha_configure_default_driverSkipped0.03test_hostha_simulator.py
test_ha_verify_fsm_recoveringSkipped0.02test_hostha_simulator.py
test_ha_verify_fsm_fencedSkipped0.02test_hostha_simulator.py
test_ha_verify_fsm_degradedSkipped0.02test_hostha_simulator.py
test_ha_verify_fsm_availableSkipped0.02test_hostha_simulator.py
test_ha_multiple_mgmt_server_ownershipSkipped0.02test_hostha_simulator.py
test_ha_list_providersSkipped0.02test_hostha_simulator.py
test_ha_enable_feature_invalidSkipped0.02test_hostha_simulator.py
test_ha_disable_feature_invalidSkipped0.02test_hostha_simulator.py
test_ha_configure_enabledisable_across_clusterzonesSkipped0.02test_hostha_simulator.py
test_configure_ha_provider_validSkipped0.02test_hostha_simulator.py
test_configure_ha_provider_invalidSkipped0.02test_hostha_simulator.py
test_deploy_vgpu_enabled_vmSkipped0.03test_deploy_vgpu_enabled_vm.py
test_3d_gpu_supportSkipped0.03test_deploy_vgpu_enabled_vm.py

@yadvr

yadvr commented Nov 6, 2017

Copy link
Copy Markdown
Member

tests LGTM, some failures are known intermittent failures comparing against #2289

@yadvr
yadvr merged commit 2874fc2 into apache:masterNov 6, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@vedulasantosh@yadvr@cloudmonger@SowjanyaPatha@blueorangutan@sureshanaparti