complexqa_frontend_core 1.17.9 → 1.17.11
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 +1 -1
- package/publish/app_configuration/table/sections/bug.js +21 -1
- package/publish/app_configuration/table/sections/test_case.js +16 -5
- package/publish/app_configuration/table/sections/test_case_step.js +22 -4
- package/publish/app_configuration/table/sections/test_run.js +26 -1
- package/publish/app_configuration/table/sections/test_run_result.js +24 -2
- package/publish/app_configuration/table/table_base_config.js +3 -3
- package/publish/types/family_elements/typeBug.js +2 -2
- package/publish/types/family_elements/typeTask.js +2 -2
- package/publish/types/family_elements/typeTeam.js +1 -1
- package/publish/types/family_elements/typeTeamMember.js +1 -1
- package/publish/types/family_elements/typeTestCase.js +1 -1
- package/publish/types/family_elements/typeTestRun.js +1 -1
- package/publish/types/family_elements/typeTestRunResult.js +1 -1
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
createRowSelectColumn
|
|
8
8
|
} from '../helpers/column_factory.js';
|
|
9
9
|
import { createListingFor, registerSection } from '../helpers/section_registry.js';
|
|
10
|
+
import { typeTableColumn } from '../../../types/family_service/typeTableColumn.js';
|
|
10
11
|
|
|
11
12
|
function build_bug_listing_columns(locale, { include_select = true } = {})
|
|
12
13
|
{
|
|
@@ -38,6 +39,25 @@ function build_bug_listing_columns(locale, { include_select = true } = {})
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
|
|
42
|
+
function build_bug_todo_columns(locale)
|
|
43
|
+
{
|
|
44
|
+
const columns = build_bug_listing_columns(locale, { include_select: false });
|
|
45
|
+
|
|
46
|
+
return columns.map((column) =>
|
|
47
|
+
{
|
|
48
|
+
if (column.field === 'completed_at')
|
|
49
|
+
{
|
|
50
|
+
return new typeTableColumn({
|
|
51
|
+
...column,
|
|
52
|
+
is_hide: false,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return column;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
41
61
|
function build_bug_details_columns(locale)
|
|
42
62
|
{
|
|
43
63
|
const model = new typeBug();
|
|
@@ -73,7 +93,7 @@ export function bootstrap_bug(config)
|
|
|
73
93
|
for: createListingFor([ 'project_id' ]),
|
|
74
94
|
});
|
|
75
95
|
|
|
76
|
-
registerSection(config, 'bug', 'todo',
|
|
96
|
+
registerSection(config, 'bug', 'todo', build_bug_todo_columns(locale), {
|
|
77
97
|
contained_element_type: 'project',
|
|
78
98
|
});
|
|
79
99
|
|
|
@@ -3,7 +3,7 @@ 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
5
|
|
|
6
|
-
function build_test_case_listing_columns(locale, { include_select = true, include_goto = true } = {})
|
|
6
|
+
function build_test_case_listing_columns(locale, { include_select = true, include_goto = true, include_status = true } = {})
|
|
7
7
|
{
|
|
8
8
|
const model = new typeTestCase();
|
|
9
9
|
const columns = [];
|
|
@@ -24,7 +24,11 @@ function build_test_case_listing_columns(locale, { include_select = true, includ
|
|
|
24
24
|
columns.push(createColumn(model, locale, 'test_case_time_to_execute', { width: '80', is_editable: true, is_required: true }));
|
|
25
25
|
columns.push(createColumn(model, locale, 'test_case_complexity', { width: '80', is_editable: true, is_required: true }));
|
|
26
26
|
columns.push(createColumn(model, locale, 'test_case_importance', { width: '80', is_editable: true, is_required: true }));
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
if (include_status)
|
|
29
|
+
{
|
|
30
|
+
columns.push(createColumn(model, locale, 'test_case_status', { width: '150', is_editable: true, is_required: true }));
|
|
31
|
+
}
|
|
28
32
|
|
|
29
33
|
if (include_goto)
|
|
30
34
|
{
|
|
@@ -35,6 +39,15 @@ function build_test_case_listing_columns(locale, { include_select = true, includ
|
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
|
|
42
|
+
function build_test_case_todo_columns(locale)
|
|
43
|
+
{
|
|
44
|
+
return build_test_case_listing_columns(locale, {
|
|
45
|
+
include_select: false,
|
|
46
|
+
include_status: false,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
38
51
|
export function bootstrap_test_case(config)
|
|
39
52
|
{
|
|
40
53
|
const locale = UserService.get_current_language();
|
|
@@ -43,9 +56,7 @@ export function bootstrap_test_case(config)
|
|
|
43
56
|
for: createListingFor([ 'project_id', 'test_suite_id' ]),
|
|
44
57
|
});
|
|
45
58
|
|
|
46
|
-
registerSection(config, 'test_case', 'todo',
|
|
47
|
-
include_select: false,
|
|
48
|
-
}), {
|
|
59
|
+
registerSection(config, 'test_case', 'todo', build_test_case_todo_columns(locale), {
|
|
49
60
|
contained_element_type: 'project',
|
|
50
61
|
});
|
|
51
62
|
|
|
@@ -4,7 +4,7 @@ import { createColumn } from '../helpers/column_factory.js';
|
|
|
4
4
|
import { createListingFor, registerSection } from '../helpers/section_registry.js';
|
|
5
5
|
import { typeTableColumn } from '../../../types/family_service/typeTableColumn.js';
|
|
6
6
|
|
|
7
|
-
function
|
|
7
|
+
function build_test_case_step_shared_columns(locale)
|
|
8
8
|
{
|
|
9
9
|
const model = new typeTestCaseStep();
|
|
10
10
|
|
|
@@ -17,7 +17,11 @@ function build_test_case_step_columns(locale)
|
|
|
17
17
|
}),
|
|
18
18
|
createColumn(model, locale, 'step_element', { width: '200', is_editable: true }),
|
|
19
19
|
createColumn(model, locale, 'step_element_action', { width: '200', is_editable: true }),
|
|
20
|
-
createColumn(model, locale, 'step_excepted_result', {
|
|
20
|
+
createColumn(model, locale, 'step_excepted_result', {
|
|
21
|
+
width : '480',
|
|
22
|
+
is_editable: true,
|
|
23
|
+
is_title : true,
|
|
24
|
+
}),
|
|
21
25
|
new typeTableColumn({
|
|
22
26
|
header_name : '',
|
|
23
27
|
field : 'test_case_step_id',
|
|
@@ -31,12 +35,26 @@ function build_test_case_step_columns(locale)
|
|
|
31
35
|
];
|
|
32
36
|
}
|
|
33
37
|
|
|
38
|
+
function build_test_case_steps_columns(locale)
|
|
39
|
+
{
|
|
40
|
+
return build_test_case_step_shared_columns(locale);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function build_test_case_presteps_columns(locale)
|
|
44
|
+
{
|
|
45
|
+
return build_test_case_step_shared_columns(locale);
|
|
46
|
+
}
|
|
34
47
|
|
|
35
48
|
export function bootstrap_test_case_step(config)
|
|
36
49
|
{
|
|
37
50
|
const locale = UserService.get_current_language();
|
|
51
|
+
const embedded_for = createListingFor([ 'test_case_id', 'test_case_step_type' ]);
|
|
52
|
+
|
|
53
|
+
registerSection(config, 'test_case_step', 'steps', build_test_case_steps_columns(locale), {
|
|
54
|
+
for: embedded_for,
|
|
55
|
+
});
|
|
38
56
|
|
|
39
|
-
registerSection(config, 'test_case_step', '
|
|
40
|
-
for:
|
|
57
|
+
registerSection(config, 'test_case_step', 'presteps', build_test_case_presteps_columns(locale), {
|
|
58
|
+
for: embedded_for,
|
|
41
59
|
});
|
|
42
60
|
}
|
|
@@ -34,6 +34,31 @@ function build_test_run_listing_columns(locale, { include_select = true } = {})
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
function build_test_run_todo_columns(locale)
|
|
38
|
+
{
|
|
39
|
+
const model = new typeTestRun();
|
|
40
|
+
|
|
41
|
+
return [
|
|
42
|
+
createPrimaryKeyColumn(model, locale, { is_editable: true }),
|
|
43
|
+
createColumn(model, locale, 'test_run_name', {
|
|
44
|
+
width : '480',
|
|
45
|
+
is_editable : true,
|
|
46
|
+
is_required : true,
|
|
47
|
+
is_title : true,
|
|
48
|
+
}),
|
|
49
|
+
createColumn(model, locale, 'test_run_description', {
|
|
50
|
+
width : '480',
|
|
51
|
+
is_editable : false,
|
|
52
|
+
is_required : true,
|
|
53
|
+
is_title : true,
|
|
54
|
+
}),
|
|
55
|
+
createColumn(model, locale, 'test_run_status', { width: '80', is_editable: true, is_required: true }),
|
|
56
|
+
createColumn(model, locale, 'completed_at', { width: '150', is_required: true }),
|
|
57
|
+
createGoToColumn(model, locale),
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
37
62
|
export function bootstrap_test_run(config)
|
|
38
63
|
{
|
|
39
64
|
const locale = UserService.get_current_language();
|
|
@@ -42,7 +67,7 @@ export function bootstrap_test_run(config)
|
|
|
42
67
|
for: createListingFor([ 'project_id' ]),
|
|
43
68
|
});
|
|
44
69
|
|
|
45
|
-
registerSection(config, 'test_run', 'todo',
|
|
70
|
+
registerSection(config, 'test_run', 'todo', build_test_run_todo_columns(locale), {
|
|
46
71
|
contained_element_type: 'project',
|
|
47
72
|
});
|
|
48
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { typeTestRunResult } from '../../../types/family_elements/typeTestRunResult.js';
|
|
2
2
|
import { typeTestCase } from '../../../types/family_elements/typeTestCase.js';
|
|
3
3
|
import { UserService } from '../../../services/UserService.js';
|
|
4
|
-
import { createColumn, createGoToColumn, createRowSelectColumn } from '../helpers/column_factory.js';
|
|
4
|
+
import { createColumn, createGoToColumn, createPrimaryKeyColumn, createRowSelectColumn } from '../helpers/column_factory.js';
|
|
5
5
|
import { createListingFor, registerSection } from '../helpers/section_registry.js';
|
|
6
6
|
|
|
7
7
|
function build_test_run_result_listing_columns(locale, { include_select = true } = {})
|
|
@@ -32,6 +32,28 @@ function build_test_run_result_listing_columns(locale, { include_select = true }
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
function build_test_run_result_todo_columns(locale)
|
|
36
|
+
{
|
|
37
|
+
const model = new typeTestRunResult();
|
|
38
|
+
const test_case_model = new typeTestCase();
|
|
39
|
+
|
|
40
|
+
return [
|
|
41
|
+
createPrimaryKeyColumn(model, locale),
|
|
42
|
+
createColumn(model, locale, 'test_case_id.test_case_title', {
|
|
43
|
+
header_name : test_case_model.get_attribute_name_translate('test_case_title', locale),
|
|
44
|
+
width : '480',
|
|
45
|
+
is_editable : false,
|
|
46
|
+
is_required : true,
|
|
47
|
+
is_title : true,
|
|
48
|
+
}),
|
|
49
|
+
createColumn(model, locale, 'assigned_to', { width: '220', is_editable: true, is_required: true }),
|
|
50
|
+
createColumn(model, locale, 'test_result_status', { width: '150', is_editable: true, is_required: true }),
|
|
51
|
+
createColumn(model, locale, 'completed_at', { width: '150', is_required: true }),
|
|
52
|
+
createGoToColumn(model, locale),
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
35
57
|
function build_test_run_result_details_columns(locale)
|
|
36
58
|
{
|
|
37
59
|
const model = new typeTestRunResult();
|
|
@@ -62,7 +84,7 @@ export function bootstrap_test_run_result(config)
|
|
|
62
84
|
for: createListingFor([ 'project_id', 'test_case_id', 'test_run_id' ]),
|
|
63
85
|
});
|
|
64
86
|
|
|
65
|
-
registerSection(config, 'test_run_result', 'todo',
|
|
87
|
+
registerSection(config, 'test_run_result', 'todo', build_test_run_result_todo_columns(locale), {
|
|
66
88
|
contained_element_type: 'project',
|
|
67
89
|
});
|
|
68
90
|
|
|
@@ -114,12 +114,12 @@ export class TableBaseConfig
|
|
|
114
114
|
// sideBar (Columns/Filters Tool Panel) — только ag-grid Enterprise.
|
|
115
115
|
// В Community: columnMenu + floating filters (см. defaultColDef.filter).
|
|
116
116
|
suppressMenuHide : true,
|
|
117
|
-
columnMenu : '
|
|
117
|
+
columnMenu : 'legacy',
|
|
118
118
|
columnHoverHighlight : false,
|
|
119
119
|
enableBrowserTooltips : false,
|
|
120
120
|
rowSelection : 'multiple',
|
|
121
|
-
rowMultiSelectWithClick : false,
|
|
122
|
-
suppressRowClickSelection: true,
|
|
121
|
+
//rowMultiSelectWithClick : false,
|
|
122
|
+
//suppressRowClickSelection: true,
|
|
123
123
|
//enableRangeSelection : true,
|
|
124
124
|
/*headerHeight : '44',
|
|
125
125
|
rowHeight : '44',*/
|
|
@@ -98,8 +98,8 @@ export class typeBug extends familyTestDocumentation
|
|
|
98
98
|
bug_severity: 'string | enum | require', // BLOCKER, CRITICAL, MAJOR, MINOR, TRIVIAL (ADO/Bugzilla)
|
|
99
99
|
|
|
100
100
|
// --- people ---
|
|
101
|
-
reporter_id: 'integer | require', // кто нашёл / создал
|
|
102
|
-
assigned_to: 'integer | optional', // кто исправляет
|
|
101
|
+
reporter_id: 'integer | typeUser | require', // кто нашёл / создал
|
|
102
|
+
assigned_to: 'integer | typeUser | optional', // кто исправляет
|
|
103
103
|
|
|
104
104
|
// --- TMS links ---
|
|
105
105
|
// move into another type
|
|
@@ -25,8 +25,8 @@ export class typeTask extends familyGeneralElement
|
|
|
25
25
|
structure_scheme = {
|
|
26
26
|
task_id : 'integer | require',
|
|
27
27
|
team_id : 'integer | require',
|
|
28
|
-
task_performer_id : 'integer | require',
|
|
29
|
-
task_initiator_id : 'integer | require',
|
|
28
|
+
task_performer_id : 'integer | typeUser | require',
|
|
29
|
+
task_initiator_id : 'integer | typeUser | require',
|
|
30
30
|
task_type : 'string | enum | require',
|
|
31
31
|
task_status : 'string | enum | require',
|
|
32
32
|
project_id : 'integer | require',
|
|
@@ -33,7 +33,7 @@ export class typeTeam extends familyGeneralElement
|
|
|
33
33
|
team_name : 'string | unique | require',
|
|
34
34
|
team_slug : 'string | unique | require',
|
|
35
35
|
team_price_id : 'integer | require',
|
|
36
|
-
team_root_user_id: 'integer | require',
|
|
36
|
+
team_root_user_id: 'integer | typeUser | require',
|
|
37
37
|
created_at : 'timestamp | require',
|
|
38
38
|
updated_at : 'timestamp | optional',
|
|
39
39
|
};
|
|
@@ -26,7 +26,7 @@ export class typeTeamMember extends familyGeneralElement
|
|
|
26
26
|
first_name : 'string | optional',
|
|
27
27
|
last_name : 'string | optional',
|
|
28
28
|
team_id : 'integer | require',
|
|
29
|
-
user_id : 'integer | require',
|
|
29
|
+
user_id : 'integer | typeUser | require',
|
|
30
30
|
team_member_status: 'string | enum | require',
|
|
31
31
|
member_role : 'string | enum | require',
|
|
32
32
|
created_at : 'timestamp | require',
|
|
@@ -41,7 +41,7 @@ export class typeTestCase extends familyTestDocumentation
|
|
|
41
41
|
test_suite_id : 'integer | optional',
|
|
42
42
|
project_id : 'integer | require',
|
|
43
43
|
team_id : 'integer | require',
|
|
44
|
-
assigned_to : 'integer | optional',
|
|
44
|
+
assigned_to : 'integer | typeUser | optional',
|
|
45
45
|
functional_id : 'integer | optional',
|
|
46
46
|
test_case_status : 'string | enum | require',
|
|
47
47
|
test_case_title : 'string | optional',
|
|
@@ -36,7 +36,7 @@ export class typeTestRun extends familyTestDocumentation
|
|
|
36
36
|
project_id : 'integer | require',
|
|
37
37
|
team_id : 'integer | require',
|
|
38
38
|
test_run_description: 'string | StringHtml | optional',
|
|
39
|
-
assigned_to : 'integer | optional',
|
|
39
|
+
assigned_to : 'integer | typeUser | optional',
|
|
40
40
|
test_case_ids : 'array | optional',
|
|
41
41
|
test_run_status : 'string | enum | require',
|
|
42
42
|
created_at : 'timestamp | require',
|
|
@@ -33,7 +33,7 @@ export class typeTestRunResult extends familyTestDocumentation
|
|
|
33
33
|
test_case_id : 'integer | require',
|
|
34
34
|
test_run_id : 'integer | require',
|
|
35
35
|
test_result_status: 'string | enum | require',
|
|
36
|
-
assigned_to : 'integer | optional',
|
|
36
|
+
assigned_to : 'integer | typeUser | optional',
|
|
37
37
|
project_id : 'integer | require',
|
|
38
38
|
//test_run_result_to_execute: 'time | optional',
|
|
39
39
|
//reference_defects_ids : 'array | reference | optional',
|