Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
1562cfe6
Commit
1562cfe6
authored
Feb 21, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graph_editor: sort json for deterministic output
parent
df7dc0eb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
5 deletions
+17
-5
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_getGraph.py
...ortal_skins/erp5_graph_editor/BusinessProcess_getGraph.py
+4
-1
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/DCWorkflow_getGraph.py
...tem/portal_skins/erp5_graph_editor/DCWorkflow_getGraph.py
+4
-1
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/Workflow_getGraph.py
...eItem/portal_skins/erp5_graph_editor/Workflow_getGraph.py
+4
-1
bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.png
...itor_zuite/testWorkflowGraph-reference-snapshot-1.png.png
+0
-0
bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml
...itor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml
+1
-1
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingListGraphAsJSON.py
...portal_skins/erp5_item/Item_getTrackingListGraphAsJSON.py
+4
-1
No files found.
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/BusinessProcess_getGraph.py
View file @
1562cfe6
...
...
@@ -74,4 +74,7 @@ class_definition = {
}
}
return
json
.
dumps
(
dict
(
graph
=
getBusinessProcessGraph
(
context
),
class_definition
=
class_definition
),
indent
=
2
)
return
json
.
dumps
(
dict
(
graph
=
getBusinessProcessGraph
(
context
),
class_definition
=
class_definition
),
sort_keys
=
True
,
indent
=
2
)
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/DCWorkflow_getGraph.py
View file @
1562cfe6
...
...
@@ -89,4 +89,7 @@ class_definition = {
}
}
return
json
.
dumps
(
dict
(
graph
=
getDCWorkflowGraph
(
context
),
class_definition
=
class_definition
),
indent
=
2
)
return
json
.
dumps
(
dict
(
graph
=
getDCWorkflowGraph
(
context
),
class_definition
=
class_definition
),
sort_keys
=
True
,
indent
=
2
)
bt5/erp5_graph_editor/SkinTemplateItem/portal_skins/erp5_graph_editor/Workflow_getGraph.py
View file @
1562cfe6
...
...
@@ -64,4 +64,7 @@ def getWorkflowGraph(workflow):
graph
[
'node'
][
state_id
][
'coordinate'
]
=
position_graph
[
'node'
][
state_id
][
'coordinate'
]
return
graph
return
json
.
dumps
(
dict
(
graph
=
getWorkflowGraph
(
context
),
class_definition
=
{}),
indent
=
2
)
return
json
.
dumps
(
dict
(
graph
=
getWorkflowGraph
(
context
),
class_definition
=
{}),
sort_keys
=
True
,
indent
=
2
)
bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.png
View replaced file @
df7dc0eb
View file @
1562cfe6
51.3 KB
|
W:
|
H:
50.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml
View file @
1562cfe6
...
...
@@ -16,7 +16,7 @@
</item>
<item>
<key>
<string>
height
</string>
</key>
<value>
<int>
2
84
</int>
</value>
<value>
<int>
2
77
</int>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
...
...
bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_getTrackingListGraphAsJSON.py
View file @
1562cfe6
...
...
@@ -37,4 +37,7 @@ for i, tracking in enumerate(reversed(portal.portal_simulation.getTrackingList(a
link
=
movement
.
absolute_url
(),
source
=
movement
.
getSourceUid
()
or
"null"
,
destination
=
movement
.
getDestinationUid
()
or
"null"
)
return
json
.
dumps
(
dict
(
graph
=
graph
,
class_definition
=
class_definition
),
indent
=
2
)
return
json
.
dumps
(
dict
(
graph
=
graph
,
class_definition
=
class_definition
),
sort_keys
=
True
,
indent
=
2
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment