-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add CustomButtonEvent to automate explorer #398
Conversation
@tumido Please follow this guide when working on automate modeling. We need to add a new namespace |
@lfu I'm finally starting to understand the workflow! 😉 And now I see why it doesn't make much sense to have the What would you say if we rename it to
It's much better readable and easier to follow to me. What do you think? |
1113a5a
to
d150a10
Compare
@tumido The new structure layout looks good. 👍 The new class is not correct. It should be similar to this class. We can have a bluejeans session if you need help. |
object: | ||
attributes: | ||
name: CustomButtonEvent | ||
description: '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave the description empty if you don't have one.
d150a10
to
356efbc
Compare
@lfu, can you please review the scheme now? Also I'm not sure if I should have kept the Thanks for the link to the book, btw. 👍 It was helpful! |
Other than the new event_type |
@lfu haha, what do you mean other than the new |
@lfu There are no default actions required on these events at the moment. However, since we are only emitting a single event right now I would prefer to keep the event name tied to the instance name, otherwise it is difficult for users to know what events would be expected. The Maybe there is a better way to solve this, not sure. |
356efbc
to
9de10c2
Compare
object: | ||
attributes: | ||
display_name: | ||
name: button_triggered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to rename it here.
0dc99ee
to
670d802
Compare
@tumido The last commit was manually modified. Please follow the guide. Thanks. |
670d802
to
e596247
Compare
Checked commit tumido@e596247 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Adding
CustomButtonEvent
to the automate explorer.Related: ManageIQ/manageiq#17764
cc @lfu Can you help me please? Is this all I need to do? Or should I create
System/Event/CustomButtonEvent.class
folder instead? If so, how do I generate the__class__.yaml
file?@miq-bot add_label enhancement, events