Skip to content

Commit 85f5c15

Browse files
authored
Merge pull request #167 from aquality-automation/RNDTESTAUTO-176-from-hotfixes
RNDTESTAUTO-176-add-only-with-issue-parameter
2 parents ff1a3be + b61bf5f commit 85f5c15

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# CHANGELOG
22

3+
## 1.4.5
4+
- onlyWithIssues parameter is added for testrunstatistic for issues page
5+
6+
## 1.4.4 (2024-10-04)
7+
fixed issues:
8+
aquality-automation/aquality-tracking#145
9+
aquality-automation/aquality-tracking#144
10+
aquality-automation/aquality-tracking#143
11+
aquality-automation/aquality-tracking#142
12+
aquality-automation/aquality-tracking#140
13+
aquality-automation/aquality-tracking#136
14+
aquality-automation/aquality-tracking#102
15+
316
## 1.4.3 (2023-07-10)
417
- Changed the logic of the Affected Tests Amount column on the Issues List page, so it is adaptive to the filtering in the Test Runs column now
518

src/app/pages/project/issue/issue-list/issue-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class IssueListComponent implements OnInit {
8282
}
8383

8484
async addAffectedTestsAndRuns() {
85-
const testResults = await this.testResultService.getTestResultsStat(this.projectId, null, null);
85+
const testResults = await this.testResultService.getTestResultsStat(this.projectId, null, null, true);
8686
for (const issue of this.issues) {
8787
const affectedTestsArray = testResults.filter((result) => Number(result.issue_id) === issue.id);
8888
issue['affected_tests_array'] = affectedTestsArray;

src/app/services/test-result/test-result.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export class TestResultService extends BaseHttpService {
3737
this.handleSuccess(`Test result '${testresult.id}' was deleted.`);
3838
}
3939

40-
getTestResultsStat(project_id: number, testrunStartedFrom: string, testrunStartedTo: string): Promise<TestResultStat[]> {
41-
const params = { project_id: project_id.toString(), testrunStartedFrom, testrunStartedTo };
40+
getTestResultsStat(project_id: number, testrunStartedFrom: string, testrunStartedTo: string, onlyWithIssues = false): Promise<TestResultStat[]> {
41+
const params = { project_id: project_id.toString(), testrunStartedFrom, testrunStartedTo, ...(onlyWithIssues ? { onlyWithIssues: 'true' } : {}) };
4242
return this.http.get<TestResultStat[]>(`/stats/testresult`, { params }).toPromise();
4343
}
4444

0 commit comments

Comments
 (0)