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

Docs: improve the "Contributing" section documentation #115

Closed
saragerion opened this issue Jul 16, 2021 · 30 comments
Closed

Docs: improve the "Contributing" section documentation #115

saragerion opened this issue Jul 16, 2021 · 30 comments
Labels
completed This item is complete and has been merged/shipped documentation Improvements or additions to documentation internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)

Comments

@saragerion
Copy link
Contributor

saragerion commented Jul 16, 2021

Description of the improvement

Summary of the proposal

Right now the contributing docs are very bare.
To make it inclusive and accessible for contributors from different seniority, background and experience, this area should be be more detailed to make sure that ambiguity is reduced and most importantly, in case of PR's, expectations are communicated early on in the PR progress.

How, where did you look for information

In the current Contributing doc.

Missing or unclear documentation

Contributions may be related to:

  • Design (UX, accessibility)
  • Research to scope requirements or understand priorities
  • Improve the documentation
  • Add or improve examples
  • Writing tutorials
  • Implementation of new features via Pull Requests's
  • Bux fixes
  • Share ideas & proposals
  • Organising Github issues, labels, projects
  • Review code and Pull Requests

Improvement

Rather than 1 single cluttered CONTRIBUITING.md file, a folder with organized files/sections might be easier to read and browse.

Related existing documentation

Contributing file

Related issues, RFCs

#426
#422

@saragerion saragerion added the documentation Improvements or additions to documentation label Jul 16, 2021
@dreamorosi
Copy link
Contributor

Agree that it needs improvement. The AWS Solutions Constructs repo, in my opinion, has a good example of this file.

Also interesting is their DESIGN_GUIDELINES.md file which we could also adopt a form of.

The process they request contributors to follow requires an issue and a design document to be reviewed by a maintainer before someone starts to implement a change. For trivial changes just the issue could suffice but for bigger changes I think it's a good idea. On one hand the maintainer review could become a bottleneck but in the spirit of a good experience as a contributor it'd be far worse to invest time and effort in an implementation that'd be rejected when it becomes a PR.

@bahrmichael
Copy link
Contributor

I like @dreamorosi's suggestion of the AWS Solutions Constructs example, and think we could get a good first document by using and adapting the example for our repository. I'll be happy to start a draft.

I don't have much experience around design guidance, and am quite new to this project. So for now I'll be passive regarding design guidelines.

@dreamorosi
Copy link
Contributor

I think a good starting point for the design principles could be the tenets described in the Python's version of the project. Other than that I think good principles could be feature parity and consistency with other runtimes.

@saragerion
Copy link
Contributor Author

saragerion commented Jul 22, 2021

@bahrmichael @dreamorosi thanks for your input, I completely agree.

I would also add: in our contributing guidelines we should also clarify how to find Issues, PR's (through the Github projects). Additionally we could define what "ownership" (= assignees) of an issue is and what that means in practice.

Here's my proposal:

  1. When someone creates a new Issue, there is no owner assigned because the issue needs to be triaged still (we might or might not implement it for example). To get feedback of the maintainers, we can tag them in the issue's comments to get their input (and/or ping them on slack of course). So the issue has no owner (assignee) yet.
  2. Once the issue is triaged and ready to be picked up, 1 or more owners can be assigned in the Assignees section. An owner of an issue has the responsibility of carry it to completion and bring it to the done column.

I myself am guilty of assigning issues to get people's attention so not following what suggested above, by the way. But I realised that this was causing me confusion.

I think documenting this etiquette will bring more clarity about who is working on what in the future. But first we need of course to agree whether this is the best way of working/approach or there are better ways.
What do you think?
cc: @alan-churley

@dreamorosi
Copy link
Contributor

100% agree with this, and it's great to document it so that we all know what's the proper etiquette. To double down on this I think we could codify also how PRs should work. For those I think the current behaviour is that the assignee is the person who opened the PR and is responsible of resolve any comment/request from the reviewers. Reviewers are those who are expected to review the PR and provide feedback/approve/reject the changes.

What do you think?

@saragerion saragerion mentioned this issue Jul 22, 2021
12 tasks
@bahrmichael
Copy link
Contributor

We should also include build steps they can run themselves to ensure proper linting (and maybe add a step in the PR build to verify if it's alright).

Agree on enforcing it.
Using camel casing is something we could also document here #115 because I can see how someone new to the project could do a similar thing.

#102 (comment)

I think we're reaching a point where we need to recollect all the ideas, and trim them down into individual tasks.

@saragerion
Copy link
Contributor Author

Another item we could document: testing style.
#102 (comment)

@alan-churley
Copy link
Contributor

I think the approach here seems sensible, and yes more documentation on how things should work the better!

@saragerion
Copy link
Contributor Author

As suggested by @alan-churley this issue can include the setup of pre-commit hooks that would validate/flag errors

@saragerion
Copy link
Contributor Author

Another important point to document (and possibly also setup in our project configuration) is the versions of:

  • NPM
  • Node.js
    that you need to have installed locally to have the project properly working.
    I am in favour of documentation + local setup scripts/hooks to avoid errors related to wrong versions being used.

@bahrmichael
Copy link
Contributor

There's been a lot of great feedback, so I'll try to summarize it into some areas that we can work through bit by bit.

@github-actions
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@bahrmichael bahrmichael reopened this Aug 10, 2021
@saragerion saragerion added the triage This item has not been triaged by a maintainer, please wait label Jan 6, 2022
@saragerion
Copy link
Contributor Author

saragerion commented Jan 6, 2022

Another aspect that we should add in our contributing section: avoiding creating PR's that include code changes that are not related to the specific issue they are trying to address.
Housekeeping shows good intentions, but it does not help us maintainers keeping track of the changes that are released and it's better to create a separated issue/PR for changes unrelated to the original scope.

Also we should clarify what's the best way to define a conversation resolved in a PR review :)

@ijemmy
Copy link
Contributor

ijemmy commented Jan 6, 2022

Should we put contributing section in the doc?
It's easier to locate and search. But the drawback is that the content has to be in the docs folder.

@michaelbrewer
Copy link
Contributor

normally it is in the root dir

@flochaz
Copy link
Contributor

flochaz commented Jan 6, 2022

Should we put contributing section in the doc? It's easier to locate and search. But the drawback is that the content has to be in the docs folder.

I personally would prefer to be just a link to CONTRIBUTING.md from doc. Dev will first look at this file at root folder of repo.

@michaelbrewer
Copy link
Contributor

Adding GitPod or CodeSpaces support is really handy .

eg: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md

@michaelbrewer
Copy link
Contributor

I did one for the python project too, makes it super easy to contribute

CodeSpaces config:

GitPod config:

@dreamorosi
Copy link
Contributor

Did a quick test with devcontainer in VSCode, leaving this here for future reference:

.devcontainer/Dockerfile

ARG VARIANT="16"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

RUN mkdir ~/.npm-global && \
  npm config set prefix '~/.npm-global' && \
  echo "export PATH=~/.npm-global/bin:$PATH" >> ~/.profile

ARG EXTRA_NODE_VERSION=16.5.0
RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

.devcontainer/devcontainer.json

{
  "name": "Node.js",
  "build": {
    "dockerfile": "Dockerfile"
  },
  "extensions": [
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode",
    "visualstudioexptteam.vscodeintellicode",
    "amazonwebservices.aws-toolkit-vscode",
    "github.copilot",
    "firsttris.vscode-jest-runner"
  ],
  "postCreateCommand": "npm install && npm run lerna-bootstrap && npm run lerna-test"
}

@michaelbrewer
Copy link
Contributor

I would not mind adding a PR for gitpod / CodeSpaces support. To help onboard contributors.

@saragerion
Copy link
Contributor Author

Just FYI, I created a separate ticket for the scope of "local development" (new contributors onboarding)

#426

@michaelbrewer
Copy link
Contributor

There is still typos, python references and aws cdk project references.

@michaelbrewer
Copy link
Contributor

michaelbrewer commented Jan 25, 2022

Example of referencing tests/e2e which does not exist in the repo (maybe this references within the packages/logger/tests/unit ?)

Screen Shot 2022-01-25 at 10 23 54 AM

Python references, for which there still needs to be a Typescript version of this.

Screen Shot 2022-01-25 at 10 32 53 AM

@ghost ghost mentioned this issue Mar 3, 2022
13 tasks
@ijemmy
Copy link
Contributor

ijemmy commented Mar 18, 2022

Most of the items are addressed (Python references are also removed). With @AWSDB PR, we're confident for Production Release with this doc.

Any other future improvement on CONTRIBUTING.md will be created as a seperated issue.

@ijemmy ijemmy closed this as completed Mar 18, 2022
@github-actions
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@dreamorosi dreamorosi removed the triage This item has not been triaged by a maintainer, please wait label Oct 19, 2022
@dreamorosi dreamorosi changed the title all: improve the "Contributing" section documentation Docs: improve the "Contributing" section documentation Nov 14, 2022
@dreamorosi dreamorosi added internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) completed This item is complete and has been merged/shipped labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped documentation Improvements or additions to documentation internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
Projects
None yet
Development

No branches or pull requests

7 participants