-
Notifications
You must be signed in to change notification settings - Fork 8
feat: replace entgo with gorm #147
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #147 +/- ##
===========================================
+ Coverage 0.18% 23.33% +23.15%
===========================================
Files 466 220 -246
Lines 113728 21544 -92184
===========================================
+ Hits 206 5027 +4821
+ Misses 113495 16234 -97261
- Partials 27 283 +256 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull request overview
This pull request migrates the data layer from EntGo ORM to GORM, representing a significant architectural change in how the application interfaces with the database. The migration involves removing EntGo-generated code and introducing GORM-based models and query generation.
Key Changes:
- Removed all EntGo generated code (query builders, CRUD operations, predicates)
- Introduced GORM code generation setup via
internal/data/generate.go - Deleted a comment line in the porter instance controller
Reviewed changes
Copilot reviewed 46 out of 371 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| internal/data/internal/ent/appcategory_query.go | Removed EntGo query builder for AppCategory entity |
| internal/data/internal/ent/appcategory_delete.go | Removed EntGo delete operations for AppCategory |
| internal/data/internal/ent/appcategory_create.go | Removed EntGo create/upsert operations for AppCategory |
| internal/data/internal/ent/appcategory/where.go | Removed EntGo predicate functions for AppCategory queries |
| internal/data/internal/ent/appcategory/appcategory.go | Removed EntGo schema constants and ordering options |
| internal/data/internal/ent/appcategory.go | Removed EntGo AppCategory model entity |
| internal/data/internal/ent/appappcategory_update.go | Removed EntGo update operations for AppAppCategory junction table |
| internal/data/internal/ent/appappcategory_query.go | Removed EntGo query builder for AppAppCategory |
| internal/data/internal/ent/appappcategory_delete.go | Removed EntGo delete operations for AppAppCategory |
| internal/data/internal/ent/appappcategory_create.go | Removed EntGo create/upsert operations for AppAppCategory |
| internal/data/internal/ent/appappcategory/where.go | Removed EntGo predicate functions for AppAppCategory |
| internal/data/internal/ent/appappcategory/appappcategory.go | Removed EntGo schema constants for AppAppCategory |
| internal/data/internal/ent/appappcategory.go | Removed EntGo AppAppCategory model entity |
| internal/data/internal/ent/app_update.go | Removed EntGo update operations for App entity |
| internal/data/internal/ent/app_query.go | Removed EntGo query builder for App entity |
| internal/data/internal/ent/app_delete.go | Removed EntGo delete operations for App entity |
| internal/data/internal/ent/app/where.go | Removed EntGo predicate functions for App queries |
| internal/data/generate.go | Added GORM code generation script with configuration |
| internal/biz/bizsupervisor/instance.go | Removed redundant comment |
No description provided.