Changesets: MantisBT
|
master 114435a2 2019-03-02 12:15 Details Diff |
Set JSHint options and use strict mode | ||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
|
master de868500 2019-03-02 12:13 Details Diff |
Disable autoSkip for X axis on bar charts This allows better display of labels; improves on earlier introduction of maxRotation option. |
||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
|
master 2d88283d 2019-03-02 08:31 Committer: dregad Details Diff |
Fix minor regression with PR 1464 When defining a standard filter that returns "any" issue, don't specify the project id. Advanced and simple filters both works in the same way, regarding inclusion of subprojects, as long as the project_id property is not filled explicitly. Prevous to PR1464, the api would include subprojects always, but after the PR, it would have different behaviour if, for example, having configured $g_view_filters = ADVANCED_ONLY Fixes: 0025515 |
Affected Issues 0025515 |
|
| mod - core/filter_api.php | Diff File | ||
|
master c20e9622 2019-03-02 08:11 Details Diff |
helper_parse_id(): trim whitespace before processing Alternative fix for PR https://github.com/mantisbt/mantisbt/pull/1470 as per discussion with @vboctor. Thanks to @Kirill for the original contribution. Fixes 0025532 |
Affected Issues 0025532 |
|
| mod - core/helper_api.php | Diff File | ||
|
master 8ecbb7a2 2019-03-01 00:01 Details Diff |
Revert 'New helper function to get status color by label' This new function is finally not needed, since we get a status code and not a value from the localized enum lookup. |
||
| mod - core/helper_api.php | Diff File | ||
|
master 8e6f674c 2019-02-28 23:56 Details Diff |
Fix status color lookup with local language The $g_status_colors array is indexed by English values but the charts data contain localized values, causing the lookup to always return the default color. graph_status_colors_to_colors() was modified to add an extra lookup on the localized status enum to get the status code before retrieving the color. |
||
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master 212f2698 2019-02-28 22:08 Details Diff |
Add cdn.jsdelivr.net to CSP script-src exceptions | ||
| mod - plugins/MantisGraph/MantisGraph.php | Diff File | ||
|
master 24842e30 2019-02-28 21:55 Details Diff |
Fix case of Chart.js script filenames | ||
| mod - plugins/MantisGraph/MantisGraph.php | Diff File | ||
|
master 4b99aecd 2019-02-27 02:19 Details Diff |
Ignore source/empty ids when adding multiple relationships Fixes 0025533 |
Affected Issues 0025533 |
|
| mod - bug_relationship_add.php | Diff File | ||
|
master 00d3f831 2019-02-27 01:01 Details Diff |
Use light gray as fallback for graph status color The MantisBT default (white) causes the pie chart (or a part of it) to become invisible unless the user hovers their mouse on top of them, since the slices are displayed without border. Issue 0025523 |
Affected Issues 0025523 |
|
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master 45dca872 2019-02-27 00:59 Details Diff |
Allow custom fallback status color When no color is defined in $g_status_color for a given status, get_status_color() falls back to a hardcoded pure white (#ffffff). This lets the caller specify which color to use in this case. Issue 0025523 |
Affected Issues 0025523 |
|
| mod - core/helper_api.php | Diff File | ||
|
master 0012edaf 2019-02-27 00:52 Details Diff |
Only get status colors matching the graph's data Prior to this, the whole set of status colors was returned, resulting in colors sometimes not matching the actual status when some of them are not present in the chart's dataset (as mentioned in 0025523:0061577). Fixes 0025523 |
Affected Issues 0025523 |
|
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master a10cb8e6 2019-02-27 00:35 Details Diff |
New helper function to get status color by label Issue 0025523 |
Affected Issues 0025523 |
|
| mod - core/helper_api.php | Diff File | ||
|
master 52b2228e 2019-02-27 00:34 Details Diff |
Remove unnecessary variable assignments | ||
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master 6d3566e9 2019-02-27 00:33 Details Diff |
Remove unused variables | ||
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master 29fe7122 2019-02-26 06:43 Details Diff |
Set color scheme for Pie charts Add a new optional boolean parameter to graph_pie() API, so that the caller can decide whether they want to use the default color scheme, or the configured MantisBT colors. When the data attribute is undefined, Chart.js uses the colors from chartjs-plugin-colorschemes, otherwise This allows using a wider palette for Pie charts that potentially have more values than defined by $g_status_colors such as By Category. Additionally as a small optimization, there is no need to define two sets of color data attributes (for border and background), since they are identical Fixes 0025523 |
Affected Issues 0025523 |
|
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
| mod - plugins/MantisGraph/pages/status_graph.php | Diff File | ||
|
master caaa3fc4 2019-02-26 06:16 Details Diff |
Canvas should have closing tags | ||
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master 6a8354a9 2019-02-26 05:59 Details Diff |
Use specific color scheme for Issue Trends chart Make use of chartjs-plugin-colorschemes instead of hardcoding RGB values for each data set. |
||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
|
master 75816afa 2019-02-26 05:56 Details Diff |
Set default color scheme for bar charts | ||
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
|
master 4e3aca87 2019-02-26 05:50 Details Diff |
Add chartjs-plugin-colorschemes This Chart.js plugins defines a number of preset color schemes https://github.com/nagix/chartjs-plugin-colorschemes Requires Chart.js 2.5.0 or later. Issue 0025523 |
Affected Issues 0025523 |
|
| mod - library/README.md | Diff File | ||
| mod - plugins/MantisGraph/MantisGraph.php | Diff File | ||
| add - plugins/MantisGraph/files/chartjs-plugin-colorschemes.min.js | Diff File | ||
|
master c1064546 2019-02-26 05:42 Details Diff |
Graph: set max slices in Categories pie chart When there is a large number of Categories defined in the system, the By Category pie chart is cramped and difficult to read. This sets a (hardcoded for now) limit on the number of slices, and regroups all the remaining categories under an "others" slice. Fixes 0025522 |
Affected Issues 0025522 |
|
| mod - plugins/MantisGraph/lang/strings_english.txt | Diff File | ||
| mod - plugins/MantisGraph/pages/category_graph.php | Diff File | ||
|
master 969201b1 2019-02-25 11:24 Committer: vboctor Details Diff |
Fix MantisGraph limit for developers graph Fixes over previous PR 1442: - Fix regression where the graph for "Developers by Fixed Issues" was not being limited to top 20 results. - Remove unused parameter from `create_reporter_summary()` |
||
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
|
master f4329260 2019-02-25 10:12 Committer: dregad Details Diff |
Adjust barchart labels after Chart.js update Issue 0025488 |
Affected Issues 0025488 |
|
| mod - plugins/MantisGraph/files/MantisGraph.js | Diff File | ||
|
master b7d7eca7 2019-02-25 06:31 Details Diff |
Sort Categories by issues count descending Fixes 0025524 |
Affected Issues 0025524 |
|
| mod - plugins/MantisGraph/pages/category_graph.php | Diff File | ||
|
master 3b1cd68d 2019-02-25 06:29 Details Diff |
Set graph width factor based on number of categories The ratio is calculated to be 1 when there are < 25 categories, and increases linearly until a minimum factor of 0.25 is reached with 100 categories. Fixes 0025524 |
Affected Issues 0025524 |
|
| mod - plugins/MantisGraph/pages/category_graph.php | Diff File | ||