Skip to content

7.7.2#2133

Merged
JoernBerkefeld merged 24 commits intomainfrom
develop
Mar 3, 2025
Merged

7.7.2#2133
JoernBerkefeld merged 24 commits intomainfrom
develop

Conversation

@JoernBerkefeld
Copy link
Contributor

@JoernBerkefeld JoernBerkefeld commented Mar 3, 2025

Release details

Checklist

Before merge

  • Wiki updated with info in ticket listed under Documentation
  • ran npm run prepare-release (which runs npm audit fix, npm run lint-ts, npm run lint:fix, git add, git commit)
  • pushed potential changes made by prepare-release

After merge

  • merged all dependabot PRs that target main branch
  • updated bug template to include the new version
  • updated .mcdevrc for tests to the new version
  • ran npm run version:major/minor/patch
  • pushed version-prep commits
  • merged main branch into develop branch
  • closed GitHub milestone
  • created new GitHub Release

Documentation

... insert updated documentation here ...

Issues

JoernBerkefeld and others added 22 commits February 27, 2025 15:26
…-of-validation-rule-messages

Task/2124 improve readability of validation rule messages
…t-get-removed-and-you-re-retrieve-it-by-key-the-actually-deleted-blocks-will-not-be-removed-from-your-disk

bug/#1636: locally delete renamed or removed asset parts upon retrieve
…ets-change-the-previous-code-extract-is-not-deleted

bug/1232 ensure old asset content blocks get removed if the file type changed
…uld-delete-a-pre-existing-local-file-if-the-key-was-not-found-on-the-server

task/1941 delete local file if retrieve-by-key cannot find the item on the server
…ecommended-extensions

task/2120 recommend installing mcdev vsce for mcdev projects
…nt-purge-the-deploy-folder-when-no-templates-are-found

bug/2119 stop build if buildTemplate did not find any items
…le-to-know-if-a-validationrule-offers-an-automatic-fix

task/2131 improve recognition of fixable validation rules
@JoernBerkefeld JoernBerkefeld added this to the 7.7.2 milestone Mar 3, 2025
@JoernBerkefeld JoernBerkefeld requested a review from Copilot March 3, 2025 12:35
@JoernBerkefeld JoernBerkefeld self-assigned this Mar 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR prepares the 7.7.2 release by refining error handling, cleanup tasks, and logging consistency across multiple metadata type modules and core utilities. Key changes include:

  • Addition of calls to postDeleteTasks in several metadata types when no records are found, ensuring proper cleanup of obsolete files.
  • Refactoring of helper functions and options handling (such as in Mcdev.setOptions) to improve robustness and logging.
  • Enhancements in Builder and test utilities to better manage key filtering and reset configuration.

Reviewed Changes

File Description
lib/metadataTypes/MetadataType.js Updated comments and introduced postUpdateTasks in SOAP updates.
lib/metadataTypes/Asset.js Added postDeleteTasks calls to clean old files during asset retrieval.
lib/metadataTypes/DataExtension.js Adjusted document handling to invoke postDeleteTasks when empty.
lib/metadataTypes/Automation.js Added postDeleteTasks call when no records are found.
lib/index.js Refactored options and buildTemplate logic to check for empty key arrays.
lib/util/validations.js Minor type annotation updates.
lib/metadataTypes/ImportFile.js Added postDeleteTasks call on retrieval failure.
lib/metadataTypes/MobileMessage.js Added cleanup via postDeleteTasks after a 0-record retrieval.
lib/metadataTypes/Event.js Added postDeleteTasks call on 0-record retrieval.
lib/metadataTypes/MobileKeyword.js Added postDeleteTasks call on 0-record retrieval.
lib/Builder.js Implemented removal of keys that caused template build errors.
test/utils.js Updated reset-options logic to derive values from knownOptions.
lib/metadataTypes/Journey.js Minor adjustment to run postDeleteTasks for 'key' mode.

Copilot reviewed 41 out of 41 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

test/utils.js:197

  • [nitpick] Consider renaming the loop variable 'options' to 'option' since 'handler.knownOptions' is an array; this may improve readability and clarity.
for (const options in handler.knownOptions) {

@github-actions
Copy link

github-actions bot commented Mar 3, 2025

Coverage Report

Commit:ab5a1ca
Base: main@cbaaa18

Type Base This PR
Total Statements Coverage  71.38%  71.37%  (-0.01%)
Total Branches Coverage  70.92%  70.88%  (-0.04%)
Total Functions Coverage  84.29%  84.26%  (-0.03%)
Total Lines Coverage  71.38%  71.37%  (-0.01%)
Details (changed files):
File Statements Branches Functions Lines

@JoernBerkefeld JoernBerkefeld added bug Something isn't working chore Jira issue-type "Task" labels Mar 3, 2025
@JoernBerkefeld JoernBerkefeld merged commit c3f9a87 into main Mar 3, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment