Skip to content

Conversation

@pyelchurisf
Copy link
Owner

Add support for web_app DigitalExperienceBundle without meta.xml files

Summary

This PR adds support for web_app DigitalExperienceBundle metadata type that doesn't require meta.xml files.

Changes

  • Added web_app bundle recognition in metadataResolver
  • Updated DigitalExperienceSourceAdapter to handle web_app bundles
  • Modified deployMessages to generate correct FileResponses for web_app bundles
  • Added comprehensive test coverage for all changes

Testing

  • All existing tests pass
  • Added 3 new tests for web_app functionality
  • Coverage maintained at 100% for new code

@W-20091482

pyelchurisf and others added 10 commits November 10, 2025 10:50
The second if block checking web_app paths can never execute because:
- web_app bundles don't have meta.xml files
- super.parseMetadataXml() returns undefined for web_app paths
- The condition 'xml && isWebAppBaseType(path)' is always false
- Reduced path splitting from 3 times to 1 time
- Removed unused pathParts variable
- Improved code clarity with inline comments
- Added new snapshot test for DigitalExperienceBundle with web_app base type
- Fixed merge conversion bug where files were placed at wrong directory level
- Refactored duplicate code in digitalExperienceSourceAdapter
- Added getWebAppBundleDir helper function to eliminate duplication
- Use posix.relative and posix.join to ensure consistent path separators
- Fixes test failure on Windows CI where mixed path separators caused incorrect fullName generation
- Child DigitalExperience components now get correct fullNames like 'web_app/zenith/index.html'
- Retrieve now reports individual files for web_app bundles
- Fixes 'Nothing retrieved' warning when retrieving web_app bundles
- Matches the deploy behavior for consistent file response reporting
Pulling changes from main
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.

2 participants