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] - Allow enabling/disabling comments on individual SharePoint lists #2913

Closed
ganesh-sanap opened this issue Mar 19, 2023 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@ganesh-sanap
Copy link
Contributor

ganesh-sanap commented Mar 19, 2023

Is your feature request related to a problem? Please describe

Currently we cannot enable/disable comments on individual SharePoint lists using PnP PowerShell.

Describe the solution you'd like

Can we enhance Set-PnPList cmdlet to support additional parameter (say -DisableCommenting) which will allow enabling/disabling comments on individual SharePoint lists?

I would like to contribute to this library for above enhancement request with the help from repository maintainers/existing contributors. Thank you!

Additional context

Currently this can be done via SharePoint UI:

image

Reference: Enable/Disable the comments for a SharePoint Online/Microsoft List

@ganesh-sanap ganesh-sanap added the enhancement New feature or request label Mar 19, 2023
@veronicageek
Copy link
Collaborator

All yours @ganesh-sanap 👍🏻 Thanks for contributing!

@ganesh-sanap
Copy link
Contributor Author

Thank you @veronicageek. I am trying to setup development environment by following Setting up your environment but I am facing below error while running these commands:

git remote add --track dev upstream https://github.com/officedev/pnp
git fetch upstream

Error:
image

Can you please help me with this?

@veronicageek
Copy link
Collaborator

@ganesh-sanap - This page is for the old repo (now archived).
Hopefully @gautamdsheth or @KoenZomers might be able to help?

@KoenZomers
Copy link
Collaborator

KoenZomers commented Mar 20, 2023

Thanks for your willingness to contribute @ganesh-sanap!

Have you read up on the steps in this article to get started:
https://github.com/pnp/powershell/blob/dev/CONTRIBUTING.md

I realize there might be some outdated parts in it, but it should give the idea. Feel free to flag parts you get stuck with or need updating.

From a high level, what you would need to do is fork off from this repository by clicking on Fork on the very top right on this page or use this direct link. Create your own fork through the page that will show, if you don't have one yet.

image

If you do have a fork already, go into it and ensure its up to date with our dev branch. It will show once you are in your fork in the status bar near to the top:

image

Use the "Sync fork" button to sync your fork if its showing you're X comments behind.

After your fork is in sync, click on the green "Code" button and copy the URL that it shows pointing to your fork.

image

Open up a PowerShell/Command console on your machine and if you haven't already, but it seems you have from your screenshot, download and install the Git tools applicable for your working environment from: https://git-scm.com/downloads . Just do a next-next-finish installation disregarding the countless options it offers in the process. Ensure you open a new console after installing it as otherwise the new path variables will not be in place yet.

In the console go to a new folder where you want to download to the code to and execute:

git clone <URL copied from the step above under the code button>

This will download the code into a subfolder named after your fork. You can start coding from there using Visual Studio Code or the full Visual Studio, whichever you prefer. I use Visual Studio Code myself.

Be sure to create a new branch for the changes you do. Don't do them in your dev branch. Once done with your changes, commit them, push the new branch to your repository, go to GitHub and it will show a bar asking you if you want to create a PR based from your new branch. Click on the button, go through the steps and you should be done.

@KoenZomers
Copy link
Collaborator

I've taken the time to update the documentation around contributing to outline step by step what you will need to do. Its still under review at the moment, but you can already access and use it here:

https://github.com/pnp/powershell/blob/677a59ea455170488d7a6eb6bb969e303b2a6b8b/pages/articles/gettingstartedcontributing.md

@ganesh-sanap
Copy link
Contributor Author

@KoenZomers Thank you very much for this guide. I will follow the steps mentioned in the contribution guidance.

@ganesh-sanap
Copy link
Contributor Author

Raised new PR #2939. Many thanks @KoenZomers for detailed contribution guide. Please help with updating changelogs/docs if I missed anything!

@KoenZomers
Copy link
Collaborator

Looks great @ganesh-sanap ! Thanks for your contribution. Keep them coming! :)

@gautamdsheth
Copy link
Collaborator

Closing this, since its merged !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants