Skip to content

[Bug] Inconsistency in Namespace usage #495

@fbxai

Description

@fbxai

What are you really trying to do?

When using the namespace flag --namespace, the format is inconsistent when creating or looking it up.

Describe the bug

Temporal associates a namespace with its account ID, as highlighted in the docs: <namespace>.<account> ref

This means that I use 1 string to create a namespace, but another to look it up.

Minimal Reproduction

Given a logged in user with account ID of f45a2

  1. Create a namespace: tcld namespace create --namespace accounting-production --region us-east-1 --auth-method api_key
  2. Try to look it up: tcld namespace get --namespace account-production (it fails)
  3. Observe the correct way to be: tcld namespace get --namespace account-production.f45a2

Environment/Versions

All tcld versions do this

Additional context

Unless I'm mistaken, the tcld CLI doesn't allow you to switch between accounts (like gcloud config would). Thus the only option is for a user to see what account they are logged in with tcld account get - Asking for the account ID associated with the current session is thus both painful and unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions