Project

General

Profile

Tracker #9112

As a user, I would like to be able to set my preferred locale via the CLI

Added by Tomáš Strachota over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
% Done:

0%

Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=845267
Description of problem:

As the admin user for a Katello server, I would like to be able to create user accounts and set their preferred locale from the CLI.

As a regular user I would like to be able to modify/set my preferred locale from the CLI.

Right now this is only exposed via the web ui and I strongly feel that we should make this option available. Imagine a user who only understands (i.e. read) one particular language that does not match the default locale for the Katello interface. How one one then change his own locale so he can use the web ui?

As this preference is something we actually store in the database, we should support setting the locale from the CLI.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:


Related issues

Related to Foreman - Bug #9113: API docs for creating/updating users miss locale and timestamp parametersClosed2015-01-26
Related to Hammer CLI - Bug #9114: User info doesn't display timezone and localeClosed2015-01-26

History

#1 Updated by Tomáš Strachota over 7 years ago

  • Project changed from Foreman to Hammer CLI
  • Category set to Foreman commands (obsolete)

#2 Updated by Tomáš Strachota over 7 years ago

  • Tracker changed from Feature to Tracker

#3 Updated by Tomáš Strachota over 7 years ago

  • Related to Bug #9113: API docs for creating/updating users miss locale and timestamp parameters added

#4 Updated by Tomáš Strachota over 7 years ago

  • Related to Bug #9114: User info doesn't display timezone and locale added

#5 Updated by Tomáš Strachota over 7 years ago

  • Status changed from New to Closed

This issue got fixed by the change in api docs (#9113).
hammer user create/update has option --locale now.

hammer user update -h
Usage:
    hammer user update [OPTIONS]

Options:
 --admin ADMIN                                     is an admin account
 --auth-source-id AUTH_SOURCE_ID                    
 --default-location-id DEFAULT_LOCATION_ID          
 --default-organization-id DEFAULT_ORGANIZATION_ID  
 --firstname FIRSTNAME                              
 --id ID                                            
 --lastname LASTNAME                                
 --locale LOCALE                                   User’s preferred locale
 --location-ids LOCATION_IDS                       REPLACE locations with given ids
                                                   Comma separated list of values.
 --locations LOCATION_NAMES                        Comma separated list of values.
 --login LOGIN                                     User's login to search by
 --mail MAIL                                        
 --new-login NEW_LOGIN                              
 --organization-ids ORGANIZATION_IDS               REPLACE organizations with given ids.
                                                   Comma separated list of values.
 --organizations ORGANIZATION_NAMES                Comma separated list of values.
 --password PASSWORD                                
 --timezone TIMEZONE                               User’s timezone
 -h, --help                                        print help

Also available in: Atom PDF