The key concepts or models of Patchwork are outlined below.
+.. contents::
+
+
Projects
--------
filter. Patches, cover letters, and series are all associated with a single
project.
+
People
------
People are anyone who has submitted a patch, cover letter, or comment to a
Patchwork instance.
+
Users
-----
- Archive a patch
- Delegate a patch, or be delegated a patch
+
Submissions
-----------
body of the cover letter, but also various metadata associated with the email
that the cover letter was parsed from.
+
Comments
-~~~~~~~~
+--------
Comments are replies to a submission - either a patch or a cover letter. Unlike
a Mail User Agent (MUA) like Gmail, Patchwork does not thread comments.
Instead, every comment is associated with either a patch or a cover letter, and
organized by date.
+
Patch Metadata
--------------
associates them with the patch. You add extra tags to an email by replying to
the email. The following tags are available on a standard Patchwork install:
-Acked-by:
-
+``Acked-by:``
For example::
Acked-by: Stephen Finucane <stephen@that.guru>
-Tested-by:
-
+``Tested-by:``
For example::
Tested-by: Stephen Finucane <stephen@that.guru>
-Reviewed-by:
-
+``Reviewed-by:``
For example::
Reviewed-by: Stephen Finucane <stephen@that.guru>
patch. This is useful, for example, when using a continuous integration (CI)
system to test patches. Checks have a number of fields associated with them:
-Context
-
+**Context**
A label to discern check from the checks of other testing systems
-Description
-
+**Description**
A brief, optional description of the check
-Target URL
-
+**Target URL**
A target URL where a user can find information related to this check, such as
test logs.
-State
-
- The state of the check. One of: pending, success, warning, fail
-
-User
+**State**
+ The state of the check. One of: ``pending``, ``success``, ``warning``,
+ ``fail``
+**User**
The user creating the check
.. note::
Provide information on building a CI system that reports check results back
to Patchwork.
+
Collections
-----------
Patchwork users can store a to-do list of patches.
+
Events
------
All events have a number of common properties, along with some event-specific
properties:
-`category`
-
+``category``
The type of event
-`project`
-
+``project``
The project this event belongs to
-`date`
-
+``date``
When this event was created
-.. note::
-
- Checks can only be created and read through the Patchwork APIs. Refer to
- `../api/index` for more information.
+``payload``
+ Additional information
Cover Letter Created
~~~~~~~~~~~~~~~~~~~~
-Sent when a cover letter is created.
-
-`category`
+:Category: ``cover-created``
- ``cover-created``
-
-`cover`
+Sent when a cover letter is created.
+``cover``
Created cover letter
Patch Created
~~~~~~~~~~~~~
-Sent when a patch is created.
-
-`category`
-
- ``patch-created``
+:Category: ``patch-created``
-`patch`
+Sent when a patch is created.
+``patch``
Created patch
Patch Completed
~~~~~~~~~~~~~~~
+:Category: ``patch-completed``
+
Sent when a patch in a series has its dependencies met, or when a patch that is
not in a series is created (since that patch has no dependencies).
-`category`
-
- ``patch-completed``
-
-`patch`
-
+``patch``
Completed patch
-`series`
-
+``series``
Series from which patch dependencies were extracted, if any
Patch Delegated
~~~~~~~~~~~~~~~
-Sent when a patch's delegate is changed.
-
-`category`
+:Category: ``patch-delegated``
- ``patch-delegated``
-
-`patch`
+Sent when a patch's delegate is changed.
+``patch``
Updated patch
-`previous`
-
+``previous``
Previous delegate, if any
-`current`
-
+``current``
Current delegate, if any
Patch State Changed
~~~~~~~~~~~~~~~~~~~
-Sent when a patch's state is changed.
-
-`category`
-
- ``patch-state-changed``
+:Category: ``patch-state-changed``
-`patch`
+Sent when a patch's state is changed.
+``patch``
Updated patch
-`previous`
-
+``previous``
Previous state
-`current`
-
+``current``
Current state
Check Created
~~~~~~~~~~~~~
-Sent when a patch check is created.
-
-`category`
-
- ``check-created``
+:Category: ``check-created``
-`check`
+Sent when a patch check is created.
+``check``
Created check
Series Created
~~~~~~~~~~~~~~
-Sent when a series is created.
+:Category: ``series-created``
-`category`
-
- ``series-created``
-
-`series`
+Sent when a series is created.
+``series``
Created series
Series Completed
~~~~~~~~~~~~~~~~
-Sent when a series is completed.
+:Category: ``series-completed``
-`category`
-
- ``series-completed``
-
-`series`
+Sent when a series is completed.
+``series``
Completed series
What's Not Exposed