Skip to content

Update Validation for Autoentities#3152

Open
RubenCerna2079 wants to merge 25 commits intomainfrom
dev/rubencerna/update-validation-autoentities
Open

Update Validation for Autoentities#3152
RubenCerna2079 wants to merge 25 commits intomainfrom
dev/rubencerna/update-validation-autoentities

Conversation

@RubenCerna2079
Copy link
Contributor

Why make this change?

  • Update Validation for Autoentities #3131
    The current validation for DAB occurs before the section where the autoentities are generated. In order to ensure that all the entities that are generated from the autoentities, we need to move the part of the validation that takes care of ensuring the entities don't have the same REST paths or the same GraphQL types.

What is this change?

How was this tested?

  • Integration Tests
  • Unit Tests

@RubenCerna2079 RubenCerna2079 added this to the Feb 2026 milestone Feb 21, 2026
@RubenCerna2079 RubenCerna2079 self-assigned this Feb 21, 2026
@RubenCerna2079 RubenCerna2079 changed the title Update validation for autoentities Update Validation for Autoentities Feb 21, 2026
@RubenCerna2079 RubenCerna2079 linked an issue Feb 21, 2026 that may be closed by this pull request
@RubenCerna2079 RubenCerna2079 marked this pull request as ready for review February 23, 2026 04:37
@RubenCerna2079 RubenCerna2079 force-pushed the dev/rubencerna/update-validation-autoentities branch from 7445062 to 5a0b722 Compare February 25, 2026 20:44
anushakolan
anushakolan previously approved these changes Feb 26, 2026
Copy link
Contributor

@anushakolan anushakolan left a comment

Choose a reason for hiding this comment

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

LGTM!

Base automatically changed from dev/rubencerna/create-inmemory-entities-from-autoentities to main February 26, 2026 19:48
@RubenCerna2079 RubenCerna2079 dismissed anushakolan’s stale review February 26, 2026 19:48

The base branch was changed.

Copilot AI review requested due to automatic review settings February 26, 2026 20:40
@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079 RubenCerna2079 enabled auto-merge (squash) February 27, 2026 01:35
@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

Copy link
Contributor

@anushakolan anushakolan left a comment

Choose a reason for hiding this comment

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

Have some minor suggestion, but rest LGTM!

subStatusCode: DataApiBuilderException.SubStatusCodes.ErrorInInitialization);
}

runtimeConfigValidator.ValidateEntityAndAutoentityConfigurations(runtimeConfig);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was the validation being executed even for CosmosDB previously?

Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

ValidateEntitiesMetadata needs to be called as well.

@github-project-automation github-project-automation bot moved this from Todo to Review In Progress in Data API builder Feb 28, 2026
@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Review In Progress

Development

Successfully merging this pull request may close these issues.

Update Validation for Autoentities

4 participants