Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change transitions graph to editable dot file
Anna Siwikf3d6fb4e895d
diff --git a/docs/graphs/transitions.dot b/docs/graphs/transitions.dotnew file mode 100644index 0000000000..82d0918177--- /dev/null+++ b/docs/graphs/transitions.dot@@ -0,0 +1,14 @@+digraph {+ rankdir="LR";+ subgraph cluster_order_DeliveryGroup_status {+ style=invis;+ "order.delivery_group.status._initial" [label="" shape=point]+ "order.delivery_group.status.new" [label=new shape=circle width=1 fixedsize=true style=filled fillcolor="#32C8FF"]+ "order.delivery_group.status.shipped" [label=shipped shape=circle width=1 fixedsize=true style=filled fillcolor="#29BF00"]+ "order.delivery_group.status.cancelled" [label=cancelled shape=circle width=1 fixedsize=true style=filled fillcolor="#E2E2E2"]+ "order.delivery_group.status._initial" -> "order.delivery_group.status.new" [label=process]+ "order.delivery_group.status.new" -> "order.delivery_group.status.cancelled" [label=cancel]+ "order.delivery_group.status.new" -> "order.delivery_group.status.shipped" [label=ship]+ "order.delivery_group.status.shipped" -> "order.delivery_group.status.cancelled" [label=cancel]+ }+}diff --git a/docs/img/delivery_group_statuses.png b/docs/img/delivery_group_statuses.pngdeleted file mode 100644index 379e818ac5..0000000000Binary files a/docs/img/delivery_group_statuses.png and /dev/null differdiff --git a/docs/img/transitions.png b/docs/img/transitions.pngnew file mode 100644index 0000000000..19b3797425Binary files /dev/null and b/docs/img/transitions.png differdiff --git a/docs/orders.rst b/docs/orders.rstindex 9cccc53197..09ae0253c3 100644--- a/docs/orders.rst+++ b/docs/orders.rst@@ -26,7 +26,8 @@ There are three possible delivery group statuses:Delivery Group statuses flow-----------------------------.. image:: img/delivery_group_statuses.png+.. Graph is generated from transitions.dot file in graphs folder. You can edit it and convert to png (with graphviz installed) by executing: dot -Tpng docs/graphs/transitions.dot > docs/img/transitions.png+.. image:: img/transitions.pngRegular flow of statuses is from ``NEW`` to ``SHIPPED``. For managing states Saleor uses `django-fsm <https://github.com/kmmbvnr/django-fsm>`_ package. Actions performed within changing status are placed in DeliveryGroup model and are as follows: