Skip to content

feature/2427 allow adding like-filters to createDeltaPkg source-marketList#2428

Merged
JoernBerkefeld merged 3 commits intodevelopfrom
feature/2427-allow-filtering-source-files-when-running-createdeltapackage
Nov 20, 2025
Merged

feature/2427 allow adding like-filters to createDeltaPkg source-marketList#2428
JoernBerkefeld merged 3 commits intodevelopfrom
feature/2427-allow-filtering-source-files-when-running-createdeltapackage

Conversation

@JoernBerkefeld
Copy link
Contributor

@JoernBerkefeld JoernBerkefeld commented Nov 20, 2025

PR details

What changes did you make? (Give an overview)

Further details (optional)

        "deployment-uat-parent-source": {
            "filter": {
                "exclude": {
                    "key": { "dataExtension": ["RS-NL-MCV%[_]QA"] }
                },
                "include": {
                    "key": { "*": ["%[_]QA[_]%", "%[_]QA"] }
                }
            },
            "cred/_ParentBU_": "QA_Regional"
        },

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • test scripts updated
  • Wiki updated (if applicable)

@JoernBerkefeld JoernBerkefeld added this to the 8.3.0 milestone Nov 20, 2025
@JoernBerkefeld JoernBerkefeld self-assigned this Nov 20, 2025
@JoernBerkefeld JoernBerkefeld added enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story" e/DevOps EPIC labels Nov 20, 2025
@github-actions
Copy link

github-actions bot commented Nov 20, 2025

Coverage Report

Commit:9f9ab2d
Base: develop@89d0429

Type Base This PR
Total Statements Coverage  70.77%  70.71%  (-0.06%)
Total Branches Coverage  70.76%  70.66%  (-0.1%)
Total Functions Coverage  83.42%  83.42%  (+0%)
Total Lines Coverage  70.77%  70.71%  (-0.06%)
Details (changed files):
File Statements Branches Functions Lines

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.

Pull Request Overview

This PR adds support for include/exclude filters in market lists when creating delta packages. The filters use SQL LIKE-style patterns (with % and _ wildcards) to selectively process metadata items based on their keys.

Key Changes:

  • Market list configurations can now include a filter property with include.key and exclude.key arrays
  • Filter patterns are applied during template building to remove unwanted items from processing
  • Exclude filters are applied first, followed by include filters

Reviewed Changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/util/util.js Updated BU validation to skip the new 'filter' property when iterating market list keys
lib/util/devops.js Extracts filter from source market list and passes it to the build function
lib/index.js Implements filter logic in buildTemplate() to apply include/exclude patterns to metadata keys
@types/lib/index.d.ts Added optional filter parameter to build() and buildTemplate() method signatures
@types/lib/util/util.d.ts.map Updated TypeScript source map
@types/lib/util/devops.d.ts.map Updated TypeScript source map
@types/lib/index.d.ts.map Updated TypeScript source map

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JoernBerkefeld JoernBerkefeld merged commit 6682eff into develop Nov 20, 2025
11 checks passed
@JoernBerkefeld JoernBerkefeld deleted the feature/2427-allow-filtering-source-files-when-running-createdeltapackage branch November 20, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e/DevOps EPIC enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Allow filtering source files when running createDeltaPackage

2 participants