summaryrefslogtreecommitdiffstats
path: root/non-puppet/qtmetrics/ajaxrequest.js
Commit message (Collapse)AuthorAgeFilesLines
* Delete unused filesDavid Skoland2021-04-061-172/+0
| | | | | | | | | bootstrap has been superseded by coin and qtmetrics has been superseded by Grafana. testresults.qt.io has been moved to: https://git.qt.io/qtqa/testresults.qt.io Task-number: QTQAINFRA-1958 Change-Id: I6341b12c21f3566ae645f31927a6e6848e183b08 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
* Qt Metrics v2.1: Performance optimizationJuha Sippola2014-03-271-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Changed both the CI project and autotest dashboards to utilize the new "latest" database tables that include data only for the latest builds per each project. Reading data from these tables is much quicker than from the complete tables because of the size of the tables and because there is no need to check the latest build number in database searches. Added functionality to the metrics engine to repeat calling one metrics box several times per one update. Changed both the CI dashboards to use the two rounds to load the data in levels 1-3. The first round loads the latest build data and the second round loads also the all builds data. This will ensure that the first round data will be visible very quickly while the second round may take a bit longer. Made also the required modifications to the RTA metrics because of the changes to the metrics engine. Changed the list cut mode in CI project dashboard to the short list (with text "show full list") only on the first page load like with the autotest dashboard. Change-Id: Ic4ace5a53521a141d5602c2cdd61df7725c8fd64 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v1.5.3: Ajax and metrics box structure refactoringJuha Sippola2014-01-091-12/+9
| | | | | | | | | | | | | | | | | | | | Some refactoring is needed to the Ajax module and its calls and responses to make it easier to add new metrics pages and to avoid duplicate code. This is pure implementation change and is not visible to the user. Changes include following: The CI specific variable in metricsdefinitions.php was renamed to be generic so that the same file structure can be used for new pages. The multiple fixed filter parameters in get method changed to one filter string so that the same interface can be used for different needs. The order of execution in initial page loading moved to one file (metricspageci.php) to make it easier to adjust for different needs. A common purpose function getLocalTime moved from ci/functions.php to new file commonfunctions.php. Change-Id: I899b8b7432f202ffbb67687b79ef9b8310a164bd Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics c1.5.1: URL encoding - part 2Juha Sippola2013-12-311-0/+2
| | | | | | | | | Made the URL encoding correction also to the Status box (to complete the changes made in v1.5). This is pure implementation change and is not visible to the user. Change-Id: I801a9d7bcffe656ae9647956c68ba698d56d81cd Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v1.5: URL encodingJuha Sippola2013-09-271-0/+3
| | | | | | | | | | Ajax Get method cannot pass special characters like plus sign in the URL. Previously a character manipulation solution used, now replaced with a proper PHP and JavaScript function calls. This is pure implementation issue and is not visible to the user. Change-Id: Idabd1dddd82a161b4695a8b234c2a055d77ab2f7 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v1.4: Sorting added to Autotest dashboard listJuha Sippola2013-06-271-6/+7
| | | | | | | | | | | | Sorting the list of Autotests by failure category column added to Autotest dashboard level 1. The sorted column is identified to the user. The color codes used in Autotest result history (v1.3) applied to level 1 list column titles. Description (help) files updated accordingly. (This change replaces the first one that was abandoned due to merge problems in depending version v1.3) Change-Id: I8a1157d2aadf0647b0186e99a44ef07f2291c2a6 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v1.2: Added timescale filterJuha Sippola2013-06-251-2/+2
| | | | | | | | | | | | | | | | Added Timescale filter with options "All" and "Since", the latter use a calendar component to set the date. This affects both the Project and Autotest dashboard in their level 1 view. The calendar component taken from: http://www.triconsole.com/php/calendar_datepicker.php (v3.69) Tested with Chrome, Firefox, Opera, IE, Safari. W3C validator gives some HTML5 errors/warnings on the calendar component (author informed and correction requested). Change-Id: If06f244dad60a3d251bf94664dce0e011060d829 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v1.1.1: Improvement to Databse status boxJuha Sippola2013-06-111-5/+31
| | | | | | | | | | | Changed the order how the boxes are loaded on initial page load. It is now: Database status box -> Filters -> Metrics boxes (the Database status box was previously the last one). This is to indicate the possible database rebuild progress instead of of welcome text when loading the page first time during rebuild. Change-Id: I4077ce942dce56f49db81db741ec0c0d1e6247e9 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v1.1: Added database status boxJuha Sippola2013-06-101-1/+27
| | | | | | | | | | | | | | | | | | | Added new Ajax box for database status showing session start time and database update time. If update in progress, show the update start time and and step progress. If database updated after session start time, show that new data is available. Time is in GMT in database but shown as local time (with time difference to GMT) in the status box. Project dashboard shows the build time in GMT only. Changes verified in Windows browsers: Firefox, Chrome, Opera, IE8 (by modifying PC timezone setting) and in Mac browsers: Safari, Chrome, Firefox, Iron. Changes validated with W3C HTML5 and CSS3 validators. Change-Id: Ibcbaa265aef92772ca60db14a86a0708615c4bd1 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v0.16: Ajax loading animation addedJuha Sippola2013-05-301-1/+1
| | | | | | | | | | Added a gif animation to show that the Ajax loading is in progress. It will show next to "Loading..." text in metrics boxes. Purpose is to show that the page is not stuck even though the first time loading may take time. Change-Id: Ic4ddda9b417edd383cbe53fb9a1aee0d2197f892 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v0.11.1 Fix to Autotest SQL read problemJuha Sippola2013-05-161-0/+2
| | | | | | | | | | | | Autotest box SQL read failed, fixed by initalising arrays from session variables. Changed MySQL extension from mysql to the new mysqli. Changed initial data loading order so that filters are loaded before any of the boxes are loaded (to get rid of the 'please reload' note). Change-Id: I5535992fbb06f6e443f9de02231cb75fd5c4279c Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Qt metrics v0.11: Failing Autotests box addedJuha Sippola2013-05-151-2/+2
| | | | | | | | | Added Autotest filter and new metrics box for Most commonly failing insignificant autotests. It lists failing Autotests with their occurrences in Project and Configuration builds. Change-Id: Ie15a3a7c15363a52ac12a3cdefff9608a53d2376 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Add initial version of QtMetricsJuha Sippola2013-05-081-0/+116
Qtmetrics is a PHP / Mysql / Ajax implementation to show qt build statistics and test results on a web page. Change-Id: I5a1559b2ff0611d6d24d0bde1dd18a939fb80639 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>