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

[WIP] Enable Floating IPs delete/edit for FloatingIP controller #962

Closed

Conversation

PanSpagetka
Copy link
Contributor

@PanSpagetka PanSpagetka commented Apr 7, 2017

Enable Floating IPs delete/edit buttons for FloatingIPController. It seems to work in UI, but I would appreciate review from someone who is familiar with FloatingIPs.
Probably related with: ManageIQ/manageiq#12551

@gildub @ZitaNemeckova please review

@miq-bot
Copy link
Member

miq-bot commented Apr 7, 2017

Checked commit PanSpagetka@adf7dc4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 4 offenses detected

app/helpers/application_helper/toolbar/floating_ips_center.rb

@dclarizio
Copy link

@PanSpagetka I think we'll need a BZ for backport to Fine

@mzazrivec mzazrivec modified the milestone: Sprint 59 Ending Apr 24, 2017 Apr 13, 2017
@mzazrivec
Copy link
Contributor

When editing amazon floating IP, I get the following error during form submit:

Error caught: [NoMethodError] undefined method `update_floating_ip_queue' for #<ManageIQ::Providers::Amazon::NetworkManager::FloatingIp:0x007f4d8566c0e0>
Did you mean?  update_attribute
~/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-5.0.2/lib/active_model/attribute_methods.rb:433:in `method_missing'
manageiq-ui-classic/app/controllers/floating_ip_controller.rb:190:in `update'

@mzazrivec mzazrivec changed the title Enable Floating IPs delete/edit for FloatingIP controller [WIP] Enable Floating IPs delete/edit for FloatingIP controller Apr 13, 2017
@mzazrivec mzazrivec added the wip label Apr 13, 2017
@mzazrivec
Copy link
Contributor

I'm marking this as a work in progress pull request until the error above is resolved / explained.

Perhaps @gildub can shine some light on the error above.

@ZitaNemeckova
Copy link
Contributor

@PanSpagetka [NoMethodError] means that you are trying to update a floating IP from a provider that doesn't support it. I saw similar error when I worked on ManageIQ/manageiq#12551 . Maybe ManageIQ/manageiq@71604a4#diff-d0f84516ffce9ee3e076b7da2085ae7bR232 can be an inspiration how to fix it.

@gildub
Copy link
Contributor

gildub commented Jun 19, 2017

@ZitaNemeckova, @dclarizio and @PanSpagetka

Sorry I missed that one, looking at it...

Copy link
Contributor

@gildub gildub left a comment

Choose a reason for hiding this comment

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

@PanSpagetka,

@ZitaNemeckova, is right about the action being triggered from a provider that doesn't support it.

SupportFreaturesMixin is needed and has not made it to floating IPs. I'm going to add a patch to address the later and will link it.

@gildub
Copy link
Contributor

gildub commented Jun 22, 2017

@ZitaNemeckova,

#1580 should help to work around unsupported providers. Can you please rebase using it and let me know how it goes, please don't hesitate to reach out if you need help.

@miq-bot
Copy link
Member

miq-bot commented Feb 5, 2018

This pull request has been automatically closed because it has not been updated for at least 6 months.

Feel free to reopen this pull request if these changes are still valid.

Thank you for all your contributions!

@miq-bot miq-bot closed this Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants