patchwork:pyup-update-sphinxcontrib-openapi-0.5.0-to-0.6.0

Last commit made on 2019-12-23
Get this branch:
git clone -b pyup-update-sphinxcontrib-openapi-0.5.0-to-0.6.0 https://git.launchpad.net/patchwork

Branch merges

Branch information

Name:
pyup-update-sphinxcontrib-openapi-0.5.0-to-0.6.0
Repository:
lp:patchwork

Recent commits

8cda232... by pyup-bot <email address hidden> on 2019-12-23

Update sphinxcontrib-openapi from 0.5.0 to 0.6.0

83665b2... by Mete Polat <email address hidden> on 2019-12-07

docs: Add missing series index schema

Fixes: 7d8e24bc84bd ("docs: Start documenting API using OpenAPI")
Signed-off-by: Mete Polat <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>

c7f7cf5... by Stephen Finucane <email address hidden> on 2019-12-01

requirements: Add pyup markers to prevent dumb PRs

Until [1] is merged, we're going to have to override what these markers
are doing. Perhaps it would be easier to just specify the markers in the
comments as the actual marker, but I like using pip's features and the
comments *should* be temporary.

[1] https://github.com/pyupio/pyup/pull/367

Signed-off-by: Stephen Finucane <email address hidden>

4c068c1... by Stephen Finucane <email address hidden> on 2019-12-01

docs: Change category of API release note

Signed-off-by: Stephen Finucane <email address hidden>

cde0541... by Stephen Finucane <email address hidden> on 2019-12-01

docs: Correct location of release note

Not sure how this ended up here but we both missed this. Correct the
location.

Signed-off-by: Stephen Finucane <email address hidden>
Fixes: d380219e ("api: support filtering patches by hash")

b1c116b... by Stephen Finucane <email address hidden> on 2019-12-01

docs: Add release notes for recently added features

Signed-off-by: Stephen Finucane <email address hidden>

de36300... by Johan Herland <email address hidden> on 2019-12-01

REST: Add 'actor' field to '/events' model

Signed-off-by: Johan Herland <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>
Acked-by: Daniel Axtens <email address hidden>
Cc: Mauro Carvalho Chehab <email address hidden>
Closes: #73

79a3efb... by Johan Herland <email address hidden> on 2019-12-01

Include the responsible actor in applicable events

We want to use the events as an audit log. An important part of this is
recording _who_ made the changes that the events represent.

To accomplish this, we need to know the current user (aka. request.user)
at the point where we create the Event instance. Event creation is
currently triggered by signals, but neither the signal handlers, nor the
model classes themselves have easy access to request.user.

For some Patch-based events (patch-state-changed, patch-delegated), we
can do the following hack: The relevant events are created in signal
handlers that are all hooked up to either the pre_save or post_save
signals sent by Patch.save(). But before calling Patch.save(),
Patchwork must naturally query Patch.is_editable() to ascertain whether
the patch can in fact be changed by the current user. Thus, we only
need a way to communicate the current user from Patch.is_editable()
to the signal handlers that create the resulting Events. The Patch
object itself is available in both places, so we simply add an
'_edited_by' attribute to the instance (which fortunately is not
detected as a persistent db field by Django).

For the check-created event the current user always happens to be the
same as the 'user' field recorded in the Check object itself.

For the other Patch-based events (patch-created, patch-completed, and
series-completed), although they are also triggered by Patch.save(),
they are triggered as a result of incoming emails, hence have no real
actor as such, so we simply leave the actor as None/NULL. The same
argument also applies to the cover-created and series-created events.

Signed-off-by: Johan Herland <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>
Cc: Mauro Carvalho Chehab <email address hidden>

17a0e05... by Johan Herland <email address hidden> on 2019-12-01

models.Event: Add the user responsible for the event

This allows using the events as a kind of audit log, to see how a
patch came to its current state/delegate.

Signed-off-by: Johan Herland <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>
Cc: Mauro Carvalho Chehab <email address hidden>

683b9aa... by Stephen Finucane <email address hidden> on 2019-11-30

templates: Use 'en' locale

As discussed at [1], the UI was originally written in Australian English
but as it's been through a couple of pairs of hands since the chances
are things are more than a little messed up. Just use 'en' as our locale
rather than 'en-US', 'en-AU' or anything else.

[1] https://lists.ozlabs.org/pipermail/patchwork/2019-November/006342.html

Signed-off-by: Stephen Finucane <email address hidden>
Suggested-by: Daniel Axtens <email address hidden>