{"title":"チケットをトリアージする","version":"6.1","locale":"ja","docname":"internals/contributing/triaging-tickets","url":"/ja/6.1/internals/contributing/triaging-tickets/","canonical":"https://djangodocs.dev/ja/6.1/internals/contributing/triaging-tickets/","summary":"Django uses Trac for managing the work on the code base. Trac is a community-tended garden of the bugs people have found and the features Django has decided…","html":"<h1>チケットをトリアージする<a class=\"heading-anchor\" href=\"#triaging-tickets\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Django uses <a class=\"reference external\" href=\"https://code.djangoproject.com/\">Trac</a> for managing the work on the code base. Trac is a\ncommunity-tended garden of the bugs people have found and the features Django\nhas decided to add. As in any garden, sometimes there are weeds to be pulled\nand sometimes there are flowers and vegetables that need picking. We need your\nhelp to sort out one from the other, and in the end, we all benefit together.</p>\n<p>他のガーデン同様に、我々も完璧を目指しますが、ケーキを持って食べることもできません。どんな綺麗な庭にも虫がいます。コミュニティーには、-- 善意での悪事 --をしてしまった良き人もいます。コミュニティーが自己管理し、問題を最小限に留め、新たの加入者にイロハを教えるのはコミュニティー全体の責務。</p>\n<p>我々はTracをDjangoの成果を完璧に表現することを目指しますが、限界の存在を理解しています。コミュニティーへTracのメンテナンスを分布する度、間違いが生じることを許容します。何らかの間違いが生じることは想定内なので、Tracは「ほぼ正確」です。間違ってなんぼ、我々は期限を守ってからの完璧主義です。</p>\n<p>We rely on the community to keep participating, keep tickets as accurate as\npossible, and raise issues for discussion on the <a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a> when there is\nconfusion or disagreement.</p>\n<p>Djangoはコミュニティプロジェクトであり、すべての貢献が役立ちます。 <strong>あなた</strong> なしではこれを実現することはできません！</p>\n<section id=\"triage-workflow\">\n<span id=\"id1\"></span><h2>トリアージのワークフロー<a class=\"heading-anchor\" href=\"#triage-workflow\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Unfortunately, not all reports in the ticket tracker provide all the\n<a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/bugs-and-features/#reporting-bugs\"><span class=\"std std-ref\">required details</span></a>. A number of tickets have proposed\nsolutions, but those don't necessarily meet all the requirements <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/submitting-patches/#patch-style\"><span class=\"std std-ref\">adhering\nto the guidelines for contributing</span></a>.</p>\n<p>One way to help out is to <em>triage</em> tickets that have been created by other\nusers.</p>\n<p>Most of the workflow is based around the concept of a ticket's\n<a class=\"reference internal\" href=\"#triage-stages\"><span class=\"std std-ref\">triage stages</span></a>. Each stage describes where in its\nlifetime a given ticket is at any time. Along with a handful of flags, this\nattribute easily tells us what and who each ticket is waiting on.</p>\n<p>Since a picture is worth a thousand words, let's start there:</p>\n<img alt=\"Django のチケット トリアージのワークフロー\" src=\"/ja/6.1/_images/contribution_process.svg\" />\n<p>We have four roles in this diagram. Maintainers (also known as Fellows) usually\ntake part in all of them, but anyone in the Django community can participate in\nany role except merger. The <a class=\"reference internal\" href=\"/ja/6.1/internals/organization/#mergers-team\"><span class=\"std std-ref\">merger role</span></a> is granted by a\nvote of the <a class=\"reference internal\" href=\"/ja/6.1/internals/organization/#steering-council\"><span class=\"std std-ref\">Steering Council</span></a>.</p>\n<ul class=\"simple\">\n<li><p>Triagers: anyone can take on this role by checking whether a ticket describes\na real issue and keeping the tracker organized.</p></li>\n<li><p>Bug fixers: anyone can contribute by opening a pull request and working on a\nsolution for a ticket.</p></li>\n<li><p>Reviewers: anyone can <a class=\"reference internal\" href=\"#reviewing-patches\"><span class=\"std std-ref\">review pull requests</span></a> and\nsuggest improvements.</p></li>\n<li><p>Mergers: people with commit access who make the final decision to merge a\nchange.</p></li>\n</ul>\n<aside class=\"admonition-when-we-say-anyone-we-mean-you admonition\" role=\"note\">\n<p class=\"admonition-title\">When we say anyone, we mean you!</p>\n<p>Our Trac system and GitHub repositories are intentionally open to the\npublic. Anyone can help by working on tickets, triaging tickets and\nreviewing changes. Django is a community project, and we encourage\n<a class=\"reference internal\" href=\"#how-can-i-help-with-triaging\"><span class=\"std std-ref\">triage and collaboration by the community</span></a>. We truly want you to help!</p>\n</aside>\n<p>For example, here's the typical lifecycle of a ticket:</p>\n<ul class=\"simple\">\n<li><p>Alice creates a ticket and opens an incomplete pull request (missing tests,\nincorrect implementation).</p></li>\n<li><p>Bob reviews the pull request, marks the ticket as &quot;Accepted&quot;, sets the\nflags &quot;needs tests&quot; and &quot;patch needs improvement&quot;, and leaves a comment\nexplaining how Alice can improve the patch. This puts the ticket\nautomatically into the &quot;waiting on author&quot; queue within the &quot;accepted&quot; stage.</p></li>\n<li><p>Alice updates the pull request, adding tests (but not yet fixing the\nimplementation), and removes the two flags. The ticket moves into the &quot;needs\nPR review&quot; queue.</p></li>\n<li><p>Charlie reviews the pull request, sets the &quot;patch needs improvement&quot; flag\nagain, and leaves another comment suggesting changes to the implementation.\nThe ticket moves back to the &quot;waiting on author&quot; queue.</p></li>\n<li><p>Alice updates the pull request again, this time fixing the implementation,\nand removes the &quot;patch needs improvement&quot; flag. The ticket moves once more\ninto the &quot;needs PR review&quot; queue.</p></li>\n<li><p>Daisy reviews the pull request and marks the ticket as &quot;Ready for checkin&quot;.</p></li>\n<li><p>Jacob, a <a class=\"reference internal\" href=\"/ja/6.1/internals/organization/#mergers-team\"><span class=\"std std-ref\">merger</span></a>, reviews and merges the pull request.</p></li>\n</ul>\n<p>Some tickets move through these steps quickly, while others take more time and\ndiscussion. Each contribution helps Django improve.</p>\n</section>\n<section id=\"triage-stages\">\n<span id=\"id2\"></span><h2>トリアージのステージ<a class=\"heading-anchor\" href=\"#triage-stages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Below we describe in more detail the various stages that a ticket may flow\nthrough during its lifetime.</p>\n<section id=\"unreviewed\">\n<h3>Unreviewed (未レビュー)<a class=\"heading-anchor\" href=\"#unreviewed\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>The ticket has not been reviewed by anyone who felt qualified to make a\njudgment about whether the ticket contained a valid issue or ought to be closed\nfor any reasons. Unreviewed tickets appear in the &quot;triage&quot; queue.</p>\n<p>Unreviewed tickets may receive additional refinement before being accepted.\nUnless you are both the author of the ticket and intending to submit a patch,\nunreviewed tickets should not be <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/submitting-patches/#claiming-tickets\"><span class=\"std std-ref\">claimed</span></a>.</p>\n</section>\n<section id=\"accepted\">\n<h3>Accepted (アクセプト)<a class=\"heading-anchor\" href=\"#accepted\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>The absolute meaning of &quot;accepted&quot; is that the issue described in the ticket is\nvalid and actionable. It is broken out into three queues:</p>\n<ul>\n<li><p><strong>Needs Patch</strong> (Accepted + No Flags)</p>\n<p>The ticket is valid, but no one has submitted a patch for it yet. Often this\nmeans you could safely start writing a fix for it. This is generally more\ntrue for the case of accepted bugs than accepted features. A ticket for a bug\nthat has been accepted means that the issue has been verified by at least one\ntriager as a legitimate bug - and should probably be fixed if possible.</p>\n<p>For new features, accepted tickets should only exist after the idea has gone\nthrough the appropriate <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/bugs-and-features/#requesting-features\"><span class=\"std std-ref\">process for suggesting new features</span></a> and received community and <a class=\"reference internal\" href=\"/ja/6.1/internals/organization/#steering-council\"><span class=\"std std-ref\">Steering Council</span></a> approval, or been accepted in a DEP.</p>\n</li>\n<li><p><strong>Needs PR Review</strong> (Accepted + Has Patch)</p>\n<p>The ticket is waiting for people to review the supplied solution. This means\ndownloading the patch and trying it out, verifying that it contains tests\nand docs, running the test suite with the included patch, and leaving\nfeedback on the ticket.</p>\n</li>\n<li><p><strong>Waiting On Author</strong> (Accepted + Has Patch + Needs fixes)</p>\n<p>This means the ticket has been reviewed, and has been found to need further\nwork. &quot;Needs tests&quot; and &quot;Needs documentation&quot; are self-explanatory. &quot;Patch\nneeds improvement&quot; will generally be accompanied by a comment on the ticket\nexplaining what is needed to improve the code.</p>\n</li>\n</ul>\n</section>\n<section id=\"ready-for-checkin\">\n<h3>Ready For Checkin<a class=\"heading-anchor\" href=\"#ready-for-checkin\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>The ticket was reviewed by any member of the community other than the person\nwho supplied the patch and found to meet all the requirements for a\ncommit-ready contribution. A <a class=\"reference internal\" href=\"/ja/6.1/internals/organization/#mergers-team\"><span class=\"std std-ref\">merger</span></a> now needs to give\na final review prior to being committed.</p>\n<p>There are a lot of pull requests. It can take a while for your patch to get\nreviewed. See the <a class=\"reference internal\" href=\"/ja/6.1/faq/contributing/#new-contributors-faq\"><span class=\"std std-ref\">contributing code FAQ</span></a> for some\nideas here.</p>\n</section>\n<section id=\"someday-maybe\">\n<h3>Someday/Maybe<a class=\"heading-anchor\" href=\"#someday-maybe\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>This stage isn't shown on the diagram. It's used sparingly to keep track of\nlong-term changes.</p>\n<p>These tickets are uncommon and overall less useful since they don't describe\nconcrete actionable issues.</p>\n</section>\n</section>\n<section id=\"other-triage-attributes\">\n<h2>その他のトリアージ属性<a class=\"heading-anchor\" href=\"#other-triage-attributes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A number of flags, appearing as checkboxes in Trac, can be set on a ticket:</p>\n<section id=\"has-patch\">\n<h3>Has patch (パッチあり)<a class=\"heading-anchor\" href=\"#has-patch\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>This means the ticket has an associated solution. These will be reviewed to\nensure they adhere to the <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/submitting-patches/#patch-review-checklist\"><span class=\"std std-ref\">documented guidelines</span></a>.</p>\n<p>The following three fields (Needs documentation, Needs tests,\nPatch needs improvement) apply only if a patch has been supplied.</p>\n</section>\n<section id=\"needs-documentation\">\n<h3>Needs documentation (ドキュメンテーションが必要)<a class=\"heading-anchor\" href=\"#needs-documentation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>This flag is used for tickets with patches that need associated\ndocumentation. Complete documentation of features is a prerequisite\nbefore we can check them into the codebase.</p>\n</section>\n<section id=\"needs-tests\">\n<h3>Needs tests (テストが必要)<a class=\"heading-anchor\" href=\"#needs-tests\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>This flags the patch as needing associated unit tests. Again, this\nis a required part of a valid contribution.</p>\n</section>\n<section id=\"patch-needs-improvement\">\n<h3>Patch needs improvement (パッチの改善が必要)<a class=\"heading-anchor\" href=\"#patch-needs-improvement\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>This flag means that although the ticket <em>has</em> a solution, it's not quite\nready for checkin. This could mean the patch no longer applies\ncleanly, there is a flaw in the implementation, or that the code\ndoesn't meet our standards.</p>\n</section>\n<section id=\"easy-pickings\">\n<h3>Easy pickings (簡単に取り組める)<a class=\"heading-anchor\" href=\"#easy-pickings\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Tickets that would require small, easy, changes.</p>\n</section>\n<section id=\"type\">\n<h3>Type (タイプ)<a class=\"heading-anchor\" href=\"#type\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>チケットは以下のいずれかの <em>タイプ</em> に分類する必要があります。</p>\n<ul class=\"simple\">\n<li><dl class=\"simple\">\n<dt>New Feature (新しい機能)</dt><dd><p>何か新しいものを追加するためのチケット。</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>Bug (バグ)</dt><dd><p>既存のものが壊れたり期待通りに動作しないときのためのチケット。</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>Cleanup/optimization (クリーンアップ/最適化)</dt><dd><p>For when nothing is broken but something could be made cleaner,\nbetter, faster, stronger.</p>\n</dd>\n</dl>\n</li>\n</ul>\n</section>\n<section id=\"component\">\n<h3>Component (コンポーネント)<a class=\"heading-anchor\" href=\"#component\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Tickets should be classified into <em>components</em> indicating which area of\nthe Django codebase they belong to. This makes tickets better organized and\neasier to find.</p>\n</section>\n<section id=\"severity\">\n<h3>Severity (重要度)<a class=\"heading-anchor\" href=\"#severity\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>The <em>severity</em> attribute is used to identify blockers, that is, issues that\nshould get fixed before releasing the next version of Django. Typically those\nissues are bugs causing regressions from earlier versions or potentially\ncausing severe data losses. This attribute is quite rarely used and the vast\nmajority of tickets have a severity of &quot;Normal&quot;.</p>\n</section>\n<section id=\"version\">\n<h3>Version (バージョン)<a class=\"heading-anchor\" href=\"#version\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>The <em>version</em> attribute indicates the earliest version in which the bug was\nreproduced. During triage, this field can be updated, but there is no need to\nmake further updates when that version goes out of support. The field should\nnot be reset to &quot;dev&quot; to show the issue still exists: instead, the tested\ncommit hash can be noted in a comment.</p>\n</section>\n<section id=\"ui-ux\">\n<h3>UI/UX<a class=\"heading-anchor\" href=\"#ui-ux\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>This flag is used for tickets that relate to User Interface and User\nExperiences questions. For example, this flag would be appropriate for\nuser-facing features in forms or the admin interface.</p>\n</section>\n<section id=\"cc\">\n<h3>Cc<a class=\"heading-anchor\" href=\"#cc\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>You may add your username or email address to this field to be notified when\nnew contributions are made to the ticket.</p>\n</section>\n<section id=\"keywords\">\n<h3>Keywords (キーワード)<a class=\"heading-anchor\" href=\"#keywords\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>With this field you may label a ticket with multiple keywords. This can be\nuseful, for example, to group several tickets on the same theme. Keywords can\neither be comma or space separated. Keyword search finds the keyword string\nanywhere in the keywords. For example, clicking on a ticket with the keyword\n&quot;form&quot; will yield similar tickets tagged with keywords containing strings such\nas &quot;formset&quot;, &quot;modelformset&quot;, and &quot;ManagementForm&quot;.</p>\n</section>\n</section>\n<section id=\"closing-tickets\">\n<span id=\"id3\"></span><h2>チケットを閉じる<a class=\"heading-anchor\" href=\"#closing-tickets\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>When a ticket has completed its useful lifecycle, it's time for it to be\nclosed. Closing a ticket is a big responsibility, though. You have to be sure\nthat the issue is really resolved, and you need to keep in mind that the\nreporter of the ticket may not be happy to have their ticket closed (unless\nit's fixed!). If you're not certain about closing a ticket, leave a comment\nwith your thoughts instead.</p>\n<p>If you do close a ticket, you should always make sure of the following:</p>\n<ul class=\"simple\">\n<li><p>issue が本当に解決したかよく確認してください。</p></li>\n<li><p>チケットを閉じる決定について説明するコメントを残してください。</p></li>\n<li><p>チケットを再び開いて改善できる方法がある場合には、他の人に知らせてください。</p></li>\n<li><p>If the ticket is a duplicate, reference the original ticket. Also\ncross-reference the closed ticket by leaving a comment in the original one\n-- this allows to access more related information about the reported bug\nor requested feature.</p></li>\n<li><p><strong>礼儀正しくする。</strong> チケットが閉じられて嬉しい人はいません。苛々させたり、落胆させてしまうこともあります。Django へのコントリビューションを諦めさせないための一番良い方法は、礼儀正しくフレンドリーに接して、そのチケットや将来の他のチケットの改善方法を提案することです。</p></li>\n</ul>\n<p>チケットは、次のような複数の方法で解決できます。</p>\n<ul class=\"simple\">\n<li><dl class=\"simple\">\n<dt>fixed (修正済み)</dt><dd><p>パッチが Django に展開されて問題が解決したときに使われます。</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>invalid (無効)</dt><dd><p>チケットが正しくないことがわかったときに使われます。つまり、チケットに書かれた issue が、実際にはユーザーの間違いの結果だったり、Django とは別の何かに関する問題について書かれている場合や、バグレポートでもフィーチャーリクエストでもない場合 (たとえば、新しいユーザーは、サポートリクエストをチケットとして送ってしまうことがあります) などです。</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>wontfix (修正しない)</dt><dd><p>Used when someone decides that the request isn't appropriate for\nconsideration in Django. Sometimes a ticket is closed as &quot;wontfix&quot; with a\nrequest for the reporter to start a discussion on the <a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a> if\nthey feel differently from the rationale provided by the person who\nclosed the ticket. Other times, a discussion precedes the decision to\nclose a ticket. Always use the forum to get a consensus before reopening\ntickets closed as &quot;wontfix&quot;.</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>needsnewfeatureprocess</dt><dd><p>Used when the ticket merits a new feature, which will need to get\ncommunity input and support.\nSee the <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/bugs-and-features/#requesting-features\"><span class=\"std std-ref\">process for suggesting new features</span></a>.</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>duplicate (重複)</dt><dd><p>Used when another ticket covers the same issue. By closing duplicate\ntickets, we keep all the discussion in one place, which helps\neveryone.</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>worksforme</dt><dd><p>オリジナルのバグを再現できるほど十分な詳細情報が含まれていないチケットに対して使われます。</p>\n</dd>\n</dl>\n</li>\n<li><dl class=\"simple\">\n<dt>needsinfo (情報が必要)</dt><dd><p>チケットが報告された問題を再現するのに十分な情報を含まないが、それでも有効な可能性がある場合に使われます。追加情報が与えられた場合には、チケットを再びオープンする必要があります。</p>\n</dd>\n</dl>\n</li>\n</ul>\n<p>If you believe that the ticket was closed in error -- because you're\nstill having the issue, or it's popped up somewhere else, or the triagers have\nmade a mistake -- please reopen the ticket and provide further information.\nAgain, please do not reopen tickets that have been marked as &quot;wontfix&quot; or\n&quot;needsnewfeatureprocess&quot;. For &quot;wontfix&quot; tickets, bring the issue to the\n<a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a> instead. For &quot;needsnewfeatureprocess&quot; tickets, propose the\nfeature through the <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/bugs-and-features/#requesting-features\"><span class=\"std std-ref\">new features process</span></a>.</p>\n</section>\n<section id=\"how-can-i-help-with-development\">\n<span id=\"how-can-i-help-with-triaging\"></span><h2>How can I help with development?<a class=\"heading-anchor\" href=\"#how-can-i-help-with-development\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>The development process is primarily driven by community members. Really,\n<strong>ANYONE</strong> can help.</p>\n<p>参加するには、まず <a class=\"reference external\" href=\"https://www.djangoproject.com/accounts/password/reset/\">Trac 上でアカウントを作成します</a>。アカウントを持っているけれどパスワードを忘れてしまった場合は、<a class=\"reference external\" href=\"https://www.djangoproject.com/accounts/register/\">パスワードのリセットページ</a> を使ってリセットできます。</p>\n<p>次に、以下の方法で助けることができます。</p>\n<ul class=\"simple\">\n<li><p>Closing &quot;Unreviewed&quot; tickets as &quot;invalid&quot;, &quot;worksforme&quot;, &quot;duplicate&quot;,\n&quot;wontfix&quot;, or &quot;needsnewfeatureprocess&quot;.</p></li>\n<li><p>Closing &quot;Unreviewed&quot; tickets as &quot;needsinfo&quot; when the description is too\nsparse to be actionable.</p></li>\n<li><p>Correcting the &quot;Needs tests&quot;, &quot;Needs documentation&quot;, or &quot;Has patch&quot;\nflags for tickets where they are incorrectly set.</p></li>\n<li><p>Setting the &quot;<a class=\"reference external\" href=\"https://code.djangoproject.com/query?status=!closed&amp;easy=1\">Easy pickings</a>&quot; flag for tickets that are small and\nrelatively straightforward.</p></li>\n<li><p>カテゴリーが未設定のチケットに <em>type</em> (タイプ) を設定する。</p></li>\n<li><p>Checking that old tickets are still valid. If a ticket hasn't seen\nany activity in a long time, it's possible that the problem has been\nfixed but the ticket hasn't yet been closed.</p></li>\n<li><p>Identifying trends and themes in the tickets. If there are a lot of bug\nreports about a particular part of Django, it may indicate we should\nconsider refactoring that part of the code. If a trend is emerging,\nyou should raise it for discussion (referencing the relevant tickets)\non the <a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a>.</p></li>\n<li><p>Verify if solutions submitted by others are correct. If they are correct\nand also contain appropriate documentation and tests then move them to the\n&quot;Ready for Checkin&quot; stage. If they are not correct then leave a comment to\nexplain why and set the corresponding flags (&quot;Patch needs improvement&quot;,\n&quot;Needs tests&quot; etc.).</p></li>\n</ul>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">注釈</p>\n<p>The <a class=\"reference external\" href=\"https://code.djangoproject.com/wiki/Reports\">Reports page</a> contains links to many useful Trac queries, including\nseveral that are useful for triaging tickets and reviewing proposals as\nsuggested above.</p>\n<p>You can also find more <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/new-contributors/\"><span class=\"doc\">新しいコントリビューターへのアドバイス</span></a>.</p>\n</aside>\n<p>ただし、チケットデータベースで作業するすべての一般コミュニティメンバーの人たちに対して、以下のことを必ずお願いしています。</p>\n<ul class=\"simple\">\n<li><p>Please <strong>don't</strong> promote your own tickets to &quot;Accepted&quot;. Another community\nmember should review the report and set this stage after reproducing and\nconfirming the issue.</p></li>\n<li><p>Please <strong>don't</strong> promote your own tickets to &quot;Ready for checkin&quot;. You\nmay mark other people's tickets that you've reviewed as &quot;Ready for\ncheckin&quot;, but you should get at minimum one other community member to\n<a class=\"reference internal\" href=\"#reviewing-patches\"><span class=\"std std-ref\">review a patch</span></a> that you submit.</p></li>\n<li><p>Please <strong>don't</strong> reverse a decision without posting a message to the\n<a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a> to find consensus.</p></li>\n<li><p>If you're unsure if you should be making a change, don't make the\nchange but instead leave a comment with your concerns on the ticket,\nor post a message to the <a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a>. It's okay to be unsure, but your\ninput is still valuable.</p></li>\n</ul>\n</section>\n<section id=\"bisecting-a-regression\">\n<span id=\"id5\"></span><h2>リグレッションの bisect<a class=\"heading-anchor\" href=\"#bisecting-a-regression\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A regression is a bug that's present in some newer version of Django but not in\nan older one. An extremely helpful piece of information is the commit that\nintroduced the regression. Knowing the commit that caused the change in\nbehavior helps identify if the change was intentional or if it was an\ninadvertent side-effect. Here's how you can determine this.</p>\n<p>Begin by writing a regression test for Django's test suite for the issue. For\nexample, we'll pretend we're debugging a regression in migrations. After you've\nwritten the test and confirmed that it fails on the latest main branch, put it\nin a separate file that you can run standalone. For our example, we'll pretend\nwe created <code class=\"docutils literal notranslate\">tests/migrations/test_regression.py</code>, which can be run with:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ ./runtests.py migrations.test_regression\n</code></pre></div>\n<p>Next, we mark the current point in history as being &quot;bad&quot; since the test fails:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git bisect bad\nYou need to start by <span class=\"s2\">&quot;git bisect start&quot;</span>\nDo you want me to <span class=\"k\">do</span> it <span class=\"k\">for</span> you <span class=\"o\">[</span>Y/n<span class=\"o\">]</span>? y\n</code></pre></div>\n<p>Now, we need to find a point in git history before the regression was\nintroduced (i.e. a point where the test passes). Use something like\n<code class=\"docutils literal notranslate\">git checkout HEAD~100</code> to check out an earlier revision (100 commits\nearlier, in this case). Check if the test fails. If so, mark that point as\n&quot;bad&quot; (<code class=\"docutils literal notranslate\">git bisect bad</code>), then check out an earlier revision and recheck.\nOnce you find a revision where your test passes, mark it as &quot;good&quot;:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git bisect good\nBisecting: X revisions left to <span class=\"nb\">test</span> after this <span class=\"o\">(</span>roughly Y steps<span class=\"o\">)</span>\n...\n</code></pre></div>\n<p>Now we're ready for the fun part: using <code class=\"docutils literal notranslate\">git bisect run</code> to automate the rest\nof the process:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$ git bisect run tests/runtests.py migrations.test_regression\n</code></pre></div>\n<p>You should see <code class=\"docutils literal notranslate\">git bisect</code> use a binary search to automatically checkout\nrevisions between the good and bad commits until it finds the first &quot;bad&quot;\ncommit where the test fails.</p>\n<p>Now, report your results on the Trac ticket, and please include the regression\ntest as an attachment. When someone writes a fix for the bug, they'll already\nhave your test as a starting point.</p>\n</section>\n<section id=\"reviewing-patches\">\n<span id=\"id6\"></span><h2>Reviewing patches<a class=\"heading-anchor\" href=\"#reviewing-patches\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A great way to learn the Django codebase is to help review patches. It allows\nyou to focus on a fixed scope of Django with a particular perspective. Plus,\nDjango tends to receive more patches than it can review which causes the\n<a class=\"reference external\" href=\"https://code.djangoproject.com/query?has_patch=1&amp;needs_better_patch=0&amp;needs_docs=0&amp;needs_tests=0&amp;stage=Accepted&amp;status=!closed&amp;order=changetime&amp;desc=1\">review queue</a> to build up. Contributors can help Django tremendously by\nreviewing patches.</p>\n<p>The <a class=\"reference external\" href=\"https://code.djangoproject.com/query?has_patch=1&amp;needs_better_patch=0&amp;needs_docs=0&amp;needs_tests=0&amp;stage=Accepted&amp;status=!closed&amp;order=changetime&amp;desc=1\">review queue</a> is defined by tickets in <a class=\"reference external\" href=\"https://code.djangoproject.com/\">Trac</a> that are in the &quot;Accepted&quot;\nstate with the flag &quot;has patch&quot; set and the flags &quot;patch needs improvement&quot;,\n&quot;needs tests&quot; and &quot;needs documentation&quot; unset. There is also a set of\n<a class=\"reference external\" href=\"https://github.com/django/django/pulls?q=is%3Aopen+is%3Apr+label%3A%22no+ticket%22\">Pull Requests in GitHub with the &quot;no ticket&quot; label</a> that can be reviewed.</p>\n<section id=\"code-review-process\">\n<h3>Code review process<a class=\"heading-anchor\" href=\"#code-review-process\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>The general process to reviewing a patch for Django is as follows:</p>\n<ol class=\"arabic simple\">\n<li><p>Pick a patch to review. This can be from the <a class=\"reference external\" href=\"https://code.djangoproject.com/query?has_patch=1&amp;needs_better_patch=0&amp;needs_docs=0&amp;needs_tests=0&amp;stage=Accepted&amp;status=!closed&amp;order=changetime&amp;desc=1\">review queue</a> or the\n<a class=\"reference external\" href=\"https://github.com/django/django/pulls?q=is%3Aopen+is%3Apr+label%3A%22no+ticket%22\">Pull Requests in GitHub with the &quot;no ticket&quot; label</a>. If you're new, pick\na specific component to stick with. Django is a big codebase, so it's best\nto contribute consistently with a narrow focus and grow it slowly.</p></li>\n<li><p>Pull the branch. See the <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/committing-code/#handling-pull-requests\"><span class=\"std std-ref\">プルリクエストの取り扱い</span></a>, including the git\nalias to make checking out other pull requests easier.</p></li>\n<li><p>Check the tests. If the ticket is for a bug, there should be a regression\ntest. Confirm that the test fails if the change is reverted. Check that the\ntests are adequately covering the code and logic as well. See\n<a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/submitting-patches/#patch-review-checklist\"><span class=\"std std-ref\">Contribution checklist</span></a>.</p></li>\n<li><p>Test in your own Django project. See <a class=\"reference internal\" href=\"/ja/6.1/topics/install/#installing-development-version\"><span class=\"std std-ref\">開発バージョンをインストールする</span></a>\nfor how. Explore the user interface and user experience with the change.\nDoes it feel right? Can you break it? Another approach is to assume\neverything is wrong. Can you demonstrate to yourself that each piece is\ncorrect?</p></li>\n<li><p>Check the documentation. Is the documentation understandable? Does it\nprovide the information the reader needs at that moment? Does it read well?\nIs it consistent with the documentation before and after it? See\n<a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-documentation/#build-documentation-locally\"><span class=\"std std-ref\">ドキュメントをローカルでビルドする</span></a>.</p></li>\n<li><p>Are you happy with the patch? This is fairly subjective, but that's fine.\nYou should ask, does the approach make sense to you and is there another\nway to do it that's better? Also ask yourself, is the scope of the change\nappropriate? Are things named appropriately? Renaming things is slow and\nchallenging in Django, so we should try to get it right from the start.\nAre there backwards compatibility concerns? Lastly, are there any other\ngeneral concerns such as things that may worry you or that should be looked\ninto?</p></li>\n<li><p>Review your feedback. Before you submit your feedback, consider the\nfeedback you want to share. It takes courage to open a Pull Request, we\nshould be thoughtful and considerate of the leap the author has made. If\nthere are nitpicky or small suggestions, use GitHub's suggestion feature.\nIf the approach isn't what you expected, consider asking the author why\nbefore requesting several changes. Seek to understand their reasoning\nfirst.</p></li>\n<li><p>Submit feedback on GitHub and update flags, &quot;patch needs improvement&quot;,\n&quot;needs tests&quot;, and &quot;needs documentation&quot;, as needed. This will move the\nticket to the <a class=\"reference external\" href=\"https://code.djangoproject.com/query?has_patch=1&amp;needs_better_patch=1&amp;stage=Accepted&amp;status=assigned&amp;status=new&amp;or&amp;has_patch=1&amp;needs_docs=1&amp;stage=Accepted&amp;status=assigned&amp;status=new&amp;or&amp;has_patch=1&amp;needs_tests=1&amp;stage=Accepted&amp;status=assigned&amp;status=new&amp;order=changetime&amp;desc=1\">&quot;waiting for author&quot; queue</a>. If you have given a\nspecific type of code review, please indicate that on the Pull Request.</p></li>\n</ol>\n</section>\n<section id=\"types-of-code-reviews\">\n<h3>Types of code reviews<a class=\"heading-anchor\" href=\"#types-of-code-reviews\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Not everyone will or should give the same type of code review. Having a diverse\nset of opinions and experiences helps Django be better. If you are providing a\nspecific review, please indicate that on the Pull Request in GitHub. Below\nare some of the types of code review you can perform:</p>\n<ul class=\"simple\">\n<li><p>Accessibility review. Does it conform to our <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/accessibility/#accessibility-standards\"><span class=\"std std-ref\">アクセシビリティ基準</span></a>?</p></li>\n<li><p><a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/submitting-patches/#patch-style\"><span class=\"std std-ref\">Patch style</span></a> and contribution process review.</p></li>\n<li><p>Usability and developer experience review.</p>\n<ul>\n<li><p>Use the change and provide feedback from that experience.</p></li>\n<li><p>Are the APIs and documentation accessible and well explained?</p></li>\n</ul>\n</li>\n<li><p>Domain expertise review. Do you have a personal expertise that is relevant\nsuch as databases, HTTP, security, etc?</p></li>\n<li><p>Benchmarking and performance review. There are benchmarking tests, but\nsometimes changes require additional testing.</p>\n<ul>\n<li><p>Utilize <a class=\"reference internal\" href=\"/ja/6.1/internals/contributing/writing-code/submitting-patches/#django-asv-benchmarks\"><span class=\"std std-ref\">django-asv benchmarks</span></a> to check performance over time.</p></li>\n<li><p>Run benchmark tests by labeling the pull request with &quot;benchmark&quot;.</p></li>\n</ul>\n</li>\n</ul>\n</section>\n</section>","rootId":"triaging-tickets","toc":[{"title":"トリアージのワークフロー","anchor":"triage-workflow","children":[]},{"title":"トリアージのステージ","anchor":"triage-stages","children":[{"title":"Unreviewed (未レビュー)","anchor":"unreviewed","children":[]},{"title":"Accepted (アクセプト)","anchor":"accepted","children":[]},{"title":"Ready For Checkin","anchor":"ready-for-checkin","children":[]},{"title":"Someday/Maybe","anchor":"someday-maybe","children":[]}]},{"title":"その他のトリアージ属性","anchor":"other-triage-attributes","children":[{"title":"Has patch (パッチあり)","anchor":"has-patch","children":[]},{"title":"Needs documentation (ドキュメンテーションが必要)","anchor":"needs-documentation","children":[]},{"title":"Needs tests (テストが必要)","anchor":"needs-tests","children":[]},{"title":"Patch needs improvement (パッチの改善が必要)","anchor":"patch-needs-improvement","children":[]},{"title":"Easy pickings (簡単に取り組める)","anchor":"easy-pickings","children":[]},{"title":"Type (タイプ)","anchor":"type","children":[]},{"title":"Component (コンポーネント)","anchor":"component","children":[]},{"title":"Severity (重要度)","anchor":"severity","children":[]},{"title":"Version (バージョン)","anchor":"version","children":[]},{"title":"UI/UX","anchor":"ui-ux","children":[]},{"title":"Cc","anchor":"cc","children":[]},{"title":"Keywords (キーワード)","anchor":"keywords","children":[]}]},{"title":"チケットを閉じる","anchor":"closing-tickets","children":[]},{"title":"How can I help with development?","anchor":"how-can-i-help-with-development","children":[]},{"title":"リグレッションの bisect","anchor":"bisecting-a-regression","children":[]},{"title":"Reviewing patches","anchor":"reviewing-patches","children":[{"title":"Code review process","anchor":"code-review-process","children":[]},{"title":"Types of code reviews","anchor":"types-of-code-reviews","children":[]}]}],"breadcrumbs":[{"docname":"internals/index","title":"Django internals","url":"/ja/6.1/internals/"},{"docname":"internals/contributing/index","title":"Django へのコントリビュート","url":"/ja/6.1/internals/contributing/"}],"prev":{"docname":"internals/contributing/bugs-and-features","title":"バグレポートと機能のリクエスト","url":"/ja/6.1/internals/contributing/bugs-and-features/"},"next":{"docname":"internals/mailing-lists","title":"メーリングリストとフォーラム","url":"/ja/6.1/internals/mailing-lists/"},"formats":{"html":"/ja/6.1/internals/contributing/triaging-tickets/","markdown":"/ja/6.1/internals/contributing/triaging-tickets.md","json":"/ja/6.1/internals/contributing/triaging-tickets.json"},"source":"https://github.com/django/django/blob/stable/6.1.x/docs/internals/contributing/triaging-tickets.txt","official":"https://docs.djangoproject.com/ja/6.1/internals/contributing/triaging-tickets/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}