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] Update and rework CONTRIBUTING.md #3859

Merged
merged 20 commits into from Sep 17, 2018
Merged

[Docs] Update and rework CONTRIBUTING.md #3859

merged 20 commits into from Sep 17, 2018

Conversation

johnsaigle
Copy link
Contributor

This pull request modifies the CONTRIBUTING document.

Changes made:

  • Update the base branch practices
  • Add code formatting and branch label colours
  • Re-organize information flow
  • Skew tone toward on-boarding new devs

@johnsaigle johnsaigle added the Documentation PR or issue introducing/requiring modifications to the code documentation (test plans, wikis, docs) label Jul 31, 2018
@johnsaigle johnsaigle added this to the 20.1.0 milestone Jul 31, 2018
@ridz1208
Copy link
Collaborator

ridz1208 commented Aug 1, 2018

@zaliqarosli @um4r12 @jesscall please read and see if you have comments

CONTRIBUTING.md Outdated
include a patch for existing projects to apply to get your changes of which
should be placed in the corresponding SQL/VERSIONNUMBER/ directory.
* Include a test for any new module in the modules/MODULENAME/test/
should be placed in the corresponding `SQL/VERSIONNUMBER/` directory.
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is now SQL/New_patches/

Copy link
Collaborator

Choose a reason for hiding this comment

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

and clean-up or optional patches in SQL/Cleanup_patches/

CONTRIBUTING.md Outdated
* Add your new automated tests to TravisCI in the `.travis.yml`.
* Make sure you run PHP codesniffer using the standards file in
`docs/LorisCS.xml` before sending any pull request, otherwise the automated tests will fail.
* Try and make all changes backwards-compatible with existing installations. If you must change something
Copy link
Collaborator

Choose a reason for hiding this comment

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

not necessarily non-backwards compatible only. anything that might affect the data and/or code of the project should be flagged (try to formulate that in good english)

CONTRIBUTING.md Outdated

* You can browse some of our public [Issues](https://github.com/aces/Loris/issues)
* You can browse some of our public [Issues](https://github.com/aces/Loris/issues). Issues tagged with (https://via.placeholder.com/15/0e8a16/000000?text=+) **Beginner Friendly** are good ones to tackle if you are new to LORIS development.
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing the ![] after tagged with

John Saigle added 3 commits August 1, 2018 11:39
Correct SQL patch directory information.
Add formatting for label.
Clarify use of Cavest label.
CONTRIBUTING.md Outdated
#### Bug Fixes
- Branch: `bugfix`
- Label: ![](https://via.placeholder.com/15/cc9966/000000?text=+) **[branch] bugfix**
- Content: Generally these changes do not require SQL scripts and are concise with the sole objective to correct on single problem in the code.
Copy link
Contributor

Choose a reason for hiding this comment

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

minor typo - should read 'one single problem'

@jesscall
Copy link
Contributor

jesscall commented Aug 1, 2018

I think this is a nice initiative!
For the most part it is informative and provides all the links needed to get started.
I think you achieved a friendly / inviting tone.
👍

(Not sure what the etiquette is for documentation, is this considered 'Passed Manual Tests' ?)

@johnsaigle
Copy link
Contributor Author

Thanks @jesscall! Giving the PR an approval is fine for Documentation. 👍

jesscall
jesscall previously approved these changes Aug 1, 2018
Copy link
Collaborator

@ridz1208 ridz1208 left a comment

Choose a reason for hiding this comment

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

last request

CONTRIBUTING.md Outdated
@@ -3,45 +3,55 @@
We'd love to have you contribute to Loris. The first thing you should do
before contributing is probably sign up for the [LORIS developers' mailing list](http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev).

Your next step before issuing a pull request is to review our [Coding Standards](https://github.com/aces/Loris/blob/minor/docs/CodingStandards). If you are doing front-end development you should also check out our [React guidelines](https://github.com/johnsaigle/Loris/blob/180631-Contributing/LORIS_react.README.md).
Copy link
Collaborator

Choose a reason for hiding this comment

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

@johnsaigle I think github supports relative links and in this case you would want to link to the coding standards on your own branch, not minor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops accident

 now pointing to previously merged markdownified file
@ridz1208 ridz1208 dismissed their stale review August 2, 2018 04:48

chnages made

Copy link
Contributor

@zaliqarosli zaliqarosli left a comment

Choose a reason for hiding this comment

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

everything else looks good! 👍

CONTRIBUTING.md Outdated
@@ -3,45 +3,55 @@
We'd love to have you contribute to Loris. The first thing you should do
before contributing is probably sign up for the [LORIS developers' mailing list](http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev).

Your next step before issuing a pull request is to review our [Coding Standards](./docs/CodingStandards.md). If you are doing front-end development you should also check out our [React guidelines](https://github.com/johnsaigle/Loris/blob/180631-Contributing/LORIS_react.README.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. the current CodingStandards file doesn't have .md extension so link doesn't work
  2. How does the React guidelines link work once merged? Atm, it has your name in it and so, is off your fork

Copy link
Collaborator

Choose a reason for hiding this comment

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

@zaliqarosli

  1. the CodingStandards.md will work once merged dont worry about that
  2. the react guidlines needs to pint to the loris one, that should be changed

Copy link
Collaborator

Choose a reason for hiding this comment

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

done

CONTRIBUTING.md Outdated
#### Minor Changes and Small Features
- Branch: `minor`
- Label: ![](https://via.placeholder.com/15/996633/000000?text=+) **[branch] minor**
- Content: Features affecting self-contained components such as modules. Additions to Libraries, API or modules that do not change and function signatures.
Copy link
Contributor

Choose a reason for hiding this comment

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

is function a noun or a verb here? should it maybe be "..that do not change, and function signatures" so it's read the right way?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@johnsaigle all yours !!
I dont talk england very best

Copy link
Contributor

Choose a reason for hiding this comment

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

modules that do not change and function signatures. maybe ... do not change functionality or function signatures ...

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's just a typo for "do not change any function signatures"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just copied this from the Wiki -- agreed it could be reworded. Will do so this afternoon.

Copy link
Contributor

Choose a reason for hiding this comment

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

i think dave is right

CONTRIBUTING.md Outdated
## Some Things To Keep In Mind

* If your changes require any table modifications:
1. Modify the `SQL/0000*.sql` file(s) with your changes. These patches are applied during the LORIS install.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add "review our [SQL Standard]https://github.com/aces/Loris/blob/minor/docs/SQLModelingStandard.md" as item 1

Copy link
Contributor

Choose a reason for hiding this comment

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

^ i agree!

CONTRIBUTING.md Outdated

#### Bug Fixes
- Branch: `bugfix`
- Label: ![](https://via.placeholder.com/15/cc9966/000000?text=+) **[branch] bugfix**
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you look at the rendered Markdown it displays a little colourful box the same colour as our labels.

I just copied this part from the Wiki cause it looks good. Not sure what this site it for.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I had added these to the wiki, thats the only way I found to put colourful boxes to match the label colours

CONTRIBUTING.md Outdated

* You can browse some of our public [Issues](https://github.com/aces/Loris/issues)
* Add your new automated tests to TravisCI in the `.travis.yml`.
* Make sure you run PHP codesniffer using the standards file in
Copy link
Contributor

Choose a reason for hiding this comment

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

should it be changed to incorporate the command to run phpcs? eg.

Make sure you run PHP codesniffer using the standards file in docs/LorisCS.xml by running vendor/bin/phpcs --standard=docs/LorisCS.xml <path_to_changed_files> before sending any pull request, otherwise the automated tests will fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

or atleast a reference to

with the command `vendor/bin/phpcs --standard=docs/LorisCS.xml [file]` for any

@johnsaigle
Copy link
Contributor Author

@zaliqarosli @PapillonMcGill @um4r12 CHanges have been addressed. Please re-review when you can.

um4r12
um4r12 previously approved these changes Aug 6, 2018
CONTRIBUTING.md Outdated
@@ -39,8 +39,7 @@ For more information about making well-organized pull requests, please read our
* Include a test for any new module in the `modules/MODULENAME/test/`
directory. You can look at other modules for examples of how to write tests.
* Add your new automated tests to TravisCI in the `.travis.yml`.
* Make sure you run PHP codesniffer using the standards file in
`docs/LorisCS.xml` before sending any pull request, otherwise the automated tests will fail.
* Make sure you run PHP codesniffer using the standards file in docs/LorisCS.xml by running `vendor/bin/phpcs --standard=docs/LorisCS.xml <path_to_changed_files>` before sending any pull request, otherwise the automated tests will fail.
Copy link
Contributor

Choose a reason for hiding this comment

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

docs/LorisCS.xml should still have those quotes around it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so because the quotes in this edit refer to a bash command to run so it would sort of make it less clear.

zaliqarosli
zaliqarosli previously approved these changes Aug 6, 2018
@zaliqarosli zaliqarosli added the Passed Manual Tests PR has undergone proper testing by at least one peer label Aug 13, 2018
@driusan driusan added the Meta PR does something that organizes, upgrades, or manages the functionality of the codebase label Aug 14, 2018
Copy link
Collaborator

@driusan driusan left a comment

Choose a reason for hiding this comment

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

The content looks good, but:

  1. Remove the unnecessary links to a third party service
  2. GitHub is spelled wrong (it should have a capital H)
  3. Line lengths are unreadably long. (piping paragraphs through the unix fmt tool can fix that.)

@johnsaigle
Copy link
Contributor Author

@driusan I addressed 1. and 2. but the links render into nice coloured boxes on the front-end which makes for a very nice reading experience on the GitHub UI. I got them from @ridz1208 in the Wiki.

CONTRIBUTING.md Outdated
* If your changes require any table modifications:
1. Review our [SQL standard](./docs/SQLModelingStandard.md).
2. Modify the `SQL/0000*.sql` file(s) with your changes. These patches
are applied during the LORIS install. 3. Include a patch to be
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. and 4. should be at the same distance from beginning of line as 1. and 2. for rendering.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PapillonMcGill This is actually how it's intended to appear. 1. and 2. are sub instructions underneath the first * as they relate specifically to table modifications.

CONTRIBUTING.md Outdated
* Make sure you run PHP codesniffer using the standards file in
docs/LorisCS.xml by running `vendor/bin/phpcs --standard=docs/LorisCS.xml
<path_to_changed_files>` before sending any pull request,
otherwise the automated tests will fail. * Try and make all changes
Copy link
Contributor

Choose a reason for hiding this comment

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

* (2) should be at the beginning of the line for rendering.

Copy link
Contributor

Choose a reason for hiding this comment

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

@johnsaigle This is the same rendering problem as higher.

PapillonMcGill
PapillonMcGill previously approved these changes Aug 22, 2018
Copy link
Collaborator

@cmadjar cmadjar left a comment

Choose a reason for hiding this comment

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

@johnsaigle Looks great!! Just a few minor typo to correct.

CONTRIBUTING.md Outdated

## Pull Request Title and Description

To make it easier for reiewers to locate pull requests with wich they have
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo in reviewers. (missing v)

Copy link
Collaborator

Choose a reason for hiding this comment

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

typo in which too. (missing h)

CONTRIBUTING.md Outdated
mailing list](http://www.bic.mni.mcgill.ca/mailman/listinfo/loris-dev).

Your next step before issuing a pull request is to review our
[Coding Standards](./docs/CodingStandards.md). If you are doing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Coding standards link appears to be broken.

@johnsaigle
Copy link
Contributor Author

@cmadjar Thanks! All fixed now

zaliqarosli
zaliqarosli previously approved these changes Aug 27, 2018
cmadjar
cmadjar previously approved these changes Aug 27, 2018
Copy link
Collaborator

@cmadjar cmadjar left a comment

Choose a reason for hiding this comment

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

LGTM

## Some Things To Keep In Mind

* If your changes require any table modifications:
1. Review our [SQL standard](./docs/SQLModelingStandard.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

Should "SQL standard" be "SQL standards"

If it is the case, the file should also be renamed. Who created that file? Oh wait, I created that file :-(.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think either one is fine. :)

@johnsaigle johnsaigle dismissed stale reviews from cmadjar and zaliqarosli via 544834c September 11, 2018 16:32
CONTRIBUTING.md Outdated
- Branch: `major` - Label:
![](https://via.placeholder.com/15/4d3319/000000?text=+) **[branch]
major** - Content: Any change modifying a function signature in a
- Branch: `major` - Label: **[branch major**
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing a close bracket here

@johnsaigle
Copy link
Contributor Author

@driusan Could you dismiss your old review if you're satisfied with the changes?

@driusan driusan merged commit 03eea5c into aces:bugfix Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation PR or issue introducing/requiring modifications to the code documentation (test plans, wikis, docs) Meta PR does something that organizes, upgrades, or manages the functionality of the codebase Passed Manual Tests PR has undergone proper testing by at least one peer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants