]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5623 Remove the last data mock
authorStas Vilchik <vilchiks@gmail.com>
Fri, 17 Oct 2014 13:33:23 +0000 (15:33 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 17 Oct 2014 13:33:23 +0000 (15:33 +0200)
server/sonar-web/src/main/coffee/analysis-reports/app.coffee
server/sonar-web/src/main/coffee/analysis-reports/mockjax.coffee [deleted file]

index fd818008d5352e27fe4e93a029577d22dd1c9b78..4a82e4479ca78bdb9204690a3ea4127c7eec9094 100644 (file)
@@ -26,7 +26,6 @@ requirejs [
   'analysis-reports/views/actions-view'
 
   'common/handlebars-extensions'
-  'analysis-reports/mockjax'
 ], (
   Backbone, Marionette
   Layout
diff --git a/server/sonar-web/src/main/coffee/analysis-reports/mockjax.coffee b/server/sonar-web/src/main/coffee/analysis-reports/mockjax.coffee
deleted file mode 100644 (file)
index ce9e754..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-define ['third-party/jquery.mockjax'], ->
-
-  jQuery.mockjaxSettings.contentType = 'text/json'
-  jQuery.mockjaxSettings.responseTime = 250
-
-
-  jQuery.mockjax
-    url: "#{baseUrl}/api/analysis_reports/history"
-    responseText: JSON.stringify
-      paging:
-        pageIndex: 1
-        pageSize: 3
-        total: 3
-        pages: 1
-      reports: [
-        {
-          id: 1
-          project: "org.codehaus.sonar:sonar"
-          projectName: "SonarQube"
-          startDate: "2014-10-09T11:11:11+02:00"
-          endDate: "2014-10-09T11:11:16+02:00"
-          duration: "1:30"
-          status: "DONE"
-        }
-        {
-          id: 2
-          project: "org.codehaus.sonar-plugins.visualstudio:sonar-visual-studio-plugin"
-          projectName: "Analysis Bootstrapper for Visual Studio Projects"
-          startDate: "2014-10-09T11:13:11+02:00"
-          endDate: "2014-10-09T11:12:47+02:00"
-          duration: "1:30"
-          status: "DONE"
-        }
-        {
-          id: 3
-          project: "org.codehaus.sonar:sonar"
-          projectName: "SonarQube"
-          startDate: "2014-10-09T11:14:11+02:00"
-          endDate: "2014-10-09T11:17:00+02:00"
-          duration: "1:30"
-          status: "FAILED"
-        }
-      ]