Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion project-properties.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ project.ext {
isDebugMode = System.getProperty("DEBUG", "false") == "true"
releaseMode = project.hasProperty("releaseMode") ? project.releaseMode.toBoolean() : false
scriptsUrl = commonScriptsUrl + (releaseMode ? '5.14.0' : 'develop')
migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.14.0' : 'develop')
migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.14.0' : 'feature/EMPRPP-migrate-tms-to-develop')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Avoid hardcoding a feature branch in shared non-release migrations URL.

Using feature/EMPRPP-migrate-tms-to-develop for all non-release builds can break builds once that branch is renamed/deleted and can desync migrations from scriptsUrl (which still tracks develop for non-release). Prefer develop (or a configurable property override) as the default non-release source.

Suggested fix
-    migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.14.0' : 'feature/EMPRPP-migrate-tms-to-develop')
+    def migrationsBranch = project.findProperty("migrationsBranch") ?: "develop"
+    migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.14.0' : migrationsBranch)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.14.0' : 'feature/EMPRPP-migrate-tms-to-develop')
def migrationsBranch = project.findProperty("migrationsBranch") ?: "develop"
migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.14.0' : migrationsBranch)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@project-properties.gradle` at line 19, The migrationsUrl assignment currently
hardcodes a feature branch for non-release builds; update the logic that sets
migrationsUrl (which uses migrationsScriptsUrl and releaseMode) to use 'develop'
by default for non-release, or read an overridable project property (e.g.,
migrationsBranch/migrationsRef) when present; change the non-release branch
choice from 'feature/EMPRPP-migrate-tms-to-develop' to the property value if
supplied else 'develop' so non-release builds don't depend on a specific feature
branch.

manifestSchemaUrl = schemaUrl + ('manifest.schema.json')
//TODO refactor with archive download
testScriptsSrc = [
Expand Down Expand Up @@ -98,6 +98,7 @@ project.ext {
(migrationsUrl + '/migrations/1000_tms_initial.up.sql') : 'V213__tms_initial.up.sql',
(migrationsUrl + '/migrations/1001_migrate_auth_integrations.up.sql') : 'V214__migrate_auth_integrations.up.sql',
(migrationsUrl + '/migrations/1002_drop_tms_bts_ticket.up.sql') : 'V215__drop_tms_bts_ticket.up.sql',
(migrationsUrl + '/migrations/1003_increase_activity_name_length.up.sql') : 'V216__increase_activity_name_length.up.sql',
]
excludeTests = ['**/entity/**',
'**/aop/**',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@
import static com.epam.reportportal.base.infrastructure.rules.exception.ErrorType.TEST_ITEM_NOT_FOUND;
import static java.util.Optional.ofNullable;

import com.epam.reportportal.base.core.tms.dto.TmsTestCaseRS;
import com.epam.reportportal.base.infrastructure.persistence.dao.LaunchRepository;
import com.epam.reportportal.base.infrastructure.persistence.dao.TestItemRepository;
import com.epam.reportportal.base.infrastructure.persistence.entity.enums.StatusEnum;
import com.epam.reportportal.base.infrastructure.persistence.entity.enums.TestItemTypeEnum;
import com.epam.reportportal.base.infrastructure.persistence.entity.item.TestItem;
import com.epam.reportportal.base.infrastructure.persistence.entity.item.TestItemResults;
import com.epam.reportportal.base.infrastructure.persistence.entity.launch.Launch;
import com.epam.reportportal.base.infrastructure.rules.exception.ReportPortalException;
import java.util.Optional;
import java.util.UUID;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -56,66 +51,6 @@ private Optional<Launch> getLaunch(TestItem testItem) {
.orElseThrow(() -> new ReportPortalException(LAUNCH_NOT_FOUND)));
}

/**
* Creates TestItem for TMS test case in TO_RUN status.
*
* @param testCase test case entity
* @param launch launch entity
* @return created test item
*/
@Transactional
public TestItem createToRunTestItemForTestCase(TmsTestCaseRS testCase, Launch launch) {
log.debug("Creating TO_RUN test item for test case: {} in launch: {}",
testCase.getId(), launch.getId());

// Create TestItem
TestItem testItem = new TestItem();
testItem.setUuid(UUID.randomUUID().toString());
testItem.setName(testCase.getName());
testItem.setDescription(testCase.getDescription());
testItem.setType(TestItemTypeEnum.TEST);
testItem.setLaunchId(launch.getId());
testItem.setHasStats(true);
testItem.setHasChildren(false);
testItem.setRetryOf(null);
testItem.setPath(String.valueOf(launch.getId()));

// Create TestItemResults with TO_RUN status
TestItemResults testItemResults = new TestItemResults();
testItemResults.setStatus(StatusEnum.TO_RUN);
testItemResults.setEndTime(null);
testItemResults.setDuration(null);

// Link TestItem and TestItemResults
testItem.setItemResults(testItemResults);
testItemResults.setTestItem(testItem);

// Save (cascade will save TestItemResults)
testItem = testItemRepository.save(testItem);

log.info("Created TO_RUN test item: {} for test case: {}",
testItem.getItemId(), testCase.getId());

return testItem;
}

/**
* Deletes test item by ID.
*
* @param itemId test item ID
*/
@Transactional
public void deleteTestItem(Long itemId) {
log.debug("Deleting test item: {}", itemId);

TestItem testItem = testItemRepository.findById(itemId)
.orElseThrow(() -> new ReportPortalException(TEST_ITEM_NOT_FOUND, itemId));

testItemRepository.delete(testItem);

log.info("Deleted test item: {}", itemId);
}

/**
* Deletes all test items by launch ID.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@
@ResponseStatus(HttpStatus.NO_CONTENT)
@Operation(
summary = "Delete multiple test cases",
description = "Deletes multiple test cases by their IDs within a project.",
tags = {"Batch Operations"}
description = "Deletes multiple test cases by their IDs within a project."
)
@ApiResponse(responseCode = "204", description = "Test cases deleted successfully")
public void deleteTestCases(@PathVariable("projectKey") String projectKey,
Expand All @@ -261,8 +260,8 @@
@PatchMapping("/batch")
@Operation(
summary = "Partially update multiple test cases",
description = "Updates multiple test cases at once, particularly useful for changing test case folder for multiple test cases.",
tags = {"Batch Operations"}
description = "Updates multiple test cases at once, "
+ "particularly useful for changing test case folder for multiple test cases."
)
@ApiResponse(responseCode = "200", description = "Test cases updated successfully")
public BatchPatchTestCasesRS batchPatchTestCases(@PathVariable("projectKey") String projectKey,
Expand All @@ -288,8 +287,7 @@
@PostMapping(value = "/import", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
@Operation(
summary = "Import test cases from CSV",
description = "Imports test cases from a CSV file into a project. Supports new CSV format with template, summary, path, labels, test steps, and expected result fields.",
tags = {"Import/Export"}
description = "Imports test cases from a CSV file into a project. Supports new CSV format with template, summary, path, labels, test steps, and expected result fields."

Check warning on line 290 in src/main/java/com/epam/reportportal/base/core/tms/controller/TestCaseController.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/controller/TestCaseController.java#L290 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 120 characters (found 174).
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/controller/TestCaseController.java:290:0: warning: Line is longer than 120 characters (found 174). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
)
@ApiResponse(responseCode = "200", description = "Test cases imported successfully")
public List<TmsTestFolderRS> importTestCases(@PathVariable("projectKey") String projectKey,
Expand Down Expand Up @@ -319,8 +317,7 @@
@GetMapping("/export")
@Operation(
summary = "Export test cases",
description = "Exports test cases from a project to a file. Supports JSON and CSV formats.",
tags = {"Import/Export"}
description = "Exports test cases from a project to a file. Supports JSON and CSV formats."
)
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -381,8 +378,7 @@
@ResponseStatus(HttpStatus.OK)
@Operation(
summary = "Patch attributes from multiple test cases",
description = "Patch specific attributes for multiple test cases by their IDs.",
tags = {"Batch Operations"}
description = "Patch specific attributes for multiple test cases by their IDs."
)
@ApiResponse(responseCode = "200", description = "Attributes patched successfully")
public void patchTestCaseAttributes(@PathVariable("projectKey") String projectKey,
Expand All @@ -407,8 +403,7 @@
@PostMapping("/batch/duplicate")
@Operation(
summary = "Duplicate multiple test cases",
description = "Creates full copies of multiple test cases including their default versions, manual scenarios, and attachments.",
tags = {"Batch Operations"}
description = "Creates full copies of multiple test cases including their default versions, manual scenarios, and attachments."

Check warning on line 406 in src/main/java/com/epam/reportportal/base/core/tms/controller/TestCaseController.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/controller/TestCaseController.java#L406 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 120 characters (found 133).
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/controller/TestCaseController.java:406:0: warning: Line is longer than 120 characters (found 133). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
)
@ApiResponse(responseCode = "200", description = "Test cases duplicated successfully")
public BatchDuplicateTestCasesRS duplicateTestCases(@PathVariable("projectKey") String projectKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ public TmsTestPlanRS patchTestPlan(@PathVariable String projectKey,
@PostMapping("/{id}/test-case/batch")
@Operation(
summary = "Add test cases to test plan",
description = "Adds multiple test cases to a test plan by their IDs.",
tags = {"Batch Operations"}
description = "Adds multiple test cases to a test plan by their IDs."
)
@ApiResponse(responseCode = "204", description = "Test cases added to test plan successfully")
public BatchTestCaseOperationResultRS addTestCasesToPlan(@PathVariable String projectKey,
Expand All @@ -207,8 +206,7 @@ public BatchTestCaseOperationResultRS addTestCasesToPlan(@PathVariable String pr
@DeleteMapping("/{id}/test-case/batch")
@Operation(
summary = "Remove test cases from test plan",
description = "Removes multiple test cases from a test plan by their IDs.",
tags = {"Batch Operations"}
description = "Removes multiple test cases from a test plan by their IDs."
)
@ApiResponse(responseCode = "204", description = "Test cases removed from test plan successfully")
public BatchTestCaseOperationResultRS removeTestCasesFromPlan(@PathVariable String projectKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,33 @@
nestedStep.setItemResults(nestedResults);
nestedResults.setTestItem(nestedStep);

nestedStep.setTestCaseHash(parentTestItem.getTestCaseHash()); //TODO check is it correct
nestedStep.setTestCaseHash(parentTestItem.getTestCaseHash());

log.trace("Successfully built nested step item: {}", name);
return nestedStep;
}

public TestItem buildRetryNestedStepItem(TestItem originalStep, TestItem parentRetryItem) {

Check warning on line 85 in src/main/java/com/epam/reportportal/base/core/tms/mapper/NestedStepItemBuilder.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/NestedStepItemBuilder.java#L85 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck>

Missing a Javadoc comment.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/NestedStepItemBuilder.java:85:3: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)
var newStep = new TestItem();
newStep.setUuid(UUID.randomUUID().toString());
newStep.setName(originalStep.getName());
newStep.setDescription(originalStep.getDescription());
newStep.setType(TestItemTypeEnum.STEP);
newStep.setStartTime(Instant.now());
newStep.setLaunchId(parentRetryItem.getLaunchId());
newStep.setHasStats(false);
newStep.setHasChildren(false);
newStep.setRetryOf(null);
newStep.setParentId(parentRetryItem.getItemId());
newStep.setTestCaseId(parentRetryItem.getTestCaseId());

Comment thread
imashkanov marked this conversation as resolved.
var results = new TestItemResults();
results.setStatus(StatusEnum.TO_RUN);
results.setTestItem(newStep);
newStep.setItemResults(results);

return newStep;
}

/**
* Builds nested step name from instructions and step index.
Expand Down Expand Up @@ -112,7 +134,7 @@
}

if (expectedResult != null && !expectedResult.isEmpty()) {
if (description.length() > 0) {
if (!description.isEmpty()) {
description.append("\n\nExpected result: ");
} else {
description.append("Expected result: ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@
package com.epam.reportportal.base.core.tms.mapper;

import com.epam.reportportal.base.core.tms.dto.TmsTestCaseRS;
import com.epam.reportportal.base.infrastructure.persistence.entity.ItemAttribute;
import com.epam.reportportal.base.infrastructure.persistence.entity.enums.StatusEnum;
import com.epam.reportportal.base.infrastructure.persistence.entity.enums.TestItemTypeEnum;
import com.epam.reportportal.base.infrastructure.persistence.entity.item.Parameter;
import com.epam.reportportal.base.infrastructure.persistence.entity.item.TestItem;
import com.epam.reportportal.base.infrastructure.persistence.entity.item.TestItemResults;
import com.epam.reportportal.base.infrastructure.persistence.entity.launch.Launch;
import java.time.Instant;
import java.util.HashSet;
import java.util.UUID;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -58,7 +63,8 @@
testItem.setTestCaseId(String.valueOf(tmsTestCaseRS.getId()));
testItem.setName(tmsTestCaseRS.getName());
testItem.setDescription(tmsTestCaseRS.getDescription());
testItem.setType(TestItemTypeEnum.STEP); //as per the RPP philosophy test case is the step, but test cases steps are inner steps for this step
testItem.setType(
TestItemTypeEnum.STEP); //as per the RPP philosophy test case is the step, but test cases steps are inner steps for this step

Check warning on line 67 in src/main/java/com/epam/reportportal/base/core/tms/mapper/TestCaseItemBuilder.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/TestCaseItemBuilder.java#L67 <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck>

Line is longer than 120 characters (found 133).
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/TestCaseItemBuilder.java:67:0: warning: Line is longer than 120 characters (found 133). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
testItem.setStartTime(Instant.now());
testItem.setLaunchId(launch.getId());
testItem.setHasStats(true); // TEST contributes to statistics
Expand All @@ -67,4 +73,55 @@
testItem.setParentId(parentSuiteItem.getItemId());
return testItem;
}

public TestItem buildRetryTestCaseItem(TestItem originalItem, StatusEnum newStatus) {

Check warning on line 77 in src/main/java/com/epam/reportportal/base/core/tms/mapper/TestCaseItemBuilder.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/TestCaseItemBuilder.java#L77 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck>

Missing a Javadoc comment.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/TestCaseItemBuilder.java:77:3: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)
var retryItem = new TestItem();
retryItem.setUuid(UUID.randomUUID().toString());
retryItem.setName(originalItem.getName());
retryItem.setCodeRef(originalItem.getCodeRef());
retryItem.setType(originalItem.getType());
retryItem.setStartTime(Instant.now());
retryItem.setDescription(originalItem.getDescription());
retryItem.setLaunchId(originalItem.getLaunchId());
retryItem.setUniqueId(originalItem.getUniqueId());
retryItem.setTestCaseId(originalItem.getTestCaseId());
retryItem.setTestCaseHash(originalItem.getTestCaseHash());

// Copy attributes
if (originalItem.getAttributes() != null) {
var copiedAttributes = new HashSet<ItemAttribute>();
for (var attr : originalItem.getAttributes()) {
var newAttr = new ItemAttribute(attr.getKey(), attr.getValue(), attr.isSystem());
newAttr.setTestItem(retryItem);
copiedAttributes.add(newAttr);
}
retryItem.setAttributes(copiedAttributes);
}

// Copy parameters
if (originalItem.getParameters() != null) {
var copiedParameters = new HashSet<Parameter>();
for (var param : originalItem.getParameters()) {
var p = new Parameter();
p.setKey(param.getKey());
p.setValue(param.getValue());
copiedParameters.add(p);
}
retryItem.setParameters(copiedParameters);
}

retryItem.setRetryOf(originalItem.getItemId());
retryItem.setParentId(originalItem.getParentId());

var results = new TestItemResults();
results.setStatus(newStatus);
results.setTestItem(retryItem);
retryItem.setItemResults(results);

retryItem.setHasChildren(originalItem.isHasChildren());
retryItem.setHasRetries(false);
retryItem.setHasStats(originalItem.isHasStats());

return retryItem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
import com.epam.reportportal.base.infrastructure.persistence.entity.activity.EventAction;
import com.epam.reportportal.base.model.activity.TestCaseActivityResource;

import java.util.Collection;

Check warning on line 25 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L25 <com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck>

Extra separation in import group before 'java.util.Collection'
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:25:1: warning: Extra separation in import group before 'java.util.Collection' (com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck)
import java.util.Objects;
import java.util.Optional;
import java.util.function.Function;
import org.apache.commons.collections4.CollectionUtils;

public class TmsTmsTestCaseFieldProcessorImpl implements TmsTestCaseFieldProcessor {

Expand Down Expand Up @@ -52,7 +54,7 @@
Object beforeValue = valueExtractor.apply(before);
Object afterValue = valueExtractor.apply(after);

if (Objects.equals(beforeValue, afterValue)) {
if (areValuesEqual(beforeValue, afterValue)) {

Check warning on line 57 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L57 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'if' has incorrect indentation level 8, expected level should be 4.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:57:9: warning: 'if' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
return Optional.empty();
}

Expand Down Expand Up @@ -100,4 +102,11 @@
}
return false;
}

private boolean areValuesEqual(Object beforeValue, Object afterValue) {

Check warning on line 106 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L106 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'method def modifier' has incorrect indentation level 4, expected level should be 2.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:106:5: warning: 'method def modifier' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
if (beforeValue instanceof Collection && afterValue instanceof Collection) {

Check warning on line 107 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L107 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'if' has incorrect indentation level 8, expected level should be 4.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:107:9: warning: 'if' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
return CollectionUtils.isEqualCollection((Collection<?>) beforeValue, (Collection<?>) afterValue);

Check warning on line 108 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L108 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'if' child has incorrect indentation level 12, expected level should be 6.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:108:13: warning: 'if' child has incorrect indentation level 12, expected level should be 6. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}

Check warning on line 109 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L109 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'if rcurly' has incorrect indentation level 8, expected level should be 4.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:109:9: warning: 'if rcurly' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
return Objects.equals(beforeValue, afterValue);

Check warning on line 110 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L110 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'method def' child has incorrect indentation level 8, expected level should be 4.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:110:9: warning: 'method def' child has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}

Check warning on line 111 in src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java#L111 <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck>

'method def rcurly' has incorrect indentation level 4, expected level should be 2.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/mapper/processor/TmsTmsTestCaseFieldProcessorImpl.java:111:5: warning: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@
public void deleteByLaunchId(Long launchId) {
tmsStepExecutionRepository.deleteByLaunchId(launchId);
}

@Transactional

Check warning on line 114 in src/main/java/com/epam/reportportal/base/core/tms/service/TmsStepExecutionService.java

View workflow job for this annotation

GitHub Actions / checkstyle

[checkstyle] src/main/java/com/epam/reportportal/base/core/tms/service/TmsStepExecutionService.java#L114 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck>

Missing a Javadoc comment.
Raw output
/github/workspace/src/main/java/com/epam/reportportal/base/core/tms/service/TmsStepExecutionService.java:114:3: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)
public void updateTmsStepExecution(TmsStepExecution stepExecution) {
tmsStepExecutionRepository.save(stepExecution);
}
}
Loading
Loading