Enable site classification
graph siteclassification enable -c|--classifications <classifications> -d|--defaultClassification <defaultClassification> --usageGuidelinesUrl [usageGuidelinesUrl]For more information see the Enable-PnPSiteClassification cmdlet
More than happy to pick this one up.
W00t! All yours! 馃殌
Hey @appieschot, are you still working on this command?
And we'll do a retry; happy to pick this one up :)
All yours!
Do you want to implement a -disable: flag on this method to disable site classifications, or do you want to have an additional command called disable site classification (as testing the creation without the option to delete is a bit weird)? If it is an additional command I would love to pick it up in the same PR.
Additionally we do have a property called GuestUsageGuidelinesUrl in the directorysettings. We could leverage that as in this same method as well.
Let's use a separate command for disable. If we don't have an issue for it, let's create one.
Good idea to include GuestUsageGuidelinesUrl 馃憤
If i may, i started but not finished up the site classification set command... it is already working, just need to ensure the code coverage and .md page, wouldn鈥檛 it be more productive to sync on such related commands?
@ypcode that would definitely make sense, do you have the command synced to your repo? I have the command implemented as well but do also need the tests and documentation :). You can find my implementation on: https://github.com/appieschot/office365-cli/tree/feature/enable-site-classification
Let me make sure it is, I will do it tonight
Here is the current state of this future PR : https://github.com/ypcode/office365-cli/tree/dev-graph-site-classification-set. As I said, the docs and testing are not done, will do it after being back from vacation after September, 10th.
I didn't check yours @appieschot , but maybe we can have some sort of sync in each other PRs.
Will be more active soon :)
Cheers,
Yannick
@ypcode i just wrote my tests, but have a slightly different implementation than yours. I did use the PowerShell code sample, but will consolidate with your implementation to ease integration in the next release. The set requires one additional property (DefaultValue) as when enabling it, it requires the default value for usageGuidelinesUrl when it is not specified
Most helpful comment
Here is the current state of this future PR : https://github.com/ypcode/office365-cli/tree/dev-graph-site-classification-set. As I said, the docs and testing are not done, will do it after being back from vacation after September, 10th.
I didn't check yours @appieschot , but maybe we can have some sort of sync in each other PRs.
Will be more active soon :)
Cheers,
Yannick