-
Notifications
You must be signed in to change notification settings - Fork 2
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
✨ Extend schema json #961
base: main
Are you sure you want to change the base?
✨ Extend schema json #961
Conversation
fredericenard
commented
Feb 4, 2025
•
edited
Loading
edited
- We need a robust way to flag user defined link tables (see this slack thread + private discussion with @falexwolf)
- This discussion with @Zethson mades me realized some fields are missing in the schema json (primary key flag, maybe also the field used for default ordering and title displayed in the UI).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #961 +/- ##
==========================================
- Coverage 83.99% 83.96% -0.03%
==========================================
Files 43 43
Lines 3536 3549 +13
==========================================
+ Hits 2970 2980 +10
- Misses 566 569 +3 ☔ View full report in Codecov by Sentry. |
self.model = model | ||
self.class_name = model.__name__ | ||
self.module_name = module_name | ||
self.model_name = model._meta.model_name | ||
self.table_name = model._meta.db_table | ||
self.included_modules = included_modules | ||
self.fields = self._get_fields_metadata(self.model) | ||
self.is_link_table = issubclass(model, LinkORM) |
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.
I thought we had this line already since the beginning. Good that we track this now!
Great! 😄 Can you please also add a test for a link table example? And: can we also track whether a field is |