-
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
Remove compressed ids #2482
Remove compressed ids #2482
Conversation
This pull request is not mergeable. Please rebase and repush. |
3ad1a1e
to
147f9b8
Compare
147f9b8
to
ad46539
Compare
ad46539
to
4934523
Compare
This pull request is not mergeable. Please rebase and repush. |
4934523
to
cd83493
Compare
@miq-bot assign @martinpovolny |
This is really cool 🍻 ! I am however lacking the courage to merge this so close before the release. What do you think, guys and lads? ping @AparnaKarve, @h-kataria, @mzazrivec, @himdel, @skateman, @dclarizio ? |
Totally understand this. Something to bear in mind, though, is that it will make backporting a lot easier if done before |
Totally second that!
And totally second that too! :-) ==> GTG from me |
@AparnaKarve : "GTG" -- does that mean reviewed and tested? Or do you volunteer to do that? I don't have the capacity right now. |
@martinpovolny I can't test this at the moment. |
@imtayadeway while I'm not against this, is there some reason this is being done? The original reason we compressed the IDs is because they were taking up a lot of memory on the browser side for trees and lists that had thousands (or tens of thousands) of elements that were identified using the really long IDs. There may even be tree nodes that contain chains of IDs, so that would multiple how much memory is required. I'm thinking we may want to wait to do this upstream and not in the G release, in case it might affect performance on the browser side. Thoughts? |
@dclarizio actually I was thinking about redesigning the trees to have complex keys. Instead of |
So if there's no objections and no real issue to "fix", I suggest we keep this upstream after the gaprindashvili release is cut so we can let it burn in and be tested for performance. |
This pull request is not mergeable. Please rebase and repush. |
@dclarizio : we had a discussion on this in Mahwah with a couple of guys. This will simplify things -- having just one form of the ID. I also think that a detailed testing is needed because there might be pieces of code that assume the compressed IDs that are hard to spot and problems can surface after some time. |
cd83493
to
2d17eef
Compare
Note: after this gets merged, there will be no need for |
@imtayadeway : Tim, the time has come for this to be merged. Will you, please, rebase (hopefully the last time)? Thank you very much! |
5d9e404
to
93981cd
Compare
Some comments on commits imtayadeway/manageiq-ui-classic@1e16218~...93981cd app/controllers/miq_policy_controller/conditions.rb
app/controllers/miq_policy_controller/policy_profiles.rb
app/views/miq_policy/_policy_details.html.haml
app/views/miq_policy/_profile_list.html.haml
app/views/report/_role_list.html.haml
|
1 similar comment
Some comments on commits imtayadeway/manageiq-ui-classic@1e16218~...93981cd app/controllers/miq_policy_controller/conditions.rb
app/controllers/miq_policy_controller/policy_profiles.rb
app/views/miq_policy/_policy_details.html.haml
app/views/miq_policy/_profile_list.html.haml
app/views/report/_role_list.html.haml
|
Checked commits imtayadeway/manageiq-ui-classic@1e16218~...93981cd with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 **
app/controllers/ansible_credential_controller.rb
app/controllers/application_controller/buttons.rb
app/controllers/application_controller/miq_request_methods.rb
app/controllers/catalog_controller.rb
app/controllers/chargeback_controller.rb
app/controllers/miq_ae_customization_controller/dialogs.rb
app/controllers/miq_ae_customization_controller/old_dialogs.rb
app/controllers/miq_policy_controller/events.rb
app/controllers/mixins/vm_show_mixin.rb
app/controllers/ops_controller/db.rb
app/controllers/ops_controller/diagnostics.rb
app/controllers/ops_controller/ops_rbac.rb
app/controllers/ops_controller/settings/common.rb
app/controllers/ops_controller/settings/ldap.rb
app/controllers/picture_controller.rb
app/controllers/pxe_controller/iso_datastores.rb
app/controllers/pxe_controller/pxe_customization_templates.rb
app/controllers/pxe_controller/pxe_servers.rb
app/controllers/report_controller/menus.rb
app/controllers/report_controller/saved_reports.rb
app/controllers/report_controller/widgets.rb
app/controllers/service_controller.rb
app/controllers/storage_controller/storage_d.rb
app/controllers/storage_controller/storage_pod.rb
app/presenters/tree_builder_chargeback_reports.rb
app/presenters/tree_builder_iso_datastores.rb
app/presenters/tree_builder_pxe_servers.rb
app/presenters/tree_builder_utilization.rb
spec/services/cloud_topology_service_spec.rb
spec/services/infra_topology_service_spec.rb
spec/services/network_topology_service_spec.rb
|
@martinpovolny this should be GTG now! |
Thanks, @imtayadeway. I was testing this in the UI and found no issues. I know that @h-kataria and @AparnaKarve and @bmclaughlin also will test this a bit today. After that I believe I can merge this. |
@martinpovolny thanks for your additional testing! LMK if I can do anything else! ❤️ |
@martinpovolny i have tested in UI for a while, so far all good. I say let's merge this. |
Backport of ManageIQ#4488 broke the observer for Action order drop down. In ManageIQ#2482 use of compressed ids was removed from https://github.com/ManageIQ/manageiq-ui-classic/pull/2482/files#diff-10a8b10a2fee4a8ed7444f35479d9444L66 causing the observer and field name to not match. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1615853
Backport of ManageIQ#4488 broke the observer for Action order drop down. In ManageIQ#2482 use of compressed ids was removed from https://github.com/ManageIQ/manageiq-ui-classic/pull/2482/files#diff-10a8b10a2fee4a8ed7444f35479d9444L66 causing the observer and field name to not match. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1618836
Removes:
miqUncompressedId
js functionCompressedIds
mixin and any references to itApplicationRecord
-level compressed id methodsI can identify a few more cleanup tasks, but I think they would be best suited to a follow up PR, given the size and scope of this one.
/cc @chrisarcand @Fryguy
@miq-bot rm-label wip
@miq-bot add-label technical debt
@miq-bot assign @martinpovolny