Skip to content

[#5929] improvement(CLI): fix cli details command produce no output#5941

Merged
xunliu merged 3 commits intoapache:mainfrom
Abyss-lord:fix-user-details
Dec 23, 2024
Merged

[#5929] improvement(CLI): fix cli details command produce no output#5941
xunliu merged 3 commits intoapache:mainfrom
Abyss-lord:fix-user-details

Conversation

@Abyss-lord
Copy link
Contributor

What changes were proposed in this pull request?

If a user has no roles then no output is produced from user\group details command, it should give some help information.

Why are the changes needed?

Fix: #5929

Does this PR introduce any user-facing change?

NO

How was this patch tested?

bin/gcli.sh user details -m demo_metalake --user test_user
# output: User has no roles.

bin/gcli.sh group details -m demo_metalake --group group_no_role
# output: Groups has no roles.

…tput

If a user has no roles then no output is produced from user\group details command, it should give some help information.
@Abyss-lord
Copy link
Contributor Author

Hi @justinmclean @xunliu @tengqm , could you plz review this pr when you have time?

justinmclean
justinmclean previously approved these changes Dec 22, 2024
Copy link
Member

@justinmclean justinmclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for this.

Abyss-lord and others added 2 commits December 23, 2024 09:47
…oupDetails.java

Co-authored-by: Qiming Teng <tengqm@outlook.com>
…erDetails.java

Co-authored-by: Qiming Teng <tengqm@outlook.com>
@Abyss-lord
Copy link
Contributor Author

Hi @justinmclean @tengqm , I’ve finished updating the code. Please take a look at the PR again when you have time.

@tengqm
Copy link
Contributor

tengqm commented Dec 23, 2024

lgtm.

Copy link
Member

@justinmclean justinmclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

Copy link
Member

@xunliu xunliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abyss-lord Thank you for your contributions.
LGTM

@xunliu xunliu merged commit 66eb83b into apache:main Dec 23, 2024
@Abyss-lord Abyss-lord deleted the fix-user-details branch December 23, 2024 09:09
@Abyss-lord Abyss-lord restored the fix-user-details branch December 23, 2024 09:09
@Abyss-lord Abyss-lord deleted the fix-user-details branch December 23, 2024 09:09
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this pull request Dec 23, 2024
…tput (apache#5941)

### What changes were proposed in this pull request?

If a user has no roles then no output is produced from `user\group
details` command, it should give some help information.

### Why are the changes needed?

Fix: apache#5929 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

```bash
bin/gcli.sh user details -m demo_metalake --user test_user
# output: User has no roles.

bin/gcli.sh group details -m demo_metalake --group group_no_role
# output: Groups has no roles.
```

---------

Co-authored-by: Qiming Teng <tengqm@outlook.com>
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this pull request Dec 29, 2024
…tput (apache#5941)

### What changes were proposed in this pull request?

If a user has no roles then no output is produced from `user\group
details` command, it should give some help information.

### Why are the changes needed?

Fix: apache#5929 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

```bash
bin/gcli.sh user details -m demo_metalake --user test_user
# output: User has no roles.

bin/gcli.sh group details -m demo_metalake --group group_no_role
# output: Groups has no roles.
```

---------

Co-authored-by: Qiming Teng <tengqm@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] In the Gravitino CLI a user details command can produce no output

4 participants