Skip to content

Commit

Permalink
Merge pull request #731 from Accenture/hotfix
Browse files Browse the repository at this point in the history
Hotfix 4.3.3
  • Loading branch information
JoernBerkefeld authored Feb 13, 2023
2 parents 4f5bfe1 + ba26e22 commit 2cc2900
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ body:
label: Version
description: What version of our software are you running? (mcdev --version)
options:
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
Expand Down
14 changes: 0 additions & 14 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# PR details

## What is the purpose of this pull request? (put an "X" next to an item)

_Please delete options that are not relevant._

- [ ] Documentation update
- [ ] Bugfix
- [ ] New metadata support
- [ ] Enhanced metadata
- [ ] Add a CLI option
- [ ] Add something to the core
- [ ] Technical debt removed
- [ ] Dependencies added / updated
- [ ] Other, please explain:

## What changes did you make? (Give an overview)

...
Expand Down
2 changes: 1 addition & 1 deletion .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
enhancement: ['feature/*', 'feat/*']
bug: ['bugfix/*', 'bug/*', 'fix/*']
bug: ['bugfix/*', 'bug/*', 'fix/*', 'hotfix/*']
chore: ['chore/*', 'task/*']
1 change: 1 addition & 0 deletions .github/workflows/close_issues_on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [closed]
branches:
- develop
- hotfix

jobs:
closeIssueOnPrMergeTrigger:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: 'CodeAnalysis'

on:
push:
branches: [main, develop]
branches: [main, develop, hotfix]
pull_request:
# The branches below must be a subset of the branches above
branches: [main, develop]
branches: [main, develop, hotfix]

jobs:
analyzeAndTest:
Expand Down
8 changes: 7 additions & 1 deletion lib/Deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,13 @@ class Deployer {
const folderMetadata = {};
const allowedDeFolderContentTypes = ['dataextension', 'shared_dataextension'];
for (const metadataType of metadataTypeArr) {
if (!MetadataTypeInfo[metadataType].definition.dependencies.includes('folder')) {
// check if folder or folder-like metadata type is in dependencies
if (
!MetadataTypeInfo[metadataType].definition.dependencies.includes('folder') &&
!MetadataTypeInfo[metadataType].definition.dependencies.some((dep) =>
dep.startsWith('folder-')
)
) {
Util.logger.debug(` ☇ skipping ${metadataType} folders: folder not a dependency`);
continue;
}
Expand Down
20 changes: 13 additions & 7 deletions lib/metadataTypes/Automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@ class Automation extends MetadataType {
}
if (schedule !== null) {
try {
// remove the fields that are not needed for the schedule but only for CLI output
const schedule_StartDateTime = schedule._StartDateTime;
delete schedule._StartDateTime;
const schedule_interval = schedule._interval;
delete schedule._interval;
const schedule_timezoneString = schedule._timezoneString;
delete schedule._timezoneString;
// start the automation
await this.client.soap.schedule(
'Automation',
schedule,
Expand All @@ -431,17 +439,17 @@ class Automation extends MetadataType {
{}
);
const intervalString =
(schedule._interval > 1 ? `${schedule._interval} ` : '') +
(schedule_interval > 1 ? `${schedule_interval} ` : '') +
(schedule.RecurrenceType === 'Daily'
? 'Day'
: schedule.RecurrenceType.slice(0, -2) +
(schedule._interval > 1 ? 's' : ''));
(schedule_interval > 1 ? 's' : ''));
Util.logger.warn(
` - scheduled automation '${
originalMetadata[key].name
}' deployed Active: runs every ${intervalString} starting ${
schedule._StartDateTime.split('T').join(' ').split('.')[0]
} ${schedule._timezoneString}`
schedule_StartDateTime.split('T').join(' ').split('.')[0]
} ${schedule_timezoneString}`
);
} catch (ex) {
Util.logger.error(
Expand Down Expand Up @@ -673,9 +681,7 @@ class Automation extends MetadataType {
? 'ByDay'
: 'Interval';
schedule.Recurrence[keyStem + 'lyRecurrencePatternType'] = patternType;
schedule.Recurrence['$'] = {
'xsi:type': keyStem + 'lyRecurrence',
};
schedule.Recurrence['@_xsi:type'] = keyStem + 'lyRecurrence';
schedule.RecurrenceType = keyStem + 'ly';
if (keyStem === 'Dai') {
schedule.Recurrence['DayInterval'] = recurHelper.INTERVAL;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mcdev",
"version": "4.3.2",
"version": "4.3.3",
"description": "Accenture Salesforce Marketing Cloud DevTools",
"author": "Accenture: joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion test/mockRoot/.mcdevrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@
"triggeredSendDefinition"
]
},
"version": "4.3.2"
"version": "4.3.3"
}

0 comments on commit 2cc2900

Please sign in to comment.