triaging-tickets.txt 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. ================
  2. Triaging tickets
  3. ================
  4. Django uses Trac_ for managing the work on the code base. Trac is a
  5. community-tended garden of the bugs people have found and the features people
  6. would like to see added. As in any garden, sometimes there are weeds to be
  7. pulled and sometimes there are flowers and vegetables that need picking. We need
  8. your help to sort out one from the other, and in the end we all benefit
  9. together.
  10. Like all gardens, we can aspire to perfection but in reality there's no such
  11. thing. Even in the most pristine garden there are still snails and insects.
  12. In a community garden there are also helpful people who -- with the best of
  13. intentions -- fertilize the weeds and poison the roses. It's the job of the
  14. community as a whole to self-manage, keep the problems to a minimum, and
  15. educate those coming into the community so that they can become valuable
  16. contributing members.
  17. Similarly, while we aim for Trac to be a perfect representation of the state
  18. of Django's progress, we acknowledge that this simply will not happen. By
  19. distributing the load of Trac maintenance to the community, we accept that
  20. there will be mistakes. Trac is "mostly accurate", and we give allowances for
  21. the fact that sometimes it will be wrong. That's okay. We're perfectionists
  22. with deadlines.
  23. We rely on the community to keep participating, keep tickets as accurate as
  24. possible, and raise issues for discussion on our mailing lists when there is
  25. confusion or disagreement.
  26. Django is a community project, and every contribution helps. We can't do this
  27. without YOU!
  28. Triage workflow
  29. ---------------
  30. Unfortunately, not all bug reports and feature requests in the ticket tracker
  31. provide all the :doc:`required details<bugs-and-features>`. A number of
  32. tickets have patches, but those patches don't meet all the requirements of a
  33. :ref:`good patch<patch-style>`.
  34. One way to help out is to *triage* tickets that have been created by other
  35. users. The core team and several community members work on this regularly, but
  36. more help is always appreciated.
  37. Most of the workflow is based around the concept of a ticket's
  38. :ref:`triage stages <triage-stages>`. Each stage describes where in its
  39. lifetime a given ticket is at any time. Along with a handful of flags, this
  40. attribute easily tells us what and who each ticket is waiting on.
  41. Since a picture is worth a thousand words, let's start there:
  42. .. image:: /internals/_images/djangotickets.png
  43. :height: 451
  44. :width: 590
  45. :alt: Django's ticket triage workflow
  46. We've got two roles in this diagram:
  47. * :doc:`Committers</internals/committers>` (also called core developers):
  48. people with commit access who are responsible for making the big
  49. decisions, writing large portions of the code and integrating the
  50. contributions of the community.
  51. * Ticket triagers: anyone in the Django community who chooses to
  52. become involved in Django's development process. Our Trac installation
  53. is intentionally left open to the public, and anyone can triage tickets.
  54. Django is a community project, and we encourage :ref:`triage by the
  55. community<how-can-i-help-with-triaging>`.
  56. By way of example, here we see the lifecycle of an average ticket:
  57. * Alice creates a ticket, and uploads an incomplete patch (no tests, incorrect
  58. implementation).
  59. * Bob reviews the patch, marks it "Accepted", "needs tests", and "patch needs
  60. improvement", and leaves a comment telling Alice how the patch could be
  61. improved.
  62. * Alice updates the patch, adding tests (but not changing the
  63. implementation). She removes the two flags.
  64. * Charlie reviews the patch and resets the "patch needs improvement" flag with
  65. another comment about improving the implementation.
  66. * Alice updates the patch, fixing the implementation. She removes the "patch
  67. needs improvement" flag.
  68. * Daisy reviews the patch, and marks it RFC.
  69. * Jacob, a core developer, reviews the RFC patch, applies it to his checkout,
  70. and commits it.
  71. Some tickets require much less feedback than this, but then again some tickets
  72. require much much more.
  73. .. _triage-stages:
  74. Triage stages
  75. -------------
  76. Below we describe in more detail the various stages that a ticket may flow
  77. through during its lifetime.
  78. Unreviewed
  79. ~~~~~~~~~~
  80. The ticket has not been reviewed by anyone who felt qualified to make a
  81. judgment about whether the ticket contained a valid issue, a viable feature,
  82. or ought to be closed for any of the various reasons.
  83. Accepted
  84. ~~~~~~~~
  85. The big grey area! The absolute meaning of "accepted" is that the issue
  86. described in the ticket is valid and is in some stage of being worked on.
  87. Beyond that there are several considerations:
  88. * **Accepted + No Flags**
  89. The ticket is valid, but no one has submitted a patch for it yet. Often this
  90. means you could safely start writing a patch for it.
  91. * **Accepted + Has Patch**
  92. The ticket is waiting for people to review the supplied patch. This means
  93. downloading the patch and trying it out, verifying that it contains tests
  94. and docs, running the test suite with the included patch, and leaving
  95. feedback on the ticket.
  96. * **Accepted + Has Patch + (any other flag)**
  97. This means the ticket has been reviewed, and has been found to need further
  98. work. "Needs tests" and "Needs documentation" are self-explanatory. "Patch
  99. needs improvement" will generally be accompanied by a comment on the ticket
  100. explaining what is needed to improve the code.
  101. Design Decision Needed
  102. ~~~~~~~~~~~~~~~~~~~~~~
  103. This stage is for issues which may be contentious, may be backwards
  104. incompatible, or otherwise involve high-level design decisions. These issues
  105. should be discussed either in the ticket comments or on `django-developers`_.
  106. If a ticket has been marked as "DDN", decisions are generally eventually
  107. made by the core committers, however that is not a requirement. See the
  108. :ref:`New contributors' FAQ<new-contributors-faq>` for "My ticket has been in
  109. DDN forever! What should I do?"
  110. This stage will often be used for feature requests. It can also be used for
  111. issues that *might* be bugs, depending on opinion or interpretation. Obvious
  112. bugs (such as crashes, incorrect query results, or non-compliance with a
  113. standard) skip this stage and move straight to "Accepted".
  114. Ready For Checkin
  115. ~~~~~~~~~~~~~~~~~
  116. The ticket was reviewed by any member of the community other than the person
  117. who supplied the patch and found to meet all the requirements for a
  118. commit-ready patch. A core committer now needs to give the patch a final
  119. review prior to being committed. See the
  120. :ref:`New contributors' FAQ<new-contributors-faq>` for "My ticket has been in
  121. RFC forever! What should I do?"
  122. Someday/Maybe
  123. ~~~~~~~~~~~~~
  124. Generally only used for vague/high-level features or design ideas. These
  125. tickets are uncommon and overall less useful since they don't describe
  126. concrete actionable issues. They are enhancement requests that we might
  127. consider adding someday to the framework if an excellent patch is submitted.
  128. These tickets are not a high priority.
  129. Fixed on a branch
  130. ~~~~~~~~~~~~~~~~~
  131. Used to indicate that a ticket is resolved as part of a major body of work
  132. that will eventually be merged to trunk. Tickets in this stage generally
  133. don't need further work. This may happen in the case of major
  134. features/refactors in each release cycle, or as part of the annual Google
  135. Summer of Code efforts.
  136. Other triage attributes
  137. -----------------------
  138. A number of flags, appearing as checkboxes in Trac, can be set on a ticket:
  139. * Has patch
  140. This means the ticket has an associated
  141. :doc:`patch<writing-code/submitting-patches>`. These will be reviewed
  142. to see if the patch is "good".
  143. * Needs documentation:
  144. This flag is used for tickets with patches that need associated
  145. documentation. Complete documentation of features is a prerequisite
  146. before we can check them into the codebase.
  147. * Needs tests
  148. This flags the patch as needing associated unit tests. Again, this
  149. is a required part of a valid patch.
  150. * Patch needs improvement
  151. This flag means that although the ticket *has* a patch, it's not quite
  152. ready for checkin. This could mean the patch no longer applies
  153. cleanly, there is a flaw in the implementation, or that the code
  154. doesn't meet our standards.
  155. * Easy pickings
  156. Tickets that would require small, easy, patches.
  157. Tickets should be categorized by *type* between:
  158. * New Feature
  159. For adding something new.
  160. * Bug
  161. For when an existing thing is broken or not behaving as expected.
  162. * Cleanup/optimization
  163. For when nothing is broken but something could be made cleaner,
  164. better, faster, stronger.
  165. Tickets should also be classified into *components* indicating which area of
  166. the Django codebase they belong to. This makes tickets better organized and
  167. easier to find.
  168. The *severity* attribute is used to identify blockers, that is, issues which
  169. should get fixed before releasing the next version of Django. Typically those
  170. issues are bugs causing regressions from earlier versions or potentially
  171. causing severe data losses. This attribute is quite rarely used and the vast
  172. majority of tickets have a severity of "Normal".
  173. Finally, it is possible to use the *version* attribute to indicate in which
  174. version the reported bug was identified.
  175. .. _closing-tickets:
  176. Closing Tickets
  177. ---------------
  178. When a ticket has completed its useful lifecycle, it's time for it to be
  179. closed. Closing a ticket is a big responsibility, though. You have to be sure
  180. that the issue is really resolved, and you need to keep in mind that the
  181. reporter of the ticket may not be happy to have their ticket closed (unless
  182. it's fixed, of course). If you're not certain about closing a ticket, just
  183. leave a comment with your thoughts instead.
  184. If you do close a ticket, you should always make sure of the following:
  185. * Be certain that the issue is resolved.
  186. * Leave a comment explaining the decision to close the ticket.
  187. * If there is a way they can improve the ticket to reopen it, let them know.
  188. * If the ticket is a duplicate, reference the original ticket. Also
  189. cross-reference the closed ticket by leaving a comment in the original one
  190. -- this allows to access more related information about the reported bug
  191. or requested feature.
  192. * **Be polite.** No one likes having their ticket closed. It can be
  193. frustrating or even discouraging. The best way to avoid turning people
  194. off from contributing to Django is to be polite and friendly and to offer
  195. suggestions for how they could improve this ticket and other tickets in
  196. the future.
  197. A ticket can be resolved in a number of ways:
  198. * fixed
  199. Used by the core developers once a patch has been rolled into
  200. Django and the issue is fixed.
  201. * invalid
  202. Used if the ticket is found to be incorrect. This means that the
  203. issue in the ticket is actually the result of a user error, or
  204. describes a problem with something other than Django, or isn't
  205. a bug report or feature request at all (for example, some new users
  206. submit support queries as tickets).
  207. * wontfix
  208. Used when a core developer decides that this request is not
  209. appropriate for consideration in Django. This is usually chosen after
  210. discussion in the `django-developers`_ mailing list. Feel free to
  211. start or join in discussions of "wontfix" tickets on the
  212. django-developers_ mailing list, but please do not reopen tickets
  213. closed as "wontfix" by a :doc:`core developer</internals/committers>`.
  214. * duplicate
  215. Used when another ticket covers the same issue. By closing duplicate
  216. tickets, we keep all the discussion in one place, which helps
  217. everyone.
  218. * worksforme
  219. Used when the ticket doesn't contain enough detail to replicate
  220. the original bug.
  221. * needsinfo
  222. Used when the ticket does not contain enough information to replicate
  223. the reported issue but is potentially still valid. The ticket
  224. should be reopened when more information is supplied.
  225. If you believe that the ticket was closed in error -- because you're
  226. still having the issue, or it's popped up somewhere else, or the triagers have
  227. made a mistake -- please reopen the ticket and provide further information.
  228. Again, please do not reopen tickets that have been marked as "wontfix" by core
  229. developers and bring the issue to django-developers_ instead.
  230. .. _how-can-i-help-with-triaging:
  231. How can I help with triaging?
  232. -----------------------------
  233. Although the core developers make the big decisions in the ticket triage
  234. process, there's a lot that general community members can do to help the
  235. triage process. Really, **ANYONE** can help.
  236. Start by `creating an account on Trac`_. If you have an account but have
  237. forgotten your password, you can reset it using the `password reset page`_.
  238. Then, you can help out by:
  239. * Closing "Unreviewed" tickets as "invalid", "worksforme" or "duplicate."
  240. * Promoting "Unreviewed" tickets to "Design decision needed" if a design
  241. decision needs to be made, or "Accepted" in case of obvious bugs or
  242. sensible, clearly defined, feature requests.
  243. * Correcting the "Needs tests", "Needs documentation", or "Has patch"
  244. flags for tickets where they are incorrectly set.
  245. * Setting the "`Easy pickings`_" flag for tickets that are small and
  246. relatively straightforward.
  247. * Checking that old tickets are still valid. If a ticket hasn't seen
  248. any activity in a long time, it's possible that the problem has been
  249. fixed but the ticket hasn't yet been closed.
  250. * Contacting the owners of tickets that have been claimed but have not
  251. seen any recent activity. If the owner doesn't respond after a week
  252. or so, remove the owner's claim on the ticket.
  253. * Identifying trends and themes in the tickets. If there a lot of bug
  254. reports about a particular part of Django, it may indicate we should
  255. consider refactoring that part of the code. If a trend is emerging,
  256. you should raise it for discussion (referencing the relevant tickets)
  257. on `django-developers`_.
  258. * Set the *type* of tickets that are still uncategorized.
  259. * Verify if patches submitted by other users are correct. If they do and
  260. also contain appropriate documentation and tests then move them to the
  261. "Ready for Checkin" stage. If they don't then leave a comment to explain
  262. why and set the corresponding flags ("Patch needs improvement",
  263. "Needs tests" etc.).
  264. .. note::
  265. The `Reports page`_ contains links to many useful Trac queries, including
  266. several that are useful for triaging tickets and reviewing patches as
  267. suggested above.
  268. You can also find more :doc:`new-contributors`.
  269. .. _Reports page: http://code.djangoproject.com/wiki/Reports
  270. However, we do ask the following of all general community members working in
  271. the ticket database:
  272. * Please **don't** close tickets as "wontfix." The core developers will
  273. make the final determination of the fate of a ticket, usually after
  274. consultation with the community.
  275. * Please **don't** promote your own tickets to "Ready for checkin". You
  276. may mark other people's tickets which you've reviewed as "Ready for
  277. checkin", but you should get at minimum one other community member to
  278. review a patch that you submit.
  279. * Please **don't** reverse a decision that has been made by a :doc:`core
  280. developer</internals/committers>`. If you disagree with a decision that
  281. has been made, please post a message to `django-developers`_.
  282. * If you're unsure if you should be making a change, don't make the
  283. change but instead leave a comment with your concerns on the ticket,
  284. or post a message to `django-developers`_. It's okay to be unsure,
  285. but your input is still valuable.
  286. .. _Trac: http://code.djangoproject.com/
  287. .. _django-developers: http://groups.google.com/group/django-developers
  288. .. _i18n branch: http://code.djangoproject.com/browser/django/branches/i18n
  289. .. _`tags/releases`: http://code.djangoproject.com/browser/django/tags/releases
  290. .. _`easy pickings`: http://code.djangoproject.com/query?status=!closed&easy=1
  291. .. _`creating an account on Trac`: http://www.djangoproject.com/accounts/register/
  292. .. _password reset page: http://www.djangoproject.com/accounts/password/reset/