@eui/tools 6.3.41 → 6.3.43
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/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.3.
|
|
1
|
+
6.3.43
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.3.43 (2023-02-21)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* addition of configMapping for the both v10 and v15 skeletons (both participant and section) MWP-9235 [MWP-9235](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9235) ([2ff1aa3f](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2ff1aa3f96804ce5d3ef9e53227bf02c1f6725f5))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.3.42 (2023-02-21)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* add filtered list of jira issues exported to gitlab based on configuration for remote - MWP-9325 [MWP-9325](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9325) ([695ac86d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/695ac86d4580c15c7c078c6f1bbfc04fe688f0b5))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.3.41 (2023-02-20)
|
|
2
20
|
|
|
3
21
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { GLOBAL } from './global';
|
|
2
2
|
import { MODULES } from './modules';
|
|
3
|
-
import { EuiAppConfig, LogLevel, ConsoleAppender, LogConfig } from '@eui/core';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
const logConfig: LogConfig = {
|
|
9
|
-
logLevel: LogLevel.ALL,
|
|
10
|
-
logAppenders: [{
|
|
11
|
-
type: ConsoleAppender,
|
|
12
|
-
prefixFormat: '[{level}]',
|
|
13
|
-
}],
|
|
14
|
-
};
|
|
4
|
+
import { EuiAppConfig } from '@eui/core';
|
|
5
|
+
import { configMapping } from '@csdr/integration/element';
|
|
15
6
|
|
|
16
|
-
export const appConfig: EuiAppConfig = {
|
|
7
|
+
export const appConfig: EuiAppConfig = configMapping({
|
|
17
8
|
global: GLOBAL,
|
|
18
9
|
modules: MODULES,
|
|
19
|
-
|
|
20
|
-
};
|
|
10
|
+
});
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { GLOBAL } from './global';
|
|
2
2
|
import { MODULES } from './modules';
|
|
3
|
-
import { EuiAppConfig, LogLevel, ConsoleAppender, LogConfig } from '@eui/core';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
const logConfig: LogConfig = {
|
|
9
|
-
logLevel: LogLevel.ALL,
|
|
10
|
-
logAppenders: [{
|
|
11
|
-
type: ConsoleAppender,
|
|
12
|
-
prefixFormat: '[{level}]',
|
|
13
|
-
}],
|
|
14
|
-
};
|
|
4
|
+
import { EuiAppConfig } from '@eui/core';
|
|
5
|
+
import { configMapping } from '@csdr/integration/element';
|
|
15
6
|
|
|
16
|
-
export const appConfig: EuiAppConfig = {
|
|
7
|
+
export const appConfig: EuiAppConfig = configMapping({
|
|
17
8
|
global: GLOBAL,
|
|
18
9
|
modules: MODULES,
|
|
19
|
-
|
|
20
|
-
};
|
|
10
|
+
});
|
|
@@ -41,17 +41,19 @@ const getMetadata = (pkg) => {
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
const storeMetadata = (pkg, diffMetadata, newVersion) => {
|
|
44
|
-
tools.
|
|
44
|
+
tools.logTitle('Storing pkg history metadata');
|
|
45
45
|
|
|
46
46
|
const DEVOPS_METADATA_PATH = configUtils.global.getConfigOptions().DEVOPS_METADATA_PATH;
|
|
47
47
|
|
|
48
|
-
let flatJiraList = [];
|
|
48
|
+
let flatJiraList = [], filteredFlatJiraList = [];
|
|
49
49
|
let historyMetadata = {};
|
|
50
50
|
|
|
51
51
|
return Promise.resolve()
|
|
52
52
|
|
|
53
53
|
// flatten jira key list from diffMetadata extracted
|
|
54
54
|
.then(() => {
|
|
55
|
+
|
|
56
|
+
// full jira issues list
|
|
55
57
|
diffMetadata.forEach((pkg) => {
|
|
56
58
|
pkg.gitMetadata.forEach((gitMetadata) => {
|
|
57
59
|
gitMetadata.forEach((v) => {
|
|
@@ -61,6 +63,20 @@ const storeMetadata = (pkg, diffMetadata, newVersion) => {
|
|
|
61
63
|
})
|
|
62
64
|
|
|
63
65
|
flatJiraList = tools.removeArrayDuplicates(flatJiraList);
|
|
66
|
+
|
|
67
|
+
// filtered only issues where package is considered "linkedPackage" defined in the configuration, to not push all the issues list
|
|
68
|
+
// coming from dependencies of a particular remote to the release note generated after CI
|
|
69
|
+
diffMetadata.forEach((pkg) => {
|
|
70
|
+
if (pkg.packageLinked) {
|
|
71
|
+
pkg.gitMetadata.forEach((gitMetadata) => {
|
|
72
|
+
gitMetadata.forEach((v) => {
|
|
73
|
+
if (v.issue) filteredFlatJiraList.push(v.issue);
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
filteredFlatJiraList = tools.removeArrayDuplicates(filteredFlatJiraList);
|
|
64
80
|
})
|
|
65
81
|
|
|
66
82
|
// store the history file
|
|
@@ -77,7 +93,8 @@ const storeMetadata = (pkg, diffMetadata, newVersion) => {
|
|
|
77
93
|
versions.push({
|
|
78
94
|
name: newVersion,
|
|
79
95
|
diffs: diffMetadata,
|
|
80
|
-
issues: flatJiraList
|
|
96
|
+
issues: flatJiraList,
|
|
97
|
+
filteredIssues: filteredFlatJiraList
|
|
81
98
|
});
|
|
82
99
|
|
|
83
100
|
historyMetadata.versions = versions;
|
|
@@ -87,11 +104,20 @@ const storeMetadata = (pkg, diffMetadata, newVersion) => {
|
|
|
87
104
|
|
|
88
105
|
// storing issuesList gathered into gitlab variables for post CI processing
|
|
89
106
|
.then(() => {
|
|
107
|
+
tools.logInfo('Extracting Jira issues list to gitlab variables');
|
|
108
|
+
|
|
90
109
|
if (!flatJiraList) {
|
|
91
110
|
tools.logWarning('No issues found for this release');
|
|
92
111
|
|
|
93
112
|
} else {
|
|
94
|
-
|
|
113
|
+
let issuesList;
|
|
114
|
+
if (filteredFlatJiraList.length > 0) {
|
|
115
|
+
tools.logInfo('Taking into account filter issues list from allowed packages in configuration');
|
|
116
|
+
issuesList = filteredFlatJiraList.join(',');
|
|
117
|
+
} else {
|
|
118
|
+
tools.logInfo('Taking into account full Jira issues list extracted');
|
|
119
|
+
issuesList = flatJiraList.join(',');
|
|
120
|
+
}
|
|
95
121
|
tools.logInfo(`Unique issues found for this version : ${issuesList}`);
|
|
96
122
|
|
|
97
123
|
if (!dryRun) {
|
|
@@ -152,18 +178,31 @@ const getDiffBetweenBuildVersions = (pkg, fromBuildMetadata, toBuildMetadata) =>
|
|
|
152
178
|
|
|
153
179
|
tools.logInfo(`parsing item : ${item.package}`);
|
|
154
180
|
|
|
155
|
-
const
|
|
181
|
+
const pkgItem = configUtils.packages.getPackageByNpmPkg(item.package, true);
|
|
156
182
|
let pkgName;
|
|
157
|
-
if (
|
|
158
|
-
pkgName =
|
|
183
|
+
if (pkgItem) {
|
|
184
|
+
pkgName = pkgItem.name;
|
|
159
185
|
|
|
160
|
-
if (
|
|
161
|
-
pkgName =
|
|
186
|
+
if (pkgItem.child) {
|
|
187
|
+
pkgName = pkgItem.parentPkg;
|
|
162
188
|
}
|
|
163
189
|
}
|
|
164
190
|
|
|
165
191
|
tools.logInfo('checking package : ' + pkgName);
|
|
166
192
|
|
|
193
|
+
let isPackageLinked = true;
|
|
194
|
+
|
|
195
|
+
// checking if package is part of the known linkedPackage of the remote to parse
|
|
196
|
+
if (pkg.linkedPackages && pkg.linkedPackages.filter(p => p === item.package).length === 0) {
|
|
197
|
+
tools.logInfo(`package ${pkgName} is not part of "linkedPackages" defined for ${pkg.name}`)
|
|
198
|
+
tools.logInfo('It will be excluded from Jira issues list generation for release note');
|
|
199
|
+
isPackageLinked = false;
|
|
200
|
+
|
|
201
|
+
} else {
|
|
202
|
+
tools.logInfo(`${pkg.name} has no linkedPackages defined OR linkedPackage is present in the allowed package list`);
|
|
203
|
+
tools.logInfo('Gathering package metadata history information');
|
|
204
|
+
}
|
|
205
|
+
|
|
167
206
|
// getting package file metadata
|
|
168
207
|
const packageMetadataFile = path.join(DEVOPS_METADATA_PATH, pkgName + '-build-metadata.json');
|
|
169
208
|
|
|
@@ -187,7 +226,7 @@ const getDiffBetweenBuildVersions = (pkg, fromBuildMetadata, toBuildMetadata) =>
|
|
|
187
226
|
return acc;
|
|
188
227
|
}, []);
|
|
189
228
|
|
|
190
|
-
return { name: pkgName, old: item.old, new: item.new, gitMetadata: accGitMetadata };
|
|
229
|
+
return { name: pkgName, old: item.old, new: item.new, gitMetadata: accGitMetadata, packageLinked: isPackageLinked };
|
|
191
230
|
}
|
|
192
231
|
})
|
|
193
232
|
|