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
Conversation
@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. |
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.
this is now SQL/New_patches/
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.
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 |
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.
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. |
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.
missing the ![]
after tagged with
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. |
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.
minor typo - should read 'one single problem'
I think this is a nice initiative! (Not sure what the etiquette is for documentation, is this considered 'Passed Manual Tests' ?) |
Thanks @jesscall! Giving the PR an approval is fine for Documentation. 👍 |
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.
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). |
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.
@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
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.
Oops accident
now pointing to previously merged markdownified file
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.
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). |
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.
- the current CodingStandards file doesn't have .md extension so link doesn't work
- How does the React guidelines link work once merged? Atm, it has your name in it and so, is off your fork
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.
- the
CodingStandards.md
will work once merged dont worry about that - the react guidlines needs to pint to the loris one, that should be changed
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.
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. |
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.
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?
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.
@johnsaigle all yours !!
I dont talk england very best
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.
modules that do not change and function signatures.
maybe ... do not change functionality or function signatures ...
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 think it's just a typo for "do not change any function signatures"?
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 just copied this from the Wiki -- agreed it could be reworded. Will do so this afternoon.
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 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. |
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 would add "review our [SQL Standard]https://github.com/aces/Loris/blob/minor/docs/SQLModelingStandard.md" as item 1
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 agree!
CONTRIBUTING.md
Outdated
|
||
#### Bug Fixes | ||
- Branch: `bugfix` | ||
- Label: ![](https://via.placeholder.com/15/cc9966/000000?text=+) **[branch] bugfix** |
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.
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.
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.
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 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 |
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.
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 runningvendor/bin/phpcs --standard=docs/LorisCS.xml <path_to_changed_files>
before sending any pull request, otherwise the automated tests will fail.
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.
or atleast a reference to
Line 21 in 12135e9
with the command `vendor/bin/phpcs --standard=docs/LorisCS.xml [file]` for any |
@zaliqarosli @PapillonMcGill @um4r12 CHanges have been addressed. Please re-review when you can. |
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. |
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.
docs/LorisCS.xml should still have those quotes around it?
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 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.
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.
The content looks good, but:
- Remove the unnecessary links to a third party service
- GitHub is spelled wrong (it should have a capital H)
- Line lengths are unreadably long. (piping paragraphs through the unix
fmt
tool can fix that.)
1b9256e
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 |
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.
- and 4. should be at the same distance from beginning of line as 1. and 2. for rendering.
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.
@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 |
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.
* (2) should be at the beginning of the line for rendering.
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.
@johnsaigle This is the same rendering problem as higher.
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.
@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 |
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.
typo in reviewers
. (missing v
)
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.
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 |
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.
Coding standards link appears to be broken.
@cmadjar Thanks! All fixed now |
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.
LGTM
## Some Things To Keep In Mind | ||
|
||
* If your changes require any table modifications: | ||
1. Review our [SQL standard](./docs/SQLModelingStandard.md). |
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.
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 :-(.
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 think either one is fine. :)
544834c
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** |
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.
missing a close bracket here
@driusan Could you dismiss your old review if you're satisfied with the changes? |
This pull request modifies the CONTRIBUTING document.
Changes made: