diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-05-22 11:29:43 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-05-25 08:42:11 +0200 |
commit | 0a4d5f75f078abd6c6d8d4a58d0b4efc8c5cd512 (patch) | |
tree | 06124c25d9cfd2e7c0fe7a6ca543d2ed2f401e56 /sonar-core | |
parent | e009561a5e3210480c7bef0ee20cebbc83d531bc (diff) | |
download | sonarqube-0a4d5f75f078abd6c6d8d4a58d0b4efc8c5cd512.tar.gz sonarqube-0a4d5f75f078abd6c6d8d4a58d0b4efc8c5cd512.zip |
Add project name in compute report queue
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java | 10 | ||||
-rw-r--r-- | sonar-core/src/main/resources/org/sonar/core/computation/db/AnalysisReportMapper.xml | 5 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java b/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java index 83c7bb7bb5a..e09270fa4f5 100644 --- a/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java +++ b/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java @@ -27,6 +27,7 @@ import javax.annotation.CheckForNull; public class AnalysisReportDto { private Long id; private String projectKey; + private String projectName; private Status status; private String uuid; private Long createdAt; @@ -51,6 +52,15 @@ public class AnalysisReportDto { return this; } + public String getProjectName() { + return projectName; + } + + public AnalysisReportDto setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + public Status getStatus() { return status; } diff --git a/sonar-core/src/main/resources/org/sonar/core/computation/db/AnalysisReportMapper.xml b/sonar-core/src/main/resources/org/sonar/core/computation/db/AnalysisReportMapper.xml index 7e37e574d99..28b7d9fbf57 100644 --- a/sonar-core/src/main/resources/org/sonar/core/computation/db/AnalysisReportMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/computation/db/AnalysisReportMapper.xml @@ -6,6 +6,7 @@ <!-- the data report is not brought back by default as it could be too big in memory --> ar.id, ar.project_key as projectKey, + ar.project_name as projectName, ar.report_status as status, ar.uuid as uuid, ar.created_at as createdAt, @@ -16,9 +17,9 @@ <insert id="insert" parameterType="AnalysisReport" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> insert into analysis_reports - (project_key, uuid, report_status, created_at, updated_at, started_at, finished_at) + (project_key, project_name, uuid, report_status, created_at, updated_at, started_at, finished_at) values ( - #{projectKey,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, + #{projectKey,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{startedAt,jdbcType=BIGINT}, #{finishedAt,jdbcType=BIGINT} ) |