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
Enhancement: add ability to recursively load Taxonomy Terms from a termset. #4209
Comments
How does that affect the shape of data we retrieve and output? How would we present child items in text and csv output modes where we typically don't show nested objects? |
Hmmm, good point @waldekmastykarz. I'd say we should just return the api output, which means the child terms are a nested array. Not ideal though maybe. For text and csv output you'd like a more flat structure. We could consider ourselves more wise than the SharePoint API, and return a flattened list in all output modes, but that would be unexpected maybe as well, and would add work for the user to check which terms are where in the hierarchy. What would you think about adding a |
A flat list would make sense only if we included the ID of the parent term so that users can decode the hierarchy from the provided output. I'd say that we produce a flat list for all outputs except JSON and in JSON keep the hierarchy. |
Added it to the remarks. |
Extended the spec adding that in text, csv and md output (we've got that one now too 😄), we also need to include the ID of the parent term. |
I would love to work on this! |
Nice to hear @MathijsVerbeeck! |
Say I have a termset with a nested list of terms and I execute:
I only get the top-level terms. I'd like to be able to include the child terms as well.
--includeChildTerms
Remarks
The list of terms retrieved is a nested object, with arrays of child terms in every term object.
text
,csv
andmd
output modes, the command output should contain all terms, children as well as parents.text
,csv
andmd
output modes, each term contains the ID of the parent term. If the term doesn't have a parent, the value of the property is empty.json
output mode, the command output should keep the nested structure that the API returns.The text was updated successfully, but these errors were encountered: