-
Notifications
You must be signed in to change notification settings - Fork 197
CONTRIBUTING.md instructions #707
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Under Development, it says to export the function to
test/index.js. I think you meanttest/plots/index.js -
Are there guidelines for documenting changes (like a README or in some cases a published Observable notebook with a live example?) as part of submitting a PR?
|
Thanks @ananya-roy -- I've fixed the typo, and added a line about updating the |
mbostock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to reiterate some earlier feedback that was marked as resolved but was not addressed (at least, not explicitly).
The primary audience of CONTRIBUTING.md is the community (i.e. the public), not other Observable employees that can push directly to this repository. As such the recommended workflow for development, as @Fil pointed out, must be to fork this repository on GitHub rather than to clone this repository. In addition the {username}/{feature} branch naming convention need not apply; that is only needed because we, at Observable, by convention, share this repository.
|
Thanks for clarifying // resurfacing -- I've updated the Set Up instructions for the general public. I also switched to the default https code that GitHub has users copy (in case some doesn't have SSH keys set up). Happy to switch that back if desired. |
CONTRIBUTING.md
Outdated
| ``` | ||
|
|
||
| ## Submitting a pull request | ||
| Once you have completed your feature and confirmed that all test have passed using `yarn test`, you should push your changes up to GitHub and submit a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We mention pull requests up above (I suggest we move this GitHub link above), so maybe this section could instead be more specific about our expectations for what makes a good pull request, or a good feature? Like, please include a motivating example, or why you think this feature will be useful. Or, please consider filing an issue, or checking for existing issues, before submitting a pull request, in case someone else has already thought about this topic. Or perhaps to start, this section could instead be called ## Documentation, and delete this sentence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched the last section to Documentation and moved the Observable instructions there.
CONTRIBUTING.md
Outdated
| If you’d like to create a new test plot as part of your development, you need to: | ||
|
|
||
| 1. Create a new `.js` file in `test/plots`, e.g., `test/plots/new-example.js` (an easy start is duplicating an existing example). | ||
| 2. Export the function from your `new-example.js` file in `test/plots/index.js`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn’t this already covered below in the testing section, starting here?
To add a new snapshot test, create a new JavaScript file in the
test/plotsfolder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point -- as someone less familiar with this structure of development, I wouldn't think to look in the test section for information about how to create a new example (so I've left a sentence directing them there).
|
I still want to make a bunch of edits, but for the sake of expediency, I’ll just make them directly rather than going more rounds on this review. Thank you for the contribution. 🙏 |
|
Thanks so much, @mbostock -- I'm hopeful that this will make it easier for more people to contribute to Plot (saving time in the long run) |
|
Apologies for the delay on this. I haven’t forgotten and will get to it soon. |
244af02 to
8abd360
Compare
Co-authored-by: Philippe Rivière <[email protected]> Co-authored-by: Mike Bostock <[email protected]>
8abd360 to
a6cdcb8
Compare
fb11a8f to
c49de4b
Compare
This PR updates the instructions in the
CONTRIBUTING.mdfile to more explicitly outline steps involved. The intention is to get people with less development experience empowered to make changes more easily. @zanarmstrong @ananya-roy I'd love to hear your thoughts on this -- if you have time to walk through the updated instructions, that would be a very helpful assessment!