Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Workflow with a preview collection (fixes #126) #127

Merged
merged 13 commits into from
Sep 30, 2016

Conversation

leplatrem
Copy link
Contributor

@leplatrem leplatrem commented Sep 29, 2016

Fixes #126

  • Draft of documentation/schema
  • Switch resources parsing to triplet ( (source, None, destination) if two provided)
  • Generalize the signing + copy of to-sign to to-review
  • Implement functional test
  • Update changelog

@tarekziade r?

Copy link
Contributor

@tarekziade tarekziade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM besides a few nits

@@ -185,6 +185,20 @@ makes sure that:

See `Kinto groups API <http://kinto.readthedocs.io/en/stable/api/1.x/groups.html>`_ for more details about how to define groups.

If the review process is enabled, it is possible to configure a *preview*
collection, that will be updated and signed when the status is set to ``to-review``.
This *preview* collection can be used by client to test and validate the changes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/client/clients

.. code-block:: ini

kinto.signer.resources =
/buckets/staging/collections/articles;/buckets/preview/collections/articles;/buckets/blog/collections/articles
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just an proposal, feel free to ignore, but could we use "=>" instead of ";" to show the worklfow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I added it to #88

@@ -345,6 +359,12 @@ To generate a new keypair, you can use the following command::
Running the tests
=================

In order to contribute and run the full functional test suite locally you need
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ? can't we use the latest binary of autograph ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use go get

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case we should pin the autograph version we use to the latest release I think.

@@ -310,6 +327,8 @@ def update_source_status(self, status, request):
attrs = {'status': status.value}
if status == STATUS.WORK_IN_PROGRESS:
attrs["last_author"] = request.prefixed_userid
if status == STATUS.TO_REVIEW:
attrs["last_editor"] = request.prefixed_userid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want last_author, last_editor, last_reviewer to be constants ?

@leplatrem leplatrem changed the title [WIP] Workflow with a preview collection (fixes #126) Workflow with a preview collection (fixes #126) Sep 29, 2016
@tarekziade
Copy link
Contributor

r+

@leplatrem leplatrem merged commit 7a03df2 into master Sep 30, 2016
@leplatrem leplatrem deleted the 126-preview-collection branch September 30, 2016 08:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants