-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #411 from adessoAG/teams-frontend-roles
Proper handling of roles in the UI and many performance improvements.
- Loading branch information
Showing
451 changed files
with
3,910 additions
and
3,211 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM openjdk:11.0.8-jre-buster | ||
ARG JAR_FILE=coderadar-app/build/**/*.jar | ||
COPY ${JAR_FILE} coderadar-app-0.5.0.local.jar | ||
ENTRYPOINT ["java","-jar","/coderadar-app-0.5.0.local.jar"] | ||
COPY ${JAR_FILE} coderadar-app-1.0.0.local.jar | ||
ENTRYPOINT ["java","-jar","/coderadar-app-1.0.0.local.jar"] |
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
10 changes: 10 additions & 0 deletions
10
coderadar-core/src/main/java/io/reflectoring/coderadar/CoderadarConstants.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,10 @@ | ||
package io.reflectoring.coderadar; | ||
|
||
public class CoderadarConstants { | ||
|
||
private CoderadarConstants() {} | ||
|
||
public static final int COMMIT_HASH_LENGTH = 16; | ||
|
||
public static final String ZERO_HASH = "0000000000000000"; | ||
} |
29 changes: 29 additions & 0 deletions
29
coderadar-core/src/main/java/io/reflectoring/coderadar/ShutdownService.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,29 @@ | ||
package io.reflectoring.coderadar; | ||
|
||
import io.reflectoring.coderadar.analyzer.service.AnalyzingService; | ||
import io.reflectoring.coderadar.projectadministration.service.ProcessProjectService; | ||
import io.reflectoring.coderadar.projectadministration.service.project.ScanProjectScheduler; | ||
import io.reflectoring.coderadar.useradministration.service.security.TokenService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.context.ConfigurableApplicationContext; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class ShutdownService implements ShutdownUseCase { | ||
|
||
private final ProcessProjectService processProjectService; | ||
private final ScanProjectScheduler scanProjectScheduler; | ||
private final AnalyzingService analyzingService; | ||
private final ConfigurableApplicationContext applicationContext; | ||
private final TokenService tokenService; | ||
|
||
@Override | ||
public void shutdown() throws InterruptedException { | ||
tokenService.setShuttingDown(true); | ||
analyzingService.onShutdown(); | ||
scanProjectScheduler.onShutdown(); | ||
processProjectService.onShutdown(); | ||
applicationContext.close(); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
coderadar-core/src/main/java/io/reflectoring/coderadar/ShutdownUseCase.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,5 @@ | ||
package io.reflectoring.coderadar; | ||
|
||
public interface ShutdownUseCase { | ||
void shutdown() throws InterruptedException; | ||
} |
16 changes: 16 additions & 0 deletions
16
coderadar-core/src/main/java/io/reflectoring/coderadar/ValidationUtils.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,16 @@ | ||
package io.reflectoring.coderadar; | ||
|
||
public class ValidationUtils { | ||
|
||
private ValidationUtils() {} | ||
|
||
public static String validateAndTrimCommitHash(String commitHash) { | ||
if (commitHash.length() < CoderadarConstants.COMMIT_HASH_LENGTH) { | ||
throw new IllegalArgumentException( | ||
String.format( | ||
"The length of the commit hash must be at least %d", | ||
CoderadarConstants.COMMIT_HASH_LENGTH)); | ||
} | ||
return commitHash.substring(0, CoderadarConstants.COMMIT_HASH_LENGTH); | ||
} | ||
} |
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
16 changes: 0 additions & 16 deletions
16
...re/src/main/java/io/reflectoring/coderadar/analyzer/domain/AnalyzerConfigurationFile.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
coderadar-core/src/main/java/io/reflectoring/coderadar/analyzer/domain/Finding.java
This file was deleted.
Oops, something went wrong.
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
21 changes: 0 additions & 21 deletions
21
...re/src/main/java/io/reflectoring/coderadar/analyzer/port/driver/AnalyzeCommitUseCase.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.