joomla / statistics-server

Server for collecting environment stats for Joomla Installations
GNU General Public License v2.0
11 stars 17 forks source link

[RFC] API endpoint for combined DB type & version #41

Closed alikon closed 5 years ago

alikon commented 6 years ago

Pull Request for Issue #17 .

Summary of Changes

similar to #40

to do

Testing Instructions

apply this patch from the mysql console drop the current insert trigger drop the current update trigger create the new insert trigger create the new update trigger call the new api endopoint http://localhost/jstats/www/?source=db_type_version

this is how the new API endpoint response look like screenshot from 2018-09-07 19-57-12

mbabker commented 6 years ago

This needs to go through buildResponseData or something similar to ensure the grouping/sanitization step takes place as required (remember the API does not allow access to get the full versions of everything without special permission, result sets are grouped generally on minor versions or the first word of the O/S name for those).

alikon commented 5 years ago

reworked on #43