mcdev 4.3.2 → 4.3.3
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/.github/ISSUE_TEMPLATE/bug.yml +1 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- package/.github/pr-labeler.yml +1 -1
- package/.github/workflows/close_issues_on_merge.yml +1 -0
- package/.github/workflows/code-analysis.yml +2 -2
- package/lib/Deployer.js +7 -1
- package/lib/metadataTypes/Automation.js +13 -7
- package/package.json +1 -1
- package/test/mockRoot/.mcdevrc.json +1 -1
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
# PR details
|
|
2
2
|
|
|
3
|
-
## What is the purpose of this pull request? (put an "X" next to an item)
|
|
4
|
-
|
|
5
|
-
_Please delete options that are not relevant._
|
|
6
|
-
|
|
7
|
-
- [ ] Documentation update
|
|
8
|
-
- [ ] Bugfix
|
|
9
|
-
- [ ] New metadata support
|
|
10
|
-
- [ ] Enhanced metadata
|
|
11
|
-
- [ ] Add a CLI option
|
|
12
|
-
- [ ] Add something to the core
|
|
13
|
-
- [ ] Technical debt removed
|
|
14
|
-
- [ ] Dependencies added / updated
|
|
15
|
-
- [ ] Other, please explain:
|
|
16
|
-
|
|
17
3
|
## What changes did you make? (Give an overview)
|
|
18
4
|
|
|
19
5
|
...
|
package/.github/pr-labeler.yml
CHANGED
|
@@ -13,10 +13,10 @@ name: 'CodeAnalysis'
|
|
|
13
13
|
|
|
14
14
|
on:
|
|
15
15
|
push:
|
|
16
|
-
branches: [main, develop]
|
|
16
|
+
branches: [main, develop, hotfix]
|
|
17
17
|
pull_request:
|
|
18
18
|
# The branches below must be a subset of the branches above
|
|
19
|
-
branches: [main, develop]
|
|
19
|
+
branches: [main, develop, hotfix]
|
|
20
20
|
|
|
21
21
|
jobs:
|
|
22
22
|
analyzeAndTest:
|
package/lib/Deployer.js
CHANGED
|
@@ -333,7 +333,13 @@ class Deployer {
|
|
|
333
333
|
const folderMetadata = {};
|
|
334
334
|
const allowedDeFolderContentTypes = ['dataextension', 'shared_dataextension'];
|
|
335
335
|
for (const metadataType of metadataTypeArr) {
|
|
336
|
-
if
|
|
336
|
+
// check if folder or folder-like metadata type is in dependencies
|
|
337
|
+
if (
|
|
338
|
+
!MetadataTypeInfo[metadataType].definition.dependencies.includes('folder') &&
|
|
339
|
+
!MetadataTypeInfo[metadataType].definition.dependencies.some((dep) =>
|
|
340
|
+
dep.startsWith('folder-')
|
|
341
|
+
)
|
|
342
|
+
) {
|
|
337
343
|
Util.logger.debug(` ☇ skipping ${metadataType} folders: folder not a dependency`);
|
|
338
344
|
continue;
|
|
339
345
|
}
|
|
@@ -419,6 +419,14 @@ class Automation extends MetadataType {
|
|
|
419
419
|
}
|
|
420
420
|
if (schedule !== null) {
|
|
421
421
|
try {
|
|
422
|
+
// remove the fields that are not needed for the schedule but only for CLI output
|
|
423
|
+
const schedule_StartDateTime = schedule._StartDateTime;
|
|
424
|
+
delete schedule._StartDateTime;
|
|
425
|
+
const schedule_interval = schedule._interval;
|
|
426
|
+
delete schedule._interval;
|
|
427
|
+
const schedule_timezoneString = schedule._timezoneString;
|
|
428
|
+
delete schedule._timezoneString;
|
|
429
|
+
// start the automation
|
|
422
430
|
await this.client.soap.schedule(
|
|
423
431
|
'Automation',
|
|
424
432
|
schedule,
|
|
@@ -431,17 +439,17 @@ class Automation extends MetadataType {
|
|
|
431
439
|
{}
|
|
432
440
|
);
|
|
433
441
|
const intervalString =
|
|
434
|
-
(
|
|
442
|
+
(schedule_interval > 1 ? `${schedule_interval} ` : '') +
|
|
435
443
|
(schedule.RecurrenceType === 'Daily'
|
|
436
444
|
? 'Day'
|
|
437
445
|
: schedule.RecurrenceType.slice(0, -2) +
|
|
438
|
-
(
|
|
446
|
+
(schedule_interval > 1 ? 's' : ''));
|
|
439
447
|
Util.logger.warn(
|
|
440
448
|
` - scheduled automation '${
|
|
441
449
|
originalMetadata[key].name
|
|
442
450
|
}' deployed Active: runs every ${intervalString} starting ${
|
|
443
|
-
|
|
444
|
-
} ${
|
|
451
|
+
schedule_StartDateTime.split('T').join(' ').split('.')[0]
|
|
452
|
+
} ${schedule_timezoneString}`
|
|
445
453
|
);
|
|
446
454
|
} catch (ex) {
|
|
447
455
|
Util.logger.error(
|
|
@@ -673,9 +681,7 @@ class Automation extends MetadataType {
|
|
|
673
681
|
? 'ByDay'
|
|
674
682
|
: 'Interval';
|
|
675
683
|
schedule.Recurrence[keyStem + 'lyRecurrencePatternType'] = patternType;
|
|
676
|
-
schedule.Recurrence['
|
|
677
|
-
'xsi:type': keyStem + 'lyRecurrence',
|
|
678
|
-
};
|
|
684
|
+
schedule.Recurrence['@_xsi:type'] = keyStem + 'lyRecurrence';
|
|
679
685
|
schedule.RecurrenceType = keyStem + 'ly';
|
|
680
686
|
if (keyStem === 'Dai') {
|
|
681
687
|
schedule.Recurrence['DayInterval'] = recurHelper.INTERVAL;
|
package/package.json
CHANGED