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 ui plugin dialog-user call #7604

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Remove ui plugin dialog-user call #7604

merged 1 commit into from
Jan 26, 2021

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jan 26, 2021

UI plugins can still render react components,
but removing the feature that allowed toolbar buttons with dialog_name to run angular automate dialogs.

One less angular component, not currently used by any plugins.

Reverts #4377 and parts of #4315.

Plugins can still render react components,
but removing the feature that allowed toolbar buttons with `dialog_name` to run automate dialogs.

One less angular component, not currently used by any plugins.
@Fryguy
Copy link
Member

Fryguy commented Jan 26, 2021

cc @agrare

@himdel
Copy link
Contributor Author

himdel commented Jan 26, 2021

Corresponding guides change in ManageIQ/guides#452

@himdel himdel mentioned this pull request Jan 26, 2021
10 tasks
@miq-bot
Copy link
Member

miq-bot commented Jan 26, 2021

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/174a0e57cfdeb248826fbb160c9dd61b8a7635e5 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
3 files checked, 0 offenses detected
Everything looks fine. ⭐

def load_dialog_definition(name, klass)
plugin = Vmdb::Plugins.find { |plug| plug.name.chomp('::Engine') == klass }
if plugin.present?
name = plugin.root.join('dialogs', "#{name}.json")
Copy link
Member

Choose a reason for hiding this comment

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

This is the key line for me, because there aren't any plugins with a dialogs directory at the root.

@Fryguy Fryguy self-assigned this Jan 26, 2021
@Fryguy Fryguy merged commit 2a72443 into ManageIQ:master Jan 26, 2021
@himdel himdel deleted the remove-provider-dialogs branch January 26, 2021 21:27
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