complexqa_frontend_core 1.17.10 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.17.10",
3
+ "version": "1.17.11",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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', build_bug_listing_columns(locale, { include_select: false }), {
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
- columns.push(createColumn(model, locale, 'test_case_status', { width: '150', is_editable: true, is_required: true }));
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', build_test_case_listing_columns(locale, {
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 build_test_case_step_columns(locale)
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', { width: '480', is_editable: true }),
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', 'embedded', build_test_case_step_columns(locale), {
40
- for: createListingFor([ 'test_case_id', 'test_case_step_type' ]),
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', build_test_run_listing_columns(locale, { include_select: false }), {
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', build_test_run_result_listing_columns(locale, { include_select: false }), {
87
+ registerSection(config, 'test_run_result', 'todo', build_test_run_result_todo_columns(locale), {
66
88
  contained_element_type: 'project',
67
89
  });
68
90