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

fix(psl): Updated validation for multi-schema attribute detection #3503

Merged
merged 2 commits into from Dec 15, 2022

Conversation

Druue
Copy link
Contributor

@Druue Druue commented Dec 14, 2022

Will now error when no models or enums contain @@schema as opposed to just one.

closes #3502

Will now error when no models or enums contain `@@schema` as opposed to just one.
@Druue Druue requested a review from a team as a code owner December 14, 2022 15:49
@Jolg42 Jolg42 added this to the 4.8.0 milestone Dec 14, 2022
@pimeys
Copy link
Contributor

pimeys commented Dec 15, 2022

The failing SQL Server tests are quite easy to fix. It's about re-introspection, meaning we come from data model X to data model Y. The input data model does not have schemas defined, so I think you should add them there to get the tests passing.

To run the tests, first start SQL Server (I think azure-edge is the only one that works in Apple's weird proprietary platform) in docker. Then source .test_database_urls/mssql_2019 to get the correct connection URI's. Finally run cargo test in introspection-engine/introspection-engine-tests/.

Copy link
Contributor

@pimeys pimeys left a comment

Choose a reason for hiding this comment

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

noice.

Copy link
Contributor

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

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

💯

@Druue Druue merged commit 2ff0967 into main Dec 15, 2022
@Druue Druue deleted the feat/diagnostic-multi_schema branch December 15, 2022 12:31
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.

Bug: @@schema attribute should always be required when schemas is defined in the datasource
4 participants