bug/1838 fix shared DEs not resolved if linking type is retrieved together with dataExtensions#2545
Merged
JoernBerkefeld merged 2 commits intodevelopfrom Mar 14, 2026
Merged
Conversation
…attributeSet Co-authored-by: JoernBerkefeld <1917227+JoernBerkefeld@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [BUG] Fix shared DEs not resolved during query and attributeSet retrieval
#1937 fix shared DEs not resolved if query+attributeSet is retrieved together with dataExtensions
Mar 13, 2026
Coverage ReportCommit:8223949Base: develop@5265eeb
Details (changed files):
|
2 tasks
JoernBerkefeld
approved these changes
Mar 14, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When running
mcdev r cred/bu -m dataExtension query(ordataExtension attributeSet), shared DEs from the parent BU were never cached — causingr__dataExtension_keylookups to fail silently with warnings.Root cause
Retriever.jscallsretrieveSharedForCache()when a type is both being retrieved and a dependency of another type in the same run. The return value is a plainDataExtensionMap, but the code incorrectly accessed.metadataon it:This only manifests in the combined-retrieve path — standalone
queryorattributeSetretrieval already worked becauseretrieveForCachecallsretrieve(null, ...)internally, which invokesretrieveSharedForCachedirectly.Test coverage added
type.query.test.js: New test fixturetestExisting_query_SharedDE(targets shared DEtestExisting_dataExtensionSharedvia ObjectID21711373-72c1-ec11-b83b-shared). New testShould resolve shared dataExtensions in query when retrieved together with dataExtensionassertsr__dataExtension_keyis correctly resolved in combined retrieval. Updated existing query count assertions (4→5retrieve,5→6deploy).type.attributeSet.test.js: New testShould resolve shared dataExtensions in attributeSet when retrieved together with dataExtensionasserts thattestExisting_dataExtensionSharedattributeSet getsr__dataExtension_keyset correctly under the same combined-retrieve scenario.Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.