Fix: child-config autoentities fails validation with "No entities found" when using data-source-files#3723
Draft
RubenCerna2079 with Copilot wants to merge 2 commits into
Draft
Fix: child-config autoentities fails validation with "No entities found" when using data-source-files#3723RubenCerna2079 with Copilot wants to merge 2 commits into
autoentities fails validation with "No entities found" when using data-source-files#3723RubenCerna2079 with Copilot wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
…alidation When using `data-source-files`, the metadata provider stores autoentity resolution counts only on the root (merged) config. ValidateRootConfig now copies those counts to each child config before per-child validation, so child configs with only autoentities correctly pass the entity-presence check instead of failing with "No entities found". Adds two regression tests: - TestChildWithDataSourceAndAutoentitiesResolvingEntitiesIsValid - TestRootAndChildBothWithAutoentitiesResolvingEntitiesIsValid
Copilot
AI
changed the title
[WIP] Fix autoentities recognition in child configuration files
Fix: child-config Jul 14, 2026
autoentities fails validation with "No entities found" when using data-source-files
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.
Why make this change?
autoentitiesin a child configuration file (referenced viadata-source-files) is not recognized — validation fails with "No entities found" #3655data-source-files) usesautoentitiesinstead of explicitentities, validation incorrectly fails with"No entities found". The sameautoentitiesblock works correctly in the top-level config. This contradicts documented behavior that states every config may satisfy the entities requirement viaautoentities.What is this change?
Root cause:
MsSqlMetadataProvider.GenerateAutoentitiesIntoEntitiesstores autoentity resolution counts only on the root (merged)RuntimeConfig.AutoentityResolutionCounts. ButValidateEntityPresencechecks the child config's ownAutoentityResolutionCounts, which is never populated — so the resolved entity count is always 0 for child configs.Fix (
RuntimeConfigValidator.ValidateRootConfig): Before validating each child config, copy any missing resolution counts from the root config into the child config. This is a no-op when child counts are already populated (e.g. in unit tests that pre-populate them directly).How was this tested?
TestChildWithDataSourceAndAutoentitiesResolvingEntitiesIsValid: child config with onlyautoentitiesresolving >0 entities (counts stored on root only) passes validation — direct regression test for the bug.TestRootAndChildBothWithAutoentitiesResolvingEntitiesIsValid: both root and child haveautoentities, all counts on root, both pass validation.Sample Request(s)
dab validate -c dab-config.json # now passes when child uses autoentities