View Revisions: Issue #27122

Summary 0027122: 3rd-party plugins cannot use chart.js library bundled with MantisGraph
Revision 2020-08-03 17:37 by dregad
Description

When the MantisGraph plugin was modified to rely on chart.js as part of 2.0 release, the library was loaded on every single page.

While not very efficient, this allowed 3rd-party plugins to use the chart.js library to display their own graphs.

From MantisBT 2.8.0, the MantisGraph Plugin only loads chart.js for its own pages (see 0023446), which broke the above-mentioned plugins, as they could no longer access chart.js resources, unless they bundled the library themselves, which is also inefficient and could lead to compatibility conflicts due to version mismatch.

Revision 2020-08-03 12:35 by dregad
Description

When the MantisGraph plugin was modified to rely on chart.js, the library was loaded on every single page.

While not very efficient, this allowed 3rd-party plugins to use chart.js to display their own graphs.

From MantisBT 2.8.0, the MantisGraph Plugin only loads chart.js for its own pages (see 0023446), which broke the above-mentioned plugins, as they could no longer access chart.js resources, unless they bundled the library themselves, which is also inefficient and could lead to compatibility conflicts due to version mismatch.