| | 128 | |
|---|
| | 129 | * The code required to fix a problem or add a feature is an essential part |
|---|
| | 130 | of a patch, but it is not the only part. A good patch should also include |
|---|
| | 131 | a regression test to validate the behavior that has been fixed (and prevent |
|---|
| | 132 | the problem from arising again). |
|---|
| | 133 | |
|---|
| | 134 | * If the code associated with a patch adds a new feature, or modifies behavior |
|---|
| | 135 | of an existing feature, the patch should also contain documentation. |
|---|
| | 136 | |
|---|
| | 137 | Non-trivial patches |
|---|
| | 138 | ------------------- |
|---|
| | 139 | |
|---|
| | 140 | If a patch is non-trivial, there should be some evidence that there |
|---|
| | 141 | has been discussion on `django-developers`_ of any alternatives. |
|---|
| | 142 | Note that 'non-trivial' doesn't just mean 'only affects 1-2 lines |
|---|
| | 143 | of code' - it also includes the fact that the lines that are being |
|---|
| | 144 | modified don't have a significant follow-on effect on the overall |
|---|
| | 145 | design of Django. If in doubt, ask. |
|---|
| | 146 | |
|---|
| | 147 | Ticket triage |
|---|
| | 148 | ============= |
|---|
| | 149 | |
|---|
| | 150 | Unfortunately, not all bug reports in the `ticket tracker`_ provide all |
|---|
| | 151 | the `required details`_. Other tickets have patches, but those patches |
|---|
| | 152 | do not meet all the requirements of a `good patch`_. |
|---|
| | 153 | |
|---|
| | 154 | One way to help out is to triage bugs that have been reported by other users. |
|---|
| | 155 | Pick an open ticket that is missing some details, and try to replicate the |
|---|
| | 156 | problem. Fill in the missing pieces of the report. If the ticket doesn't have |
|---|
| | 157 | a patch, create one. |
|---|
| | 158 | |
|---|
| | 159 | Once you have completed all the missing details on the ticket and you have a |
|---|
| | 160 | patch with all the required features, mail `django-developers`_. Indicate that |
|---|
| | 161 | you have triaged a ticket, and recommend a course of action for dealing with |
|---|
| | 162 | that ticket. |
|---|
| | 163 | |
|---|
| | 164 | At first, this may require you to be persistent - if you find that your triaged |
|---|
| | 165 | ticket still isn't getting attention, occasional polite requests for eyeballs to |
|---|
| | 166 | look at your ticket may be necessary. However, as you earn a reputation for |
|---|
| | 167 | quality triage work, you should find that it is easier to get the developers |
|---|
| | 168 | attention. |
|---|
| | 169 | |
|---|
| | 170 | .. _required details: `Reporting bugs`_ |
|---|
| | 171 | .. _good patch: `Patch style`_ |
|---|