EBernhardson (WMF) has submitted this change and it was merged.

Change subject: Improve INITIAL_WORKFLOWS
......................................................................


Improve INITIAL_WORKFLOWS

I changed the URLs to what actually works in the prototype , e.g.
  /Flow:Special/User:Zomg&flow=discussion
doesn't work, but
  /Special:Flow/Sandbox?workflow=<discussionUUID>
does.

It's not perfect but an improvement.

Change-Id: I18210035fda63be6e7fe491ae7c3f911788b7a99
---
M INITIAL_WORKFLOWS
1 file changed, 25 insertions(+), 10 deletions(-)

Approvals:
  EBernhardson (WMF): Verified; Looks good to me, approved



diff --git a/INITIAL_WORKFLOWS b/INITIAL_WORKFLOWS
index faf0214..fda0ed1 100644
--- a/INITIAL_WORKFLOWS
+++ b/INITIAL_WORKFLOWS
@@ -9,15 +9,31 @@
        title - custom table
        posts - custom table
 
+and then, each item you create has a unique UUID.
 
-A discussion can be viewed as the full discussion, or just a topic can be 
fetched:
+You always refer to flow objects with a page, which must exist -- you cannot 
create discussions for a page that does not exist.
+In the examples below, the "Sandbox" page must have some content.
 
+A board using this workflow can be viewed as the full discussion, or just a 
topic can be fetched:
 
 View the full discussion:
-       /Flow:Special/User:Zomg&flow=discussion
+       /Special:Flow/Sandbox?workflow=<discussionUUID>
+or since a discussion is the default workflow and there is only one per page 
(see BLOCKS, below), just
+       /Special:Flow/Sandbox
+It is an error to specify the discussionUUID for another page.
 
 View a single topic:
-       /Flow:Special/User:Zomg&flow=topic&name=an7imao1jrl8bjq6netpq3oi
+       /Special:Flow/Sandbox?workflow=<topicUUID>
+
+The implicit action is 'action=view', but there are others, for example:
+
+View board history for a page (shows history for all its topics)
+       /Special:Flow/Sandbox?action=topic-history
+
+View one topic's history
+       /Special:Flow/Sandbox?workflow=<topicUUID>&action=topic-history
+View Post history of a reply post to the above:
+       
/Special:Flow/Sandbox?workflow=<topicUUID>&action=post-history&topic[postId]=<somePostUUID>
 
 
 
@@ -27,7 +43,7 @@
 The prototype for Flow is very simple, all we need to implement is a 
discussion system.  This will be
 slightly complicated by both the top level Discussion and the individual 
Topic's being "Flow Objects".
 To accomplish this we will define 3 types of blocks:
-       
+
        Summary
        TopicList
        Topic
@@ -41,19 +57,18 @@
        singleton: true  // Only a single discussion may exist per wiki page
        closeable: false // Discussions are not closeable, they are forever
 
-       view discussion: /Special:Flow/User:Zomg?flow=discussion&action=view
-       create discussion: /Special:Flow/User:Zomg?flow=discussion&action=view
+       view discussion: 
/Special:Flow/Sandbox?workflow=<discussionUUID>&action=view
+       create discussion: 
/Special:Flow/Sandbox?workflow=<discussionUUID>&action=view
 
 The discussion-topic workflow will be defined as
        name: discussion-topic
        blocks: [ Topic ]
        singleton: false // Multiple discussion-topics may exist per wiki page
        closeable: true  // Topics can be closed to additions
-       
-       view topic: 
/Special:Flow/User:Zomg?flow=discussion-topic&action=view&topic=an7imao1jrl8bjq6netpq3oi
-       reply to topic: 
/Special:Flow/User:Zomg?flow=discussion-topic&action=view&topic=an7imao1jrl8bjq6netpq3oi
-       reply to post: 
/Special:Flow/User:Zomg?flow=discussion-topic&action=reply&post=an7imao1jrl8bjq6netpq3oi
 
+       view topic: 
/Special:Flow/Sandbox?flow=discussion-topic&action=view&topic=an7imao1jrl8bjq6netpq3oi
+       reply to topic: 
/Special:Flow/Sandbox?flow=discussion-topic&action=view&topic=an7imao1jrl8bjq6netpq3oi
+       reply to post: 
/Special:Flow/Sandbox?flow=discussion-topic&action=reply&post=an7imao1jrl8bjq6netpq3oi
 
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/86071
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I18210035fda63be6e7fe491ae7c3f911788b7a99
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Spage <sp...@wikimedia.org>
Gerrit-Reviewer: Bsitu <bs...@wikimedia.org>
Gerrit-Reviewer: EBernhardson (WMF) <ebernhard...@wikimedia.org>
Gerrit-Reviewer: Werdna <agarr...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to