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

Feature: List Project Groups functionality #288

Merged
merged 5 commits into from
Dec 5, 2023
Merged

Conversation

CGoodwin90
Copy link
Contributor

@CGoodwin90 CGoodwin90 commented Aug 29, 2023

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated.
  • Changelog entry has been written

Adds the functionality to the CLI to list groups associated to a specified project.

Currently utilizing & pending merge of machinery PR uselagoon/machinery#23

@CGoodwin90 CGoodwin90 marked this pull request as ready for review November 28, 2023 05:21
Copy link
Member

@shreddedbacon shreddedbacon left a comment

Choose a reason for hiding this comment

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

This will also need make docs run to make sure the documentation is updated

Copy link
Member

@shreddedbacon shreddedbacon left a comment

Choose a reason for hiding this comment

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

Very handy addition

@shreddedbacon shreddedbacon merged commit fb8a37a into main Dec 5, 2023
4 checks passed
@shreddedbacon shreddedbacon deleted the list-project-groups branch December 5, 2023 02:58
handleError(err)

if len(projectGroups.Groups) == 0 {
output.RenderInfo(fmt.Sprintf("There are no projects in group '%s'", groupName), outputOptions)
Copy link

Choose a reason for hiding this comment

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

Where is groupName defined? This message is confusing. I expect this message to be like "There are no groups for project '%s'" with the cmdProjectName as substitute

Copy link
Member

Choose a reason for hiding this comment

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

🙈
Will fix it up

Copy link
Member

Choose a reason for hiding this comment

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

Based on the condition though, this shouldn't ever be reached as projects should always have 1 group. Did you encounter this error?

Copy link

Choose a reason for hiding this comment

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

Yeah I get this error message for all of our projects. We haven't assigned our projects to a group yet.

~ % lagoon list project-groups -p <PROJECT NAME>
Info: There are no projects in group ''

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.

3 participants