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

Issue while creating a Custom Button with expression via API #1166

Open
Fryguy opened this issue Jun 17, 2022 · 10 comments
Open

Issue while creating a Custom Button with expression via API #1166

Fryguy opened this issue Jun 17, 2022 · 10 comments
Assignees

Comments

@Fryguy
Copy link
Member

Fryguy commented Jun 17, 2022

Similar to #1053, setting a custom button expression through the API is different than setting it on the backend (note the MiqExpression in the visibility expression below in the first part but not in the second part.


Discussed in ManageIQ/manageiq#21904

Originally posted by Inkompetenz20 June 3, 2022
Hello,

I want to add a custom Button via the API of ManageIQ. After my API call, the button exists in ManageIQ, but the enablement and visibility expressions are not displayed.

image

The first select statement displays the button, when added/updated via the GUI and the secound select statement displays the button, when added/updated via API.

I think it looks like a similar error as in #1053.
Is this a known error?

Best,
Paul

@Fryguy Fryguy added the bug label Jun 17, 2022
@Fryguy
Copy link
Member Author

Fryguy commented Jun 17, 2022

@kbrock Can you take a look at this one?

@btmd
Copy link

btmd commented Aug 16, 2022

Hi @kbrock, is there an update on the issue? Is there more information we can deliver to make the problem more clear?
Our manageIQ breaks regularly due to the problem with custom buttons and their visibility expression.

e.g.

1-ui-6ff548c899-dp9ln 1-ui {"@timestamp":"2022-08-16T07:43:19.122458 ","hostname":"1-ui-6ff548c899-dp9ln","pid":8,"tid":"acb48","service":"production","level":"crit","message":"Error caught: [NoMethodError] undefined method lenient_evaluate' for #<Hash:0x000055e0f0fe7d98>\n/var/www/miq/vmdb/app/models/custom_button.rb:208:in evaluate_visibility_expression_for'\n/var/www/miq/vmdb/app/models/custom_button_set.rb:87:in block (2 levels) in filter_with_visibility_expression'\n/opt/manageiq/manageiq-gemset/gems/activerecord-6.0.5.1/lib/active_record/relation/delegation.rb:88:in each'\n/opt/manageiq/manageiq-gemset/gems/activerecord-6.0.5.1/lib/active_record/relation/delegation.rb:88:in `each'\n

Thanks a lot,
Thomas

@miq-bot miq-bot added the stale label Feb 27, 2023
@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot
Copy link
Member

miq-bot commented Jul 17, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@Fryguy Fryguy removed the stale label Jul 17, 2023
@Fryguy
Copy link
Member Author

Fryguy commented Jul 17, 2023

@kbrock I think this is still an issue - since you're currently in MiqExpression code, can you take a look at this one?

@kbrock
Copy link
Member

kbrock commented Jul 18, 2023

There is a deep_symbolize_keys in there. I'll see what parts of the symbolize are necessary.

@miq-bot
Copy link
Member

miq-bot commented Oct 23, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot miq-bot added the stale label Oct 23, 2023
@kbrock kbrock removed the stale label Oct 23, 2023
@miq-bot miq-bot added the stale label Jan 29, 2024
@miq-bot
Copy link
Member

miq-bot commented Jan 29, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

2 similar comments
@miq-bot
Copy link
Member

miq-bot commented May 13, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

@miq-bot
Copy link
Member

miq-bot commented Aug 19, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants