Project

General

Profile

Actions

Tracker #9112

closed

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

Added by Tomáš Strachota about 9 years ago. Updated about 9 years ago.

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

0%

Difficulty:
Triaged:
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 2 (0 open2 closed)

Related to Foreman - Bug #9113: API docs for creating/updating users miss locale and timestamp parametersClosedTomáš Strachota01/26/2015Actions
Related to Hammer CLI - Bug #9114: User info doesn't display timezone and localeClosedTomáš Strachota01/26/2015Actions
Actions #1

Updated by Tomáš Strachota about 9 years ago

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

Updated by Tomáš Strachota about 9 years ago

  • Tracker changed from Feature to Tracker
Actions #3

Updated by Tomáš Strachota about 9 years ago

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

Updated by Tomáš Strachota about 9 years ago

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

Updated by Tomáš Strachota about 9 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

Actions

Also available in: Atom PDF