powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Feature/exclude deprecated terms

Open sankarkumar23 opened this issue 1 year ago • 4 comments

Before creating a pull request, make sure that you have read the contribution file located at

https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md

Type

  • [ ] Bug Fix
  • [x] New Feature
  • [ ] Sample

Related Issues?

Fixes #X, partially fixes #Y, mentioned in #Z, etc.

What is in this Pull Request ?

Added additional parameter to exclude deprecated terms

sankarkumar23 avatar Jun 28 '24 07:06 sankarkumar23

I think it's also a good idea to add some additional details about for this PR. See: https://pnp.github.io/powershell/articles/gettingstartedcontributing.html

markgort86 avatar Jun 30 '24 19:06 markgort86

Thanks @sankarkumar23 for your contribution. I checked your PR. The way its currently written, it will only work if providing a -TermsetId. I was wondering if there was a specific reason why you didn't add the -ExcludeDeprecated parameter to the TermSet parametergroup. Now it looks like it will also work with it, but it doesn't. I have updated your PR so it's only set to that paramset.

If I missed some thoughts here why this would not be okay, let me know.

KoenZomers avatar Jun 30 '24 21:06 KoenZomers

Agree with your comments. I prepared this code a year ago when I had the same need. I was new to GitHub and didn't understand how to push a PR until markgrot86 tapped me a few weeks ago. Now, I've moved away from the SharePoint platform and can't recollect what all I missed. You can take the code if you find it useful create a new branch, make additional changes and push it, as I no longer have the environment to test it. This experience really helped me learn how to contribute to open source code. You can delete my PR if needed.

sankarkumar23 avatar Jul 04 '24 02:07 sankarkumar23

Thanks for elaborating @sankarkumar23 . I think we're good to go for a merge on this one then. I'll do a final review and test in the next days and if all works well, I'll merge it.

KoenZomers avatar Jul 04 '24 07:07 KoenZomers

Thanks @sankarkumar23 for your contribution!

KoenZomers avatar Oct 11 '24 08:10 KoenZomers