-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update project and analyzer run data models (#1316)
- Loading branch information
1 parent
7a3bff5
commit c4c4562
Showing
13 changed files
with
147 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { LocalDateTime } from '@js-joda/core'; | ||
|
||
export type AnalyzerRun = { | ||
analyzerName: String; | ||
commitHash: String; | ||
localDateTime: LocalDateTime; | ||
numberOfIssues: number; | ||
projectName: String; | ||
projectUrl: String; | ||
status: String; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
.../main/java/io/github/martinwitt/laughing_train/api/graphql/dto/AnalyzerRunGraphQlDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package io.github.martinwitt.laughing_train.api.graphql.dto; | ||
|
||
import io.github.martinwitt.laughing_train.persistence.dao.AnalyzerRunDao; | ||
import java.time.LocalDateTime; | ||
import org.eclipse.microprofile.graphql.Name; | ||
|
||
@Name("AnalyzerRun") | ||
public class AnalyzerRunGraphQlDto { | ||
|
||
private String projectName; | ||
private String projectUrl; | ||
private String analyzerName; | ||
private String status; | ||
private int numberOfIssues; | ||
private String commitHash; | ||
private LocalDateTime localDateTime; | ||
|
||
public AnalyzerRunGraphQlDto(AnalyzerRunDao dao) { | ||
this.projectName = dao.projectDao.getProjectName(); | ||
this.projectUrl = dao.projectDao.getProjectUrl(); | ||
this.analyzerName = dao.analyzerName; | ||
this.status = dao.status; | ||
this.numberOfIssues = dao.numberOfIssues; | ||
this.commitHash = dao.commitHash; | ||
this.localDateTime = dao.localDateTime; | ||
} | ||
|
||
/** | ||
* @return the analyzerName | ||
*/ | ||
public String getAnalyzerName() { | ||
return analyzerName; | ||
} | ||
|
||
/** | ||
* @return the commitHash | ||
*/ | ||
public String getCommitHash() { | ||
return commitHash; | ||
} | ||
|
||
/** | ||
* @return the localDateTime | ||
*/ | ||
public LocalDateTime getLocalDateTime() { | ||
return localDateTime; | ||
} | ||
|
||
/** | ||
* @return the numberOfIssues | ||
*/ | ||
public int getNumberOfIssues() { | ||
return numberOfIssues; | ||
} | ||
|
||
/** | ||
* @return the projectName | ||
*/ | ||
public String getProjectName() { | ||
return projectName; | ||
} | ||
|
||
/** | ||
* @return the projectUrl | ||
*/ | ||
public String getProjectUrl() { | ||
return projectUrl; | ||
} | ||
|
||
/** | ||
* @return the status | ||
*/ | ||
public String getStatus() { | ||
return status; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters