[IVANCHUK] Toolbar delete button for Button/Button Group goes via generic API de… #6380
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ivanchuk version of #6230 and #6214 (that got reverted by #6230)
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1744478
https://bugzilla.redhat.com/show_bug.cgi?id=1753289
Go to Automation -> Automate -> Generic Objects -> delete a custom button (delete a custom button group to make sure it works as well)
Before:
![image](https://user-images.githubusercontent.com/9210860/65244013-e83c1e80-dae9-11e9-8c4d-e83d22c04477.png)
![Screenshot 2019-09-23 at 15 45 02](https://user-images.githubusercontent.com/9210860/65431048-2488bb00-de19-11e9-870a-476972671e55.png)
or
After:
![Screenshot 2019-09-19 at 14 26 16](https://user-images.githubusercontent.com/9210860/65243823-76fc6b80-dae9-11e9-88c4-08dd7f1db936.png)
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1753388
Go to Automation -> Automate -> Generic Objects - > delete a custom button(with or without Custom Button Group it shouldn't matter)
Actual result:
There's an error popup and message for a sec. See Before pic.
Expected result:
No error message/popup. See After pic.
According to the BZ it happens in 70%.
This fix should work for all possible delete actions on Generic Object Definition page.
Before:
![Screenshot 2019-09-24 at 14 58 14](https://user-images.githubusercontent.com/9210860/65513594-cbce2680-dedb-11e9-85bd-32306e8c586e.png)
![image](https://user-images.githubusercontent.com/9210860/65513630-e0122380-dedb-11e9-99f9-705fa3338a98.png)
After:
@miq-bot add_label wip