catalyst / moodle-tool_cloudmetrics

Realtime metrics for Moodle
https://moodle.org/plugins/tool_cloudmetrics
GNU General Public License v3.0
0 stars 3 forks source link

When implementing custom metrics with camelcase names, the graphs API does not showing data for these due to mismatched names. #168

Closed josepico01 closed 2 months ago

josepico01 commented 4 months ago

While implementing custom metrics, it was found that camelcase metric's names are not supported by the graph API in tool_cloudmetrics and the reason is that the metric's name is passed as an identifier in queries (not double-quoted), therefore it is transformed into a lowercase column and will not fetch data for the corresponding metric.

As a result, a warning error is thrown when debugging is on Dev mode.