cli icon indicating copy to clipboard operation
cli copied to clipboard

Human friendly name for Store creation via cli

Open indcoder opened this issue 2 years ago • 4 comments

When creating a store via CLI, if a name is provided, then the CLI should create a a unique human friendly name automatically.

indcoder avatar Jun 08 '23 15:06 indcoder

Just to clarify @indcoder, you mean if a name is not provided, right?

miparnisari avatar Jun 09 '23 18:06 miparnisari

Yup, this issue cropped up in yesterdays OpenFGA community call. During the demo noticed that if no name was provided to the CLI create store command, it created an alpha numeric id.

The change I propose is identical to the behaviour of Docker CLI where if you dont provide a name to the container while creating it, it will assign a unique human readable friendly name.

On Sat, Jun 10, 2023 at 12:01 AM Maria Ines Parnisari < @.***> wrote:

Just to clarify @indcoder https://github.com/indcoder, you mean if a name is not provided, right?

— Reply to this email directly, view it on GitHub https://github.com/openfga/cli/issues/115, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAQZG2FSBHX2NX52TBDO3XKNTXRANCNFSM6AAAAAAY7OUCYM . You are receiving this because you were mentioned.Message ID: @.***>

indcoder avatar Jun 09 '23 18:06 indcoder

Ah! So this suggestion only applies to the CLI. Gotcha. I was confused because the Create Store API requires the name :)

miparnisari avatar Jun 09 '23 19:06 miparnisari

Exactly! CLI is mentioned in the title of the issue.

Sent from mobile

On Sat, 10 Jun, 2023, 01:00 Maria Ines Parnisari, @.***> wrote:

Ah! So this suggestion only applies to the CLI. Gotcha. I was confused because the Create Store API requires the name :)

— Reply to this email directly, view it on GitHub https://github.com/openfga/cli/issues/115, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAQZHRCDKJMOAHUUB7QRLXKN2WLANCNFSM6AAAAAAY7OUCYM . You are receiving this because you were mentioned.Message ID: @.***>

indcoder avatar Jun 09 '23 23:06 indcoder