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

Pre-zeitwerk - Add inflections and acronyms #22620

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

jrafanie
Copy link
Member

These should be backward compatible changes and gets us closer to minimizing the changes for zeitwerk. Extracted from #22488

  • OAuth acronym

    • For loading OAuthSessionsController from ui-classic.
  • GHT acronym

    • For loading ApplicationHelper::Button::ViewGHT and ApplicationHelper::Button::ViewGHTAlways.
  • REXML acronym

    • Add acronym since the stdlib constant is all caps. This is needed to load TreeNode::REXML::Attribute. The other libraries that Use Rexml, such as MiqRexml, are gems and can do this on their own.
  • UI acronym

    • For loading ManageIQ::Providers::Ovirt::InfraManager::AdminUI
  • SAP acronym

    • For loading of ManageIQ::Providers::IbmCloud::PowerVirtualServers::CloudManager::SAPProfile
  • VPC inflection

    • Allows loading of ManageIQ::Providers::IbmCloud::Inventory::Collector::VPC. Note, an acronym for VPC would onflict with FixVpcFlavorsSti migration, so we're doing just this inflection.
  • Tell the autoloader how to load the ui worker. This works around the UI acronym.

  • MKS acronym

    • For the remote_console/client_adapter/web_mks* tests
  • DBus acronym.

    • DBus is really D-Bus but we're not going to try to get that to work. Fixes:

      An error occurred while loading ./spec/lib/httpd_dbus_api_spec.rb. Failure/Error: require 'httpd_dbus_api'

      Zeitwerk::NameError:
      expected file /Users/joerafaniello/Code/manageiq/lib/httpd_dbus_api.rb to define constant HttpdDbusApi, but didn't

  • DDF acronym Fixes:

    NameError: uninitialized constant DDF Did you mean? Ddf

  • IPMI acronym

    • Allows loading of MiqIPMI in manageiq-gems-pending.

* OAuth acronym
  * For loading OAuthSessionsController from ui-classic.
* GHT acronym
  * For loading ApplicationHelper::Button::ViewGHT and ApplicationHelper::Button::ViewGHTAlways.
* REXML acronym
  * Add acronym since the stdlib constant is all caps. This is needed to load TreeNode::REXML::Attribute. The other libraries that Use Rexml, such as MiqRexml, are gems and can do this on their own.
* UI acronym
  * For loading ManageIQ::Providers::Ovirt::InfraManager::AdminUI
* SAP acronym
  * For loading of ManageIQ::Providers::IbmCloud::PowerVirtualServers::CloudManager::SAPProfile
* VPC inflection
  * Allows loading of ManageIQ::Providers::IbmCloud::Inventory::Collector::VPC. Note, an acronym for VPC would onflict with FixVpcFlavorsSti migration, so we're doing just this inflection.
* Tell the autoloader how to load the ui worker. This works around the UI acronym.
* MKS acronym
  * For the remote_console/client_adapter/web_mks* tests
* DBus acronym.
  * DBus is really D-Bus but we're not going to try to get that to work.
    Fixes:

    An error occurred while loading ./spec/lib/httpd_dbus_api_spec.rb.
    Failure/Error: require 'httpd_dbus_api'

      Zeitwerk::NameError:
        expected file /Users/joerafaniello/Code/manageiq/lib/httpd_dbus_api.rb to define constant HttpdDbusApi, but didn't
* DDF acronym
  Fixes:

  NameError:
    uninitialized constant DDF
    Did you mean?  Ddf

* IPMI acronym
  * Allows loading of MiqIPMI in manageiq-gems-pending.
@jrafanie
Copy link
Member Author

@miq-bot cross-repo-test /all

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Jul 14, 2023
@jrafanie jrafanie mentioned this pull request Jul 14, 2023
3 tasks
@miq-bot
Copy link
Member

miq-bot commented Jul 14, 2023

Checked commit jrafanie@6c1b362 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@jrafanie
Copy link
Member Author

Cross repo is green, other than the CIC provider recurring issue.

@Fryguy Fryguy merged commit 5805be9 into ManageIQ:master Jul 14, 2023
9 checks passed
@Fryguy Fryguy assigned Fryguy and unassigned kbrock Jul 14, 2023
@kbrock kbrock deleted the pre_zeitwerk_inflectors_update branch July 14, 2023 18:48
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.

4 participants