new-contributors.txt 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. ===========================
  2. Advice for new contributors
  3. ===========================
  4. New contributor and not sure what to do? Want to help but just don't know how
  5. to get started? This is the section for you.
  6. .. admonition:: Basic tools and workflow
  7. If you are new to contributing to Django, the :doc:`/intro/contributing`
  8. tutorial will give you an introduction to the tools and the workflow.
  9. First steps
  10. -----------
  11. Start with these easy tasks to discover Django's development process.
  12. * **Sign the Contributor License Agreement**
  13. The code that you write belongs to you or your employer. If your
  14. contribution is more than one or two lines of code, you need to sign the
  15. `CLA`_. See the `Contributor License Agreement FAQ`_ for a more thorough
  16. explanation.
  17. * **Triage tickets**
  18. If an `unreviewed ticket`_ reports a bug, try and reproduce it. If you
  19. can reproduce it and it seems valid, make a note that you confirmed the bug
  20. and accept the ticket. Make sure the ticket is filed under the correct
  21. component area. Consider writing a patch that adds a test for the bug's
  22. behavior, even if you don't fix the bug itself. See more at
  23. :ref:`how-can-i-help-with-triaging`
  24. * **Look for tickets that are accepted and review patches to build familiarity
  25. with the codebase and the process**
  26. Mark the appropriate flags if a patch needs docs or tests. Look through the
  27. changes a patch makes, and keep an eye out for syntax that is incompatible
  28. with older but still supported versions of Python. :doc:`Run the tests
  29. </internals/contributing/writing-code/unit-tests>` and make sure they pass.
  30. Where possible and relevant, try them out on a database other than SQLite.
  31. Leave comments and feedback!
  32. * **Keep old patches up to date**
  33. Oftentimes the codebase will change between a patch being submitted and the
  34. time it gets reviewed. Make sure it still applies cleanly and functions as
  35. expected. Simply updating a patch is both useful and important! See more on
  36. :doc:`writing-code/submitting-patches`.
  37. * **Write some documentation**
  38. Django's documentation is great but it can always be improved. Did you find
  39. a typo? Do you think that something should be clarified? Go ahead and
  40. suggest a documentation patch! See also the guide on
  41. :doc:`writing-documentation`, in particular the tips for
  42. :ref:`improving-the-documentation`.
  43. .. note::
  44. The `reports page`_ contains links to many useful Trac queries, including
  45. several that are useful for triaging tickets and reviewing patches as
  46. suggested above.
  47. .. _reports page: https://code.djangoproject.com/wiki/Reports
  48. .. _CLA: https://www.djangoproject.com/foundation/cla/
  49. .. _Contributor License Agreement FAQ: https://www.djangoproject.com/foundation/cla/faq/
  50. .. _unreviewed ticket: https://code.djangoproject.com/query?status=!closed&stage=Unreviewed
  51. Guidelines
  52. ----------
  53. As a newcomer on a large project, it's easy to experience frustration. Here's
  54. some advice to make your work on Django more useful and rewarding.
  55. * **Pick a subject area that you care about, that you are familiar with, or
  56. that you want to learn about**
  57. You don't already have to be an expert on the area you want to work on; you
  58. become an expert through your ongoing contributions to the code.
  59. * **Analyze tickets' context and history**
  60. Trac isn't an absolute; the context is just as important as the words.
  61. When reading Trac, you need to take into account who says things, and when
  62. they were said. Support for an idea two years ago doesn't necessarily mean
  63. that the idea will still have support. You also need to pay attention to who
  64. *hasn't* spoken -- for example, if a core team member hasn't been recently
  65. involved in a discussion, then a ticket may not have the support required to
  66. get into trunk.
  67. * **Start small**
  68. It's easier to get feedback on a little issue than on a big one. See the
  69. `easy pickings`_.
  70. * **If you're going to engage in a big task, make sure that your idea has
  71. support first**
  72. This means getting someone else to confirm that a bug is real before you fix
  73. the issue, and ensuring that the core team supports a proposed feature
  74. before you go implementing it.
  75. * **Be bold! Leave feedback!**
  76. Sometimes it can be scary to put your opinion out to the world and say "this
  77. ticket is correct" or "this patch needs work", but it's the only way the
  78. project moves forward. The contributions of the broad Django community
  79. ultimately have a much greater impact than that of the core team. We can't
  80. do it without **you**!
  81. * **Err on the side of caution when marking things Ready For Check-in**
  82. If you're really not certain if a ticket is ready, don't mark it as
  83. such. Leave a comment instead, letting others know your thoughts. If you're
  84. mostly certain, but not completely certain, you might also try asking on IRC
  85. to see if someone else can confirm your suspicions.
  86. * **Wait for feedback, and respond to feedback that you receive**
  87. Focus on one or two tickets, see them through from start to finish, and
  88. repeat. The shotgun approach of taking on lots of tickets and letting some
  89. fall by the wayside ends up doing more harm than good.
  90. * **Be rigorous**
  91. When we say ":pep:`8`, and must have docs and tests", we mean it. If a patch
  92. doesn't have docs and tests, there had better be a good reason. Arguments
  93. like "I couldn't find any existing tests of this feature" don't carry much
  94. weight--while it may be true, that means you have the extra-important job of
  95. writing the very first tests for that feature, not that you get a pass from
  96. writing tests altogether.
  97. .. _easy pickings: https://code.djangoproject.com/query?status=!closed&easy=1
  98. .. _new-contributors-faq:
  99. FAQ
  100. ---
  101. 1. **This ticket I care about has been ignored for days/weeks/months! What can
  102. I do to get it committed?**
  103. First off, it's not personal. Django is entirely developed by volunteers
  104. (even the core team), and sometimes folks just don't have time. The best
  105. thing to do is to send a gentle reminder to the |django-developers| mailing
  106. list asking for review on the ticket, or to bring it up in the #django-dev
  107. IRC channel.
  108. 2. **I'm sure my ticket is absolutely 100% perfect, can I mark it as RFC
  109. myself?**
  110. Short answer: No. It's always better to get another set of eyes on a
  111. ticket. If you're having trouble getting that second set of eyes, see
  112. question 1, above.