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

Render composite types with the new renderer #3317

Merged

Conversation

pimeys
Copy link
Contributor

@pimeys pimeys commented Oct 21, 2022

@pimeys pimeys added this to the 4.6.0 milestone Oct 21, 2022
@pimeys pimeys requested a review from a team as a code owner October 21, 2022 16:40
@pimeys pimeys marked this pull request as draft October 21, 2022 16:40
@pimeys pimeys force-pushed the introspection-engine/use-datamodel-renderer-for-composite-types branch from 82db30b to 035425d Compare October 21, 2022 16:51
@prisma prisma deleted a comment from sonatype-lift bot Oct 21, 2022
@pimeys pimeys force-pushed the introspection-engine/use-datamodel-renderer-for-composite-types branch from 3ff55d7 to 9e7163b Compare October 24, 2022 16:36
@pimeys pimeys force-pushed the introspection-engine/use-datamodel-renderer-for-composite-types branch from 9e7163b to bfe8426 Compare October 24, 2022 16:45
@pimeys pimeys marked this pull request as ready for review October 24, 2022 16:45
/// Here to cope with the initial issue of needing the DML
/// structures. Remove when we don't generate DML in intro
/// anymore.
pub fn from_dml(val: &'a dml::DefaultValue) -> Self {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here might be some dragons. We'll see when models and fields are converted!

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.

nice! I'm still not visualizing the full picture with this data structure when we cut out dml from introspection and stop re-rendering everything, but rather express the introspection result as inserts/removals on the original schema (that's probably what it will take if we want to preserve comments). Let's keep pushing forward and see how things pan out

@pimeys pimeys merged commit f257d80 into main Oct 25, 2022
@pimeys pimeys deleted the introspection-engine/use-datamodel-renderer-for-composite-types branch October 25, 2022 08:07
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.

None yet

2 participants