-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add ZModel language #7065
base: main
Are you sure you want to change the base?
Add ZModel language #7065
Conversation
We don't add frameworks, stacks, libraries or toolkits as their own languages. This project identifies itself as a "Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks." which appears to be entirely Typescript. React isn't its own language in Linguistic for this same reason. Closing. |
@lildude
Since there are already hundreds of users using it, I definitely hope they could get a better DX on GitHub. If you still hold the opinion, may I know what’s the prerequisites it must meet to be qualified for ZModel to get in? |
Thanks for the explanation. I’ve reopened it but you need to rename the language to Zmodel as that is what you are adding. Popularity isn’t sufficient for merging now anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The language you are adding is zmodel, not Zenstack. Please rename.
Hey @lildude , may I know what the up-to-date polarity assessment criteria is? According to the assessment mentioned in #5756
For Zmodel, the extension is expected to occur only once per repo. Using the search offered in the template, the result is 387 which is more than 200. So, I believe the first rule has been met. Could the issue be with the second rule? If so, is there a specific way I can verify this myself? |
🤔 that doesn't appear to be the case from a quick look through the search results like this repo, or any of the other results where the This suggests the files will occur at least once per repo and likely more, hence the first criteria applies. |
Of course this all makes sense when you consider Prisma models will be for many DB tables and people prefer to break things up for easier maintenance (and ownership in big monorepos) as is the case I first referenced which is taking full advantage of importing the individual So I'd say |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will also need to rename the directory containing the samples.
@lildude Thanks for the comments and the detailed explanation. The comments has been resovled. You're right; it is the same case as Prisma, where typically users have only one schema file as their database model in the repo. The reason we supported multiple schema files because that was a long-requested feature by the user of Prisma when their schema grows to a certain level for better maintenance (Prisma also added preview support recently after we supported it): Support for splitting Prisma schema into multiple files #2377 Even if people use multiple schema files, there would be a main entry file that could only occur once per repo. So you can use the below search to see the unique repos that use zmodel: https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.zmodel+datasource |
@lildude The changes have been made based on your feedback. Is there anything else I need to do? As I mentioned above, since most repos typically have just one schema file unless they break things up for easier maintenance (same for Prisma), I wonder if it might meet the popularity criteria now. Here is the search for unique repos that use zmodel: https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.zmodel+datasource |
Hello @lildude , any chance we can get this merged soon? Thank you! |
I don't review PRs for popularity requirements etc after the initial review until I'm close to making the next release. The next release will be made sometime next week. |
Description
Checklist:
https://github.com/zenstackhq/zenstack/tree/main/packages/language
#FF7100