View Issue Details

IDProjectCategoryView StatusLast Update
0034614mantisbtcode cleanuppublic2024-09-07 10:43
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.27.0Fixed in Version2.27.0 
Summary0034614: Refactoring GraphViz API and Workflow Graph
Description

General code improvement and cleanup, suggested by static analysis warnings while working on Workflow Graph and graphviz_api.php.

TagsNo tags attached.

Activities

Related Changesets

MantisBT: master 1fcc1cfd

2023-09-29 11:20

dregad


Details Diff
Use class constants instead of global defines

Fixes 0034614
Affected Issues
0034614
mod - core/graphviz_api.php Diff File

MantisBT: master 96521463

2023-09-29 11:24

dregad


Details Diff
Define visibility of methods and properties

Renamed protected methods (removed leaading `_`):
- _print_graph_defaults() => print_graph_defaults()
- _build_attribute_list() => build_attribute_list()

Fixes 0034614
Affected Issues
0034614
mod - core/graphviz_api.php Diff File

MantisBT: master a9530538

2023-09-29 11:32

dregad


Details Diff
PHPDoc

Fixes 0034614
Affected Issues
0034614
mod - core/graphviz_api.php Diff File

MantisBT: master 7144abfe

2023-09-29 11:34

dregad


Details Diff
Remove useless is_array() check

Fixes 0034614
Affected Issues
0034614
mod - core/graphviz_api.php Diff File

MantisBT: master 52b561ac

2024-09-02 12:45

dregad


Details Diff
PHPDoc: reference Graphviz Visual Editor

Useful to test validity of generated graphs.
https://github.com/magjac/graphviz-visual-editor

Fixes 0034614
Affected Issues
0034614
mod - core/graphviz_api.php Diff File

MantisBT: master b0c95422

2024-09-02 13:07

dregad


Details Diff
Refactor Workflow Graph

Reduce code complexity and improve performance by
- Using Status Id instead of label as Graph node id
- Adding labels to graph nodes
- Moving config_get() and lang_get() calls out of the loop

Fixes 0034614
Affected Issues
0034614
mod - workflow_graph_img.php Diff File