feat(service-registry): added artifact owner-get owner-set commands#1745
Conversation
|
Hi @SafarMirek . I am getting issues trying to run these commands: Do we need to use some other environment? |
|
Also the cli uses the convention: [verb]-[noun], like set-kafka, set-service-registry. |
|
Currently, this feature is I think only in staging and in Operate First environment. You can use cli with Operate First using this login command: |
I inspired myself in metadata commands: |
|
LGTM - the names of the commands are consistent with existing metadata and state related commands. So I think unless we wanted to change them all, then |
|
rkpattnaik780
left a comment
There was a problem hiding this comment.
Nice PR @SafarMirek ! :)
Leaving some minor suggestions.
Also a question: do you really feel we should add interactive mode for owner operations?
@rkpattnaik780 Does it have any downside? |
No downsides at all. I personally prefer prompting when users have many flags to input or many options and also when options for one flag are dependent on the values provided for previous flags. I would have liked interactivity more if we could chose the owner and artifact-id, but that could be an overkill. Wdyt? |
|
I am not sure there is a way to show all users who can be new owners. There is a way to let the user choose the artifact-id, but I am not sure it will be good UX because there could be hundreds of artifacts in the registry and in this scenario it would not make sense. Wdyt? |
|
I agree with Marek. While it is generally an good idea for this case it might be risky to show so many options (or good UX to have it with so many items) |
Great points @SafarMirek . I will agree as well, let's keep the interactive mode as it is. |
See Apicurio/apicurio-cli#9
Get owner of the artifact
Set owner of the artifact
Type of change