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

Fix error on localized worker settings screen #4156

Merged

Conversation

mzazrivec
Copy link
Contributor

For worker memory threshold, we should be saving numbers, not translated strings (e.g. en: "500 MB" -> fr: "500 Mo")

  1. Navigate to Settings -> [Your server] -> Workers tab
  2. Change your locale to French
  3. Change the any of the memory threshold settings on that screen

Without this fix, you'd get an error. With this fix in place, the screen will be working correctly.

https://bugzilla.redhat.com/show_bug.cgi?id=1589122

For worker memory threshold, we should be saving numbers, not
translated strings (e.g. en: "500 MB" -> fr: "500 Mo")

https://bugzilla.redhat.com/show_bug.cgi?id=1589122
@miq-bot
Copy link
Member

miq-bot commented Jun 18, 2018

Checked commit mzazrivec@271ab16 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. 🍰

@ZitaNemeckova
Copy link
Contributor

Before:
screen shot 2018-06-19 at 2 07 14 pm

After:
screen shot 2018-06-19 at 2 11 55 pm

Tested in UI. LGTM 👍

@himdel himdel self-assigned this Jun 19, 2018
@himdel himdel modified the milestones: Sprint 88 Ending Jun 18, 2018, Sprint 89 Ending July 2, 2018 Jun 19, 2018
@himdel himdel merged commit 90bbf6f into ManageIQ:master Jun 19, 2018
@mzazrivec mzazrivec deleted the fix_bug_in_localized_worker_settings_screen branch June 19, 2018 12:46
simaishi pushed a commit that referenced this pull request Jun 19, 2018
…ettings_screen

Fix error on localized worker settings screen
(cherry picked from commit 90bbf6f)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1592913
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit ba804359a13fd572ba603ac493a9e0ecc5856b9a
Author: Martin Hradil <himdel@seznam.cz>
Date:   Tue Jun 19 14:27:55 2018 +0200

    Merge pull request #4156 from mzazrivec/fix_bug_in_localized_worker_settings_screen
    
    Fix error on localized worker settings screen
    (cherry picked from commit 90bbf6f1d09d4de5f016c695584bccab5d7fdde5)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1592913

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