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

[RHELC-892] Fix duplicate setting of locale #731

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

abadger
Copy link
Member

@abadger abadger commented Feb 6, 2023

When we created initialize.set_locale() under #528, removing the function from its former location in utils.py was missed. Subsequently, some new code was added to utils.set_locale() under #615 when it should have been added to initialize instead. This commit merges the new changes into initialize.set_locale() and finishes the move by removing the duplicate from utils.py.

Jira Issue: RHELC-892

Checklist

  • PR meets acceptance criteria specified in the Jira issue
  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending

When we created `initialize.set_locale()`, removing the function from its
former location in `utils.py` was missed.  Subsequently, some new code was
added to `utils.set_locale()` when it should have been added to
`initialize` instead.  This commit merges the new changes into
`initialize.set_locale()` and finishes the move by removing the
duplicate from `utils.py`.

Fixes RHELC-892
@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Base: 92.36% // Head: 92.38% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (f28f386) compared to base (8c4a951).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #731      +/-   ##
==========================================
+ Coverage   92.36%   92.38%   +0.02%     
==========================================
  Files          22       22              
  Lines        3194     3193       -1     
  Branches      562      562              
==========================================
  Hits         2950     2950              
+ Misses        175      174       -1     
  Partials       69       69              
Flag Coverage Δ
centos-linux-7 89.16% <100.00%> (+0.02%) ⬆️
centos-linux-8 89.35% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
convert2rhel/utils.py 86.77% <ø> (+0.23%) ⬆️
convert2rhel/initialize.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Venefilyn
Copy link
Member

/packit retest-failed

@Venefilyn Venefilyn merged commit e7e88a1 into oamg:main Feb 7, 2023
@Venefilyn Venefilyn added the kind/bug-fix A bug has been fixed label Feb 7, 2023
@abadger abadger deleted the fix-set-locale-move branch February 15, 2023 19:16
@Venefilyn Venefilyn mentioned this pull request Feb 20, 2023
@bocekm bocekm changed the title [RHELC-892] Finish the move of set_locale() to initialize. [RHELC-892,RHELC-745] Finish the move of set_locale() to initialize. Feb 20, 2023
@bocekm bocekm changed the title [RHELC-892,RHELC-745] Finish the move of set_locale() to initialize. [RHELC-892] Finish the move of set_locale() to initialize. Feb 20, 2023
@Venefilyn Venefilyn changed the title [RHELC-892] Finish the move of set_locale() to initialize. [RHELC-892] Fix duplicate setting of locale Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix A bug has been fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants