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

Add space details to the stack object #201

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Conversation

tomasmik
Copy link
Contributor

@tomasmik tomasmik commented Nov 17, 2023

Original issue requests to add filtering by space #198 I propose we add space to the output and callers can use jq:

$ spc stack list --output json  | jq '.[] | select(.spaceDetails.parentSpace == "root")'

Closes #198

@tomasmik tomasmik self-assigned this Nov 17, 2023
@tomasmik tomasmik merged commit edd21e0 into main Nov 17, 2023
9 checks passed
@tomasmik tomasmik deleted the include-space-details branch November 17, 2023 10:19
ID string `graphql:"id" json:"id,omitempty"`
Name string `graphql:"name" json:"name,omitempty"`
Description string `graphql:"description" json:"description,omitempty"`
ParentSpace *string `graphql:"parentSpace" json:"parentSpace,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

In SpaceDetails we have both ID and Name. Is ParentSpace the id or name?

ID string `graphql:"id" json:"id,omitempty"`
Name string `graphql:"name" json:"name,omitempty"`
Description string `graphql:"description" json:"description,omitempty"`
ParentSpace *string `graphql:"parentSpace" json:"parentSpace,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we resolve ParentSpace as a SpaceDetails struct?
In case someone has built deep space hierarchies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a thing by default, requires additional queries. By default it's just a string value, ID.

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.

Allow to filter output by Space
3 participants