Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPMRPP-90118 || Improve Email configuration to take into account possible deployment under path #1976

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

APiankouski
Copy link
Contributor

No description provided.

@@ -209,7 +213,8 @@ String mergeFinishLaunchText(String url, Launch launch, Set<ProjectIssueType> pr

private String getUrl(String baseUrl) {
return ofNullable(rpHost).map(rh -> {
final UriComponents rpHostUri = UriComponentsBuilder.fromUriString(rh).build();
String RPUrl = rpHost + path.replace("/api", "");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck> reported by reviewdog 🐶
Abbreviation in name 'RPUrl' must contain no more than '1' consecutive capital letters.

@@ -209,7 +213,8 @@

private String getUrl(String baseUrl) {
return ofNullable(rpHost).map(rh -> {
final UriComponents rpHostUri = UriComponentsBuilder.fromUriString(rh).build();
String RPUrl = rpHost + path.replace("/api", "");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck> reported by reviewdog 🐶
Local variable name 'RPUrl' must match pattern '^a-z?$'.

@@ -107,7 +111,7 @@ public FinishLaunchRS finishLaunch(String launchId, FinishExecutionRQ finishLaun
FinishLaunchRS response = new FinishLaunchRS();
response.setId(launch.getUuid());
response.setNumber(launch.getNumber());
response.setLink(generateLaunchLink(baseUrl, projectDetails.getProjectName(),
response.setLink(generateLaunchLink(baseUrl + path.replace("/api", ""), projectDetails.getProjectName(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 100 characters (found 108).

@@ -209,7 +212,9 @@ String mergeFinishLaunchText(String url, Launch launch, Set<ProjectIssueType> pr

private String getUrl(String baseUrl) {
return ofNullable(rpHost).map(rh -> {
final UriComponents rpHostUri = UriComponentsBuilder.fromUriString(rh).build();
String processedPath = "/".equals(path) ? "" : path.replace("/api", "");
String RPUrl = rpHost + processedPath;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck> reported by reviewdog 🐶
Abbreviation in name 'RPUrl' must contain no more than '1' consecutive capital letters.

@@ -209,7 +212,9 @@

private String getUrl(String baseUrl) {
return ofNullable(rpHost).map(rh -> {
final UriComponents rpHostUri = UriComponentsBuilder.fromUriString(rh).build();
String processedPath = "/".equals(path) ? "" : path.replace("/api", "");
String RPUrl = rpHost + processedPath;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck> reported by reviewdog 🐶
Local variable name 'RPUrl' must match pattern '^a-z?$'.

@@ -33,8 +33,10 @@ private LinkGenerator() {
//static only
}

public static String generateLaunchLink(String baseUrl, String projectName, String id) {
return StringUtils.isEmpty(baseUrl) ? null : baseUrl + UI_PREFIX + projectName + LAUNCHES + id;
public static String generateLaunchLink(String baseUrl, String path, String projectName, String id) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 100 characters (found 103).

@@ -33,8 +33,10 @@
//static only
}

public static String generateLaunchLink(String baseUrl, String projectName, String id) {
return StringUtils.isEmpty(baseUrl) ? null : baseUrl + UI_PREFIX + projectName + LAUNCHES + id;
public static String generateLaunchLink(String baseUrl, String path, String projectName, String id) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [reviewdog] <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant