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

Remove SERVICE_X_BUTTON_ALLOWED_ACTIONS #3185

Conversation

mzazrivec
Copy link
Contributor

No longer needed since 63f214f

@miq-bot
Copy link
Member

miq-bot commented Jan 8, 2018

Checked commit mzazrivec@e0e2e11 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@martinpovolny
Copy link
Member

Something is wrong here (not in this PR, but before).

I don't see why @hstastna remove the x_button in 63f214f

There should have never been both x_button and button.

I see that before that @lgalis was chaning both of these so there's some history to this strangeness.

Overall this seems broken to me I don't see how all the methods from the hash are called now.

@martinpovolny
Copy link
Member

martinpovolny commented Jan 10, 2018

Note: #2680 was already backported to Gaprindashvili.

@martinpovolny
Copy link
Member

63f214f also breaks generic objects

the line

+    action = @sb[:action] if action.nil?                                                           

causes action being set even when it should not be set and then

        if action                                                                                   
          cb_tb = build_toolbar(Mixins::CustomButtons::Result.new(:single))                         
          r[:partial => partial, :locals => {:item_id => @item.id}]     

gets called

the newly added code is very fragile and hard to read, @lgalis

@mzazrivec mzazrivec closed this Jan 10, 2018
@mzazrivec mzazrivec deleted the remove_service_x_button_allowed_actions branch February 22, 2018 12:31
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.

3 participants