From 2d440449b0bc1a9b3b0664b32cb4ffe0496e373f Mon Sep 17 00:00:00 2001 From: Valerio Cosentino Date: Mon, 16 Sep 2019 16:19:03 +0200 Subject: [PATCH] [perceval] Remove fake recomendation data --- .../perceval/backends/scava/scava.py | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/web-dashboards/perceval-scava/perceval/backends/scava/scava.py b/web-dashboards/perceval-scava/perceval/backends/scava/scava.py index a024b573b..2e2b872a3 100644 --- a/web-dashboards/perceval-scava/perceval/backends/scava/scava.py +++ b/web-dashboards/perceval-scava/perceval/backends/scava/scava.py @@ -457,46 +457,6 @@ def get_items(self, category=CATEGORY_METRIC, project=None): "artifacts", "artifact", "mpp", project_name) recommendation_project_raw = self.fetch(recommendation_project_api) - # Fake data - recommendation_project_raw = """ - { - "id": "5b155b04065f2d726d6db241", - "tags": null, - "name": "json-simple", - "shortName": null, - "description": "A simple Java toolkit for JSON. You can use json-simple to encode or decode JSON text.", - "fullName": "fangyidong/json-simple", - "methodDeclarations": [], - "year": 0, - "active": true, - "homePage": "", - "type": null, - "private_": null, - "fork": null, - "html_url": "https://github.com/fangyidong/json-simple", - "clone_url": "https://github.com/fangyidong/json-simple.git", - "git_url": "git://github.com/fangyidong/json-simple.git", - "ssh_url": null, - "svn_url": null, - "mirror_url": null, - "size": 0, - "master_branch": "master", - "webDashboardId": "app/kibana#/dashboard/ScavaProject?_a=(query:(match:(project.keyword:(query:jsonsimple))))", - "metricPlatformId": "jsonsimple", - "readmeText": "Please visit: http://code.google.com/p/json-simple/", - "dependencies": [ - "junit:junit" - ], - "starred": [ - { - "login": "veita", - "datestamp": "2015-04-13T08:55:08Z" - } - ], - "parent": null - } - """ - try: recommendation_artifacts = json.loads(recommendation_project_raw) except: