Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W-17980476: exclude folder when folder content is excluded from org connection #1535

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

EstebanRomero84
Copy link
Contributor

What does this PR do?

Updates CSB build() method for when an Org and excluded types are passed in. It will check if the excluded type is a folder content and if so, it will also exclude the folder from the resulting CS.
E.g. if Report type is excluded, it will also exclude ReportFolder.

#3232, @W-17980476@ >

@EstebanRomero84 EstebanRomero84 requested a review from a team as a code owner April 4, 2025 15:44
@@ -623,6 +623,63 @@ describe('ComponentSetBuilder', () => {
expect(compSet.has(apexClassWildcardMatch)).to.equal(true);
});

it('should exclude folder type when excluding a type that is stored in folders', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

can we add a test that excludes DasbhoardFolder and makes sure Dashboard is still included?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fix doesn't allow that functionality: due to how the listMetadata API works for components in folders (where it needs the folder to get the component), if the folder is excluded then it can't list the components in it.

@WillieRuemmele
Copy link
Member

QA Notes


✅ : running project generate manifest --from-org [email protected] --excluded-metadata Report created a manifest without a Report entry, before, reports were present

@WillieRuemmele WillieRuemmele merged commit 5b44448 into main Apr 8, 2025
53 checks passed
@WillieRuemmele WillieRuemmele deleted the er/exclude-folder-functionality branch April 8, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants