ru.coon 2.7.48 → 2.7.49

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/CHANGELOG.md CHANGED
@@ -1,17 +1,24 @@
1
- <<<<<<< HEAD
2
- # Version 2.7.46, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/19e7bc15c819e0dda639b962060e1993b1f29b6b)
3
- * upd ([b76ef9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b76ef97561c257ff2c4956cebd21a69813219c2a))
4
- * sync ([31dbbf], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/31dbbf2431bf2bbc6aff326d50edc1fd61af841d))
5
- =======
1
+ # Version 2.7.49, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/f1191865e9e52331596a93e7bcf3ba36c85940f6)
2
+ * ## Fixes
3
+ * <span style='color:red'> HT-9084 ReportColumnStatePlugin column width</span> ([b10a75], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b10a75f78f92262543be268863961fda1113d9d5))
4
+
5
+ * improve custom panel plugin tracing ([ed6206], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ed62065b34ebb04520b62f6fce269e4d4cbb6d21))
6
+ * upd ([57157a], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/57157acdd88c0fa6702e5c5cbd321bc89d840d09))
7
+ * update: CHANGELOG.md ([ee1e7e], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/ee1e7e89e565e1b5514a5ee284c938b1e138e612))
8
+
6
9
  # Version 2.7.47, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/83d7e98c91d4219f3d673decd3ebae65144e77a3)
7
10
  * update: CHANGELOG.md ([e32b02], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/e32b025afe52cc55930d04bccba9fd19be5905b9))
8
11
 
9
12
  # Version 2.7.46, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/236b6e13be06add8fe0eeab8b079e086e1d8b524)
13
+ * :feat HT-8890 update extjs_iconpack to 1.3.27 ([108b17], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/108b17bbd73ed4064b884baa8633b0ceb9981048))
14
+ * update: CHANGELOG.md ([c2d8dd], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c2d8dde1d050e900e2cd6fec5ded2c94c38050f0))
15
+
16
+ # Version 2.7.46, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/19e7bc15c819e0dda639b962060e1993b1f29b6b)
10
17
  * ## Features
11
18
  * <span style='color:green'>feat: extjs_iconpack version 1.3.26. Related to HT-8076.</span> ([4800c2], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/4800c23beff6959619ff467bbcb6c7fc30afb188))
12
19
 
13
- * :feat HT-8890 update extjs_iconpack to 1.3.27 ([108b17], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/108b17bbd73ed4064b884baa8633b0ceb9981048))
14
- >>>>>>> ee1e7e89e565e1b5514a5ee284c938b1e138e612
20
+ * upd ([b76ef9], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/b76ef97561c257ff2c4956cebd21a69813219c2a))
21
+ * sync ([31dbbf], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/31dbbf2431bf2bbc6aff326d50edc1fd61af841d))
15
22
  * update: CHANGELOG.md ([c9af96], [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/c9af967e425b3f60570f9bf2198c105c7480f8e6))
16
23
 
17
24
  # Version 2.7.45, [link](http://gitlab-dbr.sigma-it.local/dbr/ru.coon/-/commit/6d09543c991b7ecfb2ea0f7e4369298dbfd2327f)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "ru.coon"
5
5
  },
6
6
  "description": "",
7
- "version": "2.7.48",
7
+ "version": "2.7.49",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+http://gitlab-dbr.sigma-it.local/dbr/ru.coon"
@@ -51,7 +51,7 @@ Ext.define('Coon.report.plugin.grid.ReportColumnStatePlugin', {
51
51
  const currentColumnState = {
52
52
  columnId: e.dataIndex,
53
53
  position: e.fullColumnIndex,
54
- width: e.getWidth(),
54
+ width: e.width,
55
55
  hidden: e.getHidden(),
56
56
  };
57
57
  currentState.push(currentColumnState);
@@ -21,9 +21,7 @@ Ext.define('Coon.uielement.component.UiCustomPanel', {
21
21
  const win = Ext.create({xtype: 'UiCustomPanelTraceWindow'});
22
22
  if (win.isTraceEnabled(scope)) {
23
23
  const traceBuffer = scope.getTraceBuffer();
24
- win.down('grid')
25
- .getStore()
26
- .loadData(traceBuffer.getElements());
24
+ win.loadLogs(traceBuffer.getElements());
27
25
  win.show();
28
26
  }
29
27
  },
@@ -19,6 +19,7 @@ Ext.define('Coon.uielement.component.UiCustomPanelTraceWindow', {
19
19
  items: [
20
20
  {
21
21
  xtype: 'gridpanel',
22
+ itemId: 'logs',
22
23
  flex: 1,
23
24
  split: true,
24
25
  width: 500,
@@ -26,15 +27,61 @@ Ext.define('Coon.uielement.component.UiCustomPanelTraceWindow', {
26
27
  type: 'json',
27
28
  },
28
29
  columns: [
29
- {xtype: 'datecolumn', dataIndex: 'time', text: 'время', flex: 1, format: 'h:m:s.u'},
30
+ {
31
+ dataIndex: 'time',
32
+ text: 'метка времени, ms',
33
+ flex: 1,
34
+ renderer(v) {
35
+ return v ? `${v / 1000} sec` : '-';
36
+ },
37
+ },
30
38
  {dataIndex: 'ptype', text: 'плагин', flex: 1},
31
- {dataIndex: 'handlerName', text: 'название обработчика', flex: 1}
39
+ {
40
+ dataIndex: 'handlerName',
41
+ text: 'название обработчика',
42
+ flex: 1,
43
+ renderer(v, meta, record) {
44
+ if (record.get('entryCount') > 1) {
45
+ meta.tdStyle = 'color: orange';
46
+ }
47
+ return v;
48
+ },
49
+ }
32
50
  ],
33
51
  },
34
52
  {
35
- xtype: 'UiAceEditor',
36
- readOnly: true,
53
+ xtype: 'panel',
37
54
  flex: 1,
55
+ title: 'входные параметры плагина',
56
+ layout: 'fit',
57
+ bodyPadding: 8,
58
+ items: [
59
+ {
60
+ xtype: 'UiAceEditor',
61
+ readOnly: true,
62
+ flex: 1,
63
+ }
64
+ ],
65
+ },
66
+ {
67
+ xtype: 'gridpanel',
68
+ disabled: true,
69
+ title: 'все вхождения плагина',
70
+ width: 220,
71
+ itemId: 'repeatedOccurrences',
72
+ columns: [
73
+ {
74
+ dataIndex: 'time',
75
+ text: 'метка времени, ms',
76
+ flex: 1,
77
+ renderer(v) {
78
+ return v ? `${v / 1000} sec` : '-';
79
+ },
80
+ }
81
+ ],
82
+ store: {
83
+ type: 'array',
84
+ },
38
85
  }
39
86
  ],
40
87
 
@@ -70,11 +117,44 @@ Ext.define('Coon.uielement.component.UiCustomPanelTraceWindow', {
70
117
  return unpack(args);
71
118
  },
72
119
 
120
+ getLogKey(record) {
121
+ const {ptype, handlerName} = record.getData ? record.getData() : record;
122
+ return `${ptype}:${handlerName}`;
123
+ },
124
+
125
+ loadLogs(logs) {
126
+ const startTime = logs[0] && logs[0].time;
127
+ logs = logs.map((log) => {
128
+ log.time = log.time - startTime;
129
+ return log;
130
+ });
131
+ this.logMap = logs.reduce((acc, el, idx) => {
132
+ el.index = idx;
133
+ const logs = acc.get(this.getLogKey(el)) || [];
134
+ logs.push(el);
135
+ acc.set(this.getLogKey(el), logs);
136
+ return acc;
137
+ }, new Map());
138
+ logs = logs.map((el) => {
139
+ el.entryCount = (this.logMap.get(this.getLogKey(el)) || []).length;
140
+ return el;
141
+ });
142
+ this.logGrid.getStore().loadData(logs);
143
+ },
144
+
73
145
  initComponent() {
74
146
  this.callParent();
75
147
  const viewer = this.down('UiAceEditor');
76
- const grid = this.down('gridpanel');
77
- grid.on('select', function(_, record) {
148
+ this.logGrid = this.down('gridpanel#logs');
149
+ const repeatedOccurrenceGrid = this.down('gridpanel#repeatedOccurrences');
150
+ repeatedOccurrenceGrid.on('select', function(_, record) {
151
+ const selected = this.logGrid.getStore().getRange().find((el) => record.get('index') === el.get('index'));
152
+ selected && this.logGrid.getSelectionModel().select(selected);
153
+ }, this);
154
+ this.logGrid.on('select', function(_, record) {
155
+ const occurrences = this.logMap.get(this.getLogKey(record)) || [];
156
+ repeatedOccurrenceGrid.getStore().loadData(occurrences);
157
+ repeatedOccurrenceGrid.setDisabled(occurrences.length < 2);
78
158
  viewer.setValue(this.convertArgs(record.data.args));
79
159
  }, this);
80
160
  },
@@ -44,6 +44,11 @@ Ext.define('Coon.uielement.plugin.CustomPanelPlugin', {
44
44
  handlerName: this.handlerName && this.handlerName.toString() || '-/-',
45
45
  args,
46
46
  });
47
+ Coon.log.debug('trace:', {
48
+ ptype: this.getPtype(),
49
+ handlerName: this.handlerName && this.handlerName.toString() || '-/-',
50
+ args,
51
+ });
47
52
  },
48
53
 
49
54
  logTraceMessages(msg) {
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  Ext.define('Coon.version', {
2
2
  singleton: true,
3
- number: '2.7.47',
3
+ number: '2.7.49',
4
4
  });