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
[EPIC] Re-Introspection #2829
Comments
With 2.1.0 we shipped the experimental flag Behind that flag we implemented the first two pieces of Re-Introspection, #2503 and #2545 Please leave feedback on how this feature works for you. We are interested in both positive and negative feedback, so we know if this feature is already ready for production. |
Thanks for putting the effort into this feature. It is greatly appreciated! We have only had a few issues with re-introspection:
|
I tested |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Quick update: We just merged the last planned feature here 🚀 If you install the For now you can still test it with: It would be great if you all could test this again, before we go into the final integration with #3331 and see if your use cases are covered now - and let us know if not. (Pinging some people from this and other related issues for visibility: @Akxe @ExiaSR @theneshofficial @kennytraction @theRocket @louisrli @harryttd) |
@janpio When will a new dev package be available? It seems the current one (2.6.0-dev.9) doesn't have @updateAt changes. That is the only remaining issue we have. |
Sounds like you're on the tail end of dev work here, but any chance of getting eyes on #3076? tl;dr - reintrospection is incorrect in a particularly bad way when using partial unique indexes, having Prisma ignore them rather than incorrectly assume they're globally unique would be a large improvement in usability for us. |
@kennytraction Ahem, there should be a |
@bkrausz Can you explain the "having Prisma ignore them rather than incorrectly assume they're globally unique would be a large improvement in usability for us." bit over in #3076 please? I thought this was just about adding new functionality - which is prioritized versus the other things we are working on and would not land very high in the list right now, if it is not or we need to improve our understanding we can probably fast track that part. |
No problem. With that build it seems all of our issues have been addressed. Thanks! |
Since re-introspection is in a good state now we will turn this into the default behavior, meaning
We just need product sign off on the naming for the extra flag here:
Are all options we have considered. |
How about --ignore-schema? It is to me more descriptive. |
After some internal discussions, we've settled on using Feedback on the alternative options considered:
|
@albertoperdomo You can always provide an alias: This corresponds to the way npm shorten |
We want to remove one of the remaining big pain points of Introspection: If you manually adjusted your data model after introspection (to rename fields or models, or add default IDs for example) these changes are currently lost once you introspect again ("re-introspect", for example, because your database was changed manually or migrated by another tool).
This project consists of many individual problems that we are tackling one by one:
@map
and@@map
cuid()
anduuid()
) #2534: Keep defaults that are not persisted in the database@updatedAt
#3335: Keep@updatedAt
We might also decide that some of them are not worth the effort.
Some more issues are listed related to this under: topic: re-introspection
The text was updated successfully, but these errors were encountered: