complexqa_frontend_core 1.19.3 → 1.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { typeBugRelation } from '../../../types/family_relation/typeBugRelation.js';
|
|
2
2
|
import { typeTestCase } from '../../../types/family_elements/typeTestCase.js';
|
|
3
|
+
import { typeTestRunResult } from '../../../types/family_elements/typeTestRunResult.js';
|
|
3
4
|
import { typeBug } from '../../../types/family_elements/typeBug.js';
|
|
4
5
|
import { UserService } from '../../../services/UserService.js';
|
|
5
6
|
import { createColumn, createGoToColumn } from '../helpers/column_factory.js';
|
|
@@ -49,7 +50,7 @@ function build_bug_relation_test_cases_columns(locale)
|
|
|
49
50
|
* @param {string} locale
|
|
50
51
|
* @returns {import('../../../types/family_service/typeTableColumn.js').typeTableColumn[]}
|
|
51
52
|
*/
|
|
52
|
-
function build_bug_relation_bugs_columns(locale)
|
|
53
|
+
export function build_bug_relation_bugs_columns(locale)
|
|
53
54
|
{
|
|
54
55
|
const relation_model = new typeBugRelation();
|
|
55
56
|
const bug_model = new typeBug();
|
|
@@ -83,7 +84,47 @@ function build_bug_relation_bugs_columns(locale)
|
|
|
83
84
|
|
|
84
85
|
|
|
85
86
|
/**
|
|
86
|
-
*
|
|
87
|
+
* Колонки связанных результатов прогона на странице bug/details.
|
|
88
|
+
* Поля совпадают с test_run_result × listing, данные — через hydrate element_id.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} locale
|
|
91
|
+
* @returns {import('../../../types/family_service/typeTableColumn.js').typeTableColumn[]}
|
|
92
|
+
*/
|
|
93
|
+
function build_bug_relation_test_run_results_columns(locale)
|
|
94
|
+
{
|
|
95
|
+
const relation_model = new typeBugRelation();
|
|
96
|
+
const result_model = new typeTestRunResult();
|
|
97
|
+
const columns = [];
|
|
98
|
+
|
|
99
|
+
const trColumn = (field, overrides = {}) => createColumn(relation_model, locale, `element_id.${ field }`, {
|
|
100
|
+
header_field : overrides.header_field || field,
|
|
101
|
+
header_element_type : overrides.header_element_type || 'test_run_result',
|
|
102
|
+
is_editable : false,
|
|
103
|
+
...overrides,
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
columns.push(trColumn('test_run_result_id', { width: '60', default_sort: 'desc' }));
|
|
107
|
+
columns.push(createColumn(relation_model, locale, 'element_id.test_case_id.test_case_title', {
|
|
108
|
+
header_field : 'test_case_title',
|
|
109
|
+
header_element_type : 'test_case',
|
|
110
|
+
width : '480',
|
|
111
|
+
is_required : true,
|
|
112
|
+
is_title : true,
|
|
113
|
+
is_editable : false,
|
|
114
|
+
}));
|
|
115
|
+
columns.push(trColumn('assigned_to', { width: '220', is_required: true }));
|
|
116
|
+
columns.push(trColumn('created_at', { width: '170', is_required: true }));
|
|
117
|
+
columns.push(trColumn('updated_at', { width: '170', is_required: true }));
|
|
118
|
+
columns.push(trColumn('completed_at', { width: '170', is_required: true }));
|
|
119
|
+
columns.push(trColumn('test_result_status', { width: '150', is_required: true }));
|
|
120
|
+
columns.push(createGoToColumn(result_model, locale, { field: 'element_id' }));
|
|
121
|
+
|
|
122
|
+
return columns;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Секции `bug_relation`: `test_cases`, `bugs`, `test_run_results`.
|
|
87
128
|
*
|
|
88
129
|
* @param {Object<string, Object<string, { config: import('../../../types/family_service/typeTableConfiguration.js').typeTableConfiguration }>>} config
|
|
89
130
|
* @returns {void}
|
|
@@ -96,6 +137,10 @@ export function bootstrap_bug_relation(config)
|
|
|
96
137
|
for: createListingFor([ 'bug_id', 'relation_type' ], { add: [ 'elements' ] }),
|
|
97
138
|
});
|
|
98
139
|
|
|
140
|
+
registerSection(config, 'bug_relation', 'test_run_results', build_bug_relation_test_run_results_columns(locale), {
|
|
141
|
+
for: createListingFor([ 'bug_id', 'relation_type' ], { add: [ 'elements' ] }),
|
|
142
|
+
});
|
|
143
|
+
|
|
99
144
|
registerSection(config, 'bug_relation', 'bugs', build_bug_relation_bugs_columns(locale), {
|
|
100
145
|
for: createListingFor([ 'relation_type', 'element_id' ], { add: [ 'bugs' ] }),
|
|
101
146
|
});
|
|
@@ -2,6 +2,7 @@ import { typeTestRunResult } from '../../../types/family_elements/typeTestRunRes
|
|
|
2
2
|
import { UserService } from '../../../services/UserService.js';
|
|
3
3
|
import { createColumn, createGoToColumn, createPrimaryKeyColumn, createRowSelectColumn } from '../helpers/column_factory.js';
|
|
4
4
|
import { createListingFor, registerSection } from '../helpers/section_registry.js';
|
|
5
|
+
import { build_bug_relation_bugs_columns } from './bug_relation.js';
|
|
5
6
|
|
|
6
7
|
function build_test_run_result_listing_columns(locale, { include_select = true } = {})
|
|
7
8
|
{
|
|
@@ -75,7 +76,7 @@ function build_test_run_result_details_columns(locale)
|
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
/**
|
|
78
|
-
* Секции `test_run_result`: `listing`, `todo`, `details`.
|
|
79
|
+
* Секции `test_run_result`: `listing`, `todo`, `details`, `bugs`.
|
|
79
80
|
*
|
|
80
81
|
* @param {Object<string, Object<string, { config: import('../../../types/family_service/typeTableConfiguration.js').typeTableConfiguration }>>} config
|
|
81
82
|
* @returns {void}
|
|
@@ -93,4 +94,8 @@ export function bootstrap_test_run_result(config)
|
|
|
93
94
|
});
|
|
94
95
|
|
|
95
96
|
registerSection(config, 'test_run_result', 'details', build_test_run_result_details_columns(locale));
|
|
97
|
+
|
|
98
|
+
registerSection(config, 'test_run_result', 'bugs', build_bug_relation_bugs_columns(locale), {
|
|
99
|
+
for: createListingFor([ 'relation_type', 'element_id' ], { add: [ 'bugs' ] }),
|
|
100
|
+
});
|
|
96
101
|
}
|
|
@@ -15,6 +15,7 @@ export class typeTestRunResult extends familyTestDocumentation
|
|
|
15
15
|
project_id;
|
|
16
16
|
test_run_id;
|
|
17
17
|
test_result_status;
|
|
18
|
+
test_result_description;
|
|
18
19
|
assigned_to;
|
|
19
20
|
//reference_defects_ids; // list of IDs in user bug tracker / include sentry ids
|
|
20
21
|
|
|
@@ -29,12 +30,13 @@ export class typeTestRunResult extends familyTestDocumentation
|
|
|
29
30
|
api_key = 'test_run_result';
|
|
30
31
|
|
|
31
32
|
structure_scheme = {
|
|
32
|
-
test_result_id
|
|
33
|
-
test_case_id
|
|
34
|
-
test_run_id
|
|
35
|
-
test_result_status: 'string | enum | require',
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
test_result_id : 'integer | require',
|
|
34
|
+
test_case_id : 'integer | require',
|
|
35
|
+
test_run_id : 'integer | require',
|
|
36
|
+
test_result_status : 'string | enum | require',
|
|
37
|
+
test_result_description: 'string | StringHtml | optional',
|
|
38
|
+
assigned_to : 'integer | typeUser | optional',
|
|
39
|
+
project_id : 'integer | require',
|
|
38
40
|
//test_run_result_to_execute: 'time | optional',
|
|
39
41
|
//reference_defects_ids : 'array | reference | optional',
|
|
40
42
|
created_at : 'timestamp | require',
|
|
@@ -52,8 +54,9 @@ export class typeTestRunResult extends familyTestDocumentation
|
|
|
52
54
|
test_result_id : 'ID',
|
|
53
55
|
test_case_id : 'Test case',
|
|
54
56
|
test_run_id : 'Test run',
|
|
55
|
-
test_result_status: 'Status',
|
|
56
|
-
|
|
57
|
+
test_result_status : 'Status',
|
|
58
|
+
test_result_description: 'Description',
|
|
59
|
+
assigned_to : 'Assigned to',
|
|
57
60
|
project_id : 'Project',
|
|
58
61
|
created_at : 'Created at',
|
|
59
62
|
updated_at : 'Updated at',
|
|
@@ -63,8 +66,9 @@ export class typeTestRunResult extends familyTestDocumentation
|
|
|
63
66
|
test_result_id : 'ID',
|
|
64
67
|
test_case_id : 'Тест кейс',
|
|
65
68
|
test_run_id : 'Тестовый прогон',
|
|
66
|
-
test_result_status: 'Статус',
|
|
67
|
-
|
|
69
|
+
test_result_status : 'Статус',
|
|
70
|
+
test_result_description: 'Описание',
|
|
71
|
+
assigned_to : 'Назначен',
|
|
68
72
|
project_id : 'Проект',
|
|
69
73
|
created_at : 'Создано',
|
|
70
74
|
updated_at : 'Обновлено',
|