forked from biswaz/rescuekerala
-
Notifications
You must be signed in to change notification settings - Fork 575
Contribution Guidelines
Aboobacker MK edited this page Aug 20, 2018
·
7 revisions
Thank you for your interest in contributing to rescuekerala.
- Before you report the bug, ensure that it is not already submitted.
- If there is an already reported issue, try to add more details to it
- For each bug, file a separate issue here
- If you have the exact precise step great - you are filing a very useful issue.
- If you are able to reproduce occasionally, mention that and provide as much information as possible.
- Also mention the browser, version, OS, etc.
- Adding screenshots, GIFs, etc. would make it easier to reproduce.
- If you are not able to reproduce any issues locally, mention in #testing in slack
To check if the PR submitted fixes the issue
- Checkout the Pull Request you would like to test by
git fetch origin pull/ID/head:BRANCHNAME` git checkout BRANCHNAME
Example
git fetch origin pull/406/head:jaseem git checkout jaseem1
3. ## Testing Pull Requests
-
Checkout the Pull Request you would like to test by
git fetch origin pull/ID/head:BRANCHNAME` git checkout BRANCHNAME
-
Example
git fetch origin pull/406/head:jaseem git checkout jaseem1
-
Run Migration if there are any changes in schema.
-
Also, check if there is any change is env.sample file.If there is an update the .env
- Ask the #testing channel for the latest dump
- Create the database
- Follow the instructions
CREATE ROLE keralarescue ALTER USER keralarescue with SUPERUSER CREATEDB` ALTER USER keralarescue with password 'password'` Change .env `B_DATABASE_URL="postgres://keralarescue:password@localhost/rescuekerala
- psql -U postgres rescuekerala < rescuekerala_20180818.sql
If your code changes anything in models.py, you might need to make changes in the database schema, or other constraints. To create migrations files, run python3 manage.py makemigrations --settings=floodrelief.settings
after making your changes. Also, make sure to add these files in the commit.