Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXCDT-589: Enable description prompt in interactive mode when updating roles #915

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

sergiught
Copy link
Contributor

🔧 Changes

In this PR we enable the description prompt in interactive mode when updating roles. Furthermore we enhance the default text for the name and description prompts with information from the current role.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught marked this pull request as ready for review November 17, 2023 14:10
@sergiught sergiught requested a review from a team as a code owner November 17, 2023 14:10
@codecov-commenter
Copy link

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (ff7566f) 72.41% compared to head (e04cabe) 72.41%.

Files Patch % Lines
internal/cli/roles.go 52.94% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #915      +/-   ##
==========================================
- Coverage   72.41%   72.41%   -0.01%     
==========================================
  Files          93       93              
  Lines       12440    12447       +7     
==========================================
+ Hits         9008     9013       +5     
- Misses       2907     2908       +1     
- Partials      525      526       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if inputs.Description != "" {
r.Description = &inputs.Description
updatedRole.Description = &inputs.Description
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to provide no name and no description on update? If so, might we detect that and prevent an API request that will inevitably fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The API doesn't fail if we do not provide any name or description, it will simply behave as a GET.

@sergiught sergiught merged commit f9c43be into main Nov 21, 2023
8 checks passed
@sergiught sergiught deleted the DXCDT-589-roles-update branch November 21, 2023 10:38
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.

4 participants