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

Migrate model display names from locale/en.yml to plugin #126

Merged

Conversation

mzazrivec
Copy link
Contributor

This is a continuation of the work started in ManageIQ/manageiq#16596 where we want to migrate display model names from locale/en.yml into particular models, where we'll use standard gettext. Main goal here is to make this one aspect of our application pluggable.

Core PR: ManageIQ/manageiq#16836

@@ -1,4 +1,8 @@
module ManageIQ::Providers
class Lenovo::PhysicalInfraManager::PhysicalServer < ::PhysicalServer
end

def self.display_name(number = 1)
Copy link
Member

Choose a reason for hiding this comment

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

This should be defined inside the PhysicalServer Class rather then inside the module

@mzazrivec mzazrivec force-pushed the migrate_display_names_for_models branch from 20a4b11 to dea2c0a Compare February 22, 2018 06:57
@miq-bot
Copy link
Member

miq-bot commented Mar 23, 2018

This pull request is not mergeable. Please rebase and repush.

@agrare
Copy link
Member

agrare commented Mar 26, 2018

@mzazrivec can you rebase?

@agrare
Copy link
Member

agrare commented Mar 26, 2018

@felipedf did @mzazrivec address your concerns?

@mzazrivec mzazrivec force-pushed the migrate_display_names_for_models branch from dea2c0a to 36f7efd Compare March 27, 2018 09:01
@mzazrivec
Copy link
Contributor Author

@agrare Done

Copy link
Member

@felipedf felipedf left a comment

Choose a reason for hiding this comment

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

LGTM

@miq-bot
Copy link
Member

miq-bot commented Apr 23, 2018

This pull request is not mergeable. Please rebase and repush.

@mzazrivec mzazrivec force-pushed the migrate_display_names_for_models branch from 36f7efd to 6584f21 Compare April 24, 2018 08:07
@mzazrivec
Copy link
Contributor Author

Can this be merged please? (seeing it's approved)

@miq-bot
Copy link
Member

miq-bot commented Apr 24, 2018

Checked commit mzazrivec@6584f21 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@rodneyhbrown7 rodneyhbrown7 merged commit 0960462 into ManageIQ:master Apr 24, 2018
@mzazrivec mzazrivec deleted the migrate_display_names_for_models branch April 24, 2018 08:25
@agrare agrare added this to the Sprint 84 Ending Apr 23, 2018 milestone Apr 24, 2018
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.

5 participants