Skip to content

Add documentation requirements to CONTRIBUTING.md#3794

Merged
TravisEz13 merged 5 commits into
PowerShell:masterfrom
joeyaiello:DocsOnPRTemplate
Jun 7, 2017
Merged

Add documentation requirements to CONTRIBUTING.md#3794
TravisEz13 merged 5 commits into
PowerShell:masterfrom
joeyaiello:DocsOnPRTemplate

Conversation

@joeyaiello

Copy link
Copy Markdown
Contributor

This is intended to address the underlying issue behind #2566 by adding a note in CONTRIBUTING.md to create a corresponding pull request in PowerShell/PowerShell-Docs when making code changes that warrant it.

It's also going to take some enforcement from @PowerShell/powershell-maintainers, which I know will be difficult because our documentation isn't completely up-to-date--we're playing catch up here. However, it should be analogous to the test debt that we've had while enforcing requirements for new tests.

I'm also not opposed to creating a label as well to track those PRs where doc changes are required but where they haven't been addressed. It's really up to the @PowerShell/powershell-maintainers here, I'm open to whatever.

@joeyaiello

Copy link
Copy Markdown
Contributor Author

Also, I apologize for the formatting changes. I had to make them for the file to be maintainable (bulleted lists were busted the way they were).

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the change ....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment thread .github/CONTRIBUTING.md Outdated

@daxian-dbw daxian-dbw May 17, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Better to include the PR number as well, like Update-Item now supports -FriendlyName (#1234). Otherwise, it's hard to correlate the change log with a PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we enable markdown validation before making changes?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There should be a new line before a code block and a language name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm fine going through the file completely and making it lint compliant, but I thought I was supposed to hold formatting changes to another PR so as to make the review easier😉

I'll start another commit now. If you want me to drop it to another PR, I can, but it looks like everyone here is approving of the content change already.

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

newline after a code block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

change may to must

@SteveL-MSFT

Copy link
Copy Markdown
Member

@joeyaiello in the future, the best practice is style/formatting changes should be a separate PR otherwise it's hard to see what the actual functional change was

we should also change the PR template

@TravisEz13

Copy link
Copy Markdown
Member

#3805 for issues not introduced by this change

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

comma at end of line is not needed

Comment thread .github/CONTRIBUTING.md Outdated

@TravisEz13 TravisEz13 May 18, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Qualify this. For example, This requirement includes

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could you remove the double the this is really bad...

@TravisEz13 TravisEz13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This document needs to go through a separate grammar scrub. I didn't see any major issues with your changes.

@SteveL-MSFT

Copy link
Copy Markdown
Member

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe " add parameter "?

@iSazonov

Copy link
Copy Markdown
Collaborator

It seems it is a wrong direction.

Do you really think a community contributer want to spend time writing documentation?
How many community contributers you see? You want blocks community?
Maybe you see the same process in CoreFX Repo?

The proposed process is ideal for obtaining a high-quality product in the enterprise but not in the community project.
If you want many feedbacks and contributions from community an contributer must be able to:

  1. Install dev environment as simple as three click.
  2. Get fast feedback on - Is the bug or new approved feature? Where is right place to fix?
  3. Get fast PR code review.

I can not confidence say Yes for this points and now there's one more No for fourth point (docs). I may be wrong, but CoreFX Repo has a much quicker reaction.

As for me. Now @daxian-dbw @lzybkr @SteveL-MSFT spend a lot of time on me, and I hope they eventually get a profit. If I write docs, I'll spend a lot of time, and they'll waste more on fixing it. I believe the documentation should be written by professional docs writers.
The real benefit for the documentation will be from me only if I take part in reviewing the docs translation on Russion.

I believe that the process of writing documentation should be asynchronous rather than synchronous, should not be entrusted to code writers and should not block code PRs.

My vision of the process:
Mantainers:

  1. Request high quality Issue description with clear repo steps and code samples - it can be used in docs.
  2. Request high quality description in PRs: link to Issue if one exists, if no the Issue description should be done in the PR, a short and clear description of the fix or the enhancement - the PR description is a main base for documentation.
  3. Mark the PR with Docs-Needed.

In this way, we will prepare a high-quality base for documenting without blocking and wasting time.

Doc writer:
4. Search PRs with Docs-Needed.
5. Open new PR in Docs Repo with link on the code PR.
6. Request review from original code PR author/code reviewers/Issue author.
7. Request to change Docs-Needed with Docs-Fixed in original code PR.

@joeyaiello

Copy link
Copy Markdown
Contributor Author

@iSazonov I hear you. If others agree, we can certainly go down the documentation required label route.

@TravisEz13

Copy link
Copy Markdown
Member

I would prefer a more flexible approach that will be open to more contributors.

@SteveL-MSFT

Copy link
Copy Markdown
Member

I agree with what @iSazonov is saying. Let's start with a documentation required label

@joeyaiello

Copy link
Copy Markdown
Contributor Author

Okay, expect a Round 2 of this PR later this week.

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we've been using Up-for-grabs mostly to indicate easy/small/non-critical issues as a way to start contributing code and not really as needing help

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sometimes it's not obvious fix, and it would be nice that maintainers accompany the comment how and where to fix, or at least where it's best to start.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You can fix this in another PR, but this doesn't have anything to do with this change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fair enough

Comment thread .github/CONTRIBUTING.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we agreed to relax this and just add a Needs-Documentation label

@joeyaiello

Copy link
Copy Markdown
Contributor Author

Alright, updated to reflect the label approach in Steve's PR at #3908. Would appreciate another quick review. /cc @iSazonov @SteveL-MSFT

Comment thread .github/CONTRIBUTING.md Outdated
a Maintainer will add the `Documentation Needed` label to your PR and add an issue to the [PowerShell-Docs repository][PowerShell-Docs],
so that we make sure to update official documentation to reflect your contribution.
As an example, this requirement includes any changes to cmdlets (including cmdlet parameters) and features which have associated about_* topics.
While not required, we appreciate any contributors who add this label and the issue themselves.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This sentence reads oddly. This is minor, but suggestion While not required, we appreciate any contributors who add this label and create the issue themselves.

Comment thread .github/CONTRIBUTING.md
* Instead of "New parameter 'ConnectionCredential' in New-SqlConnection",
write "New-SqlConnection: added parameter 'ConnectionCredential'".
* If your change warrants an update to user-facing documentation,
a Maintainer will add the `Documentation Needed` label to your PR and add an issue to the [PowerShell-Docs repository][PowerShell-Docs],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In RFC Repo we seem refused Issue-based discussions and move to PR-based discussions. Here is the same - do we need duplicated Issues in Docs Repo? I still believe that doc writers can easy get an information from PowerShell Repo by "Documentation Needed" label filter and immediately create a Doc PR excluding an Doc Issue. Cross-reference links "PowerShell PR" <-> "Doc PR" will help us too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, there's not a stable set of folks or workflow for getting these docs written (and actually, a lot of the preliminary writing will fall on engineers/me on the PowerShell Team), so we have to do this asynchronously with potentially extended latency.

We'll also have a lot of these things that are more than just a parameter addition (e.g. the & backgrounding) where we'll need some longer-form content. I just don't want these tasks to get lost in merged PRs.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for clarify! I'll try to help out a little.

@joeyaiello

Copy link
Copy Markdown
Contributor Author

I'm okay without @HemantMahawar's review. If everything looks good, feel free to merge.

@TravisEz13 TravisEz13 merged commit a164609 into PowerShell:master Jun 7, 2017
@joeyaiello joeyaiello deleted the DocsOnPRTemplate branch June 7, 2017 17:39
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.

7 participants