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

Remove gorm from models #3584

Merged
merged 3 commits into from
Nov 9, 2022
Merged

Remove gorm from models #3584

merged 3 commits into from
Nov 9, 2022

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Nov 7, 2022

Summary

This PR:

  • removes gorm struct tags from models, and changes the deletedAt field to use the stdlib
  • removes the Modelable which is no longer used. We have interface for more specific things implemented by models like Updatable and orgMember
  • removes GormTxn and replaces all references to it with ReadTxn or WriteTxn, and removes the GormDB method from Transaction and DB now that nothing uses it

@dnephin dnephin marked this pull request as draft November 7, 2022 16:31
Base automatically changed from dnephin/remove-gorm-1 to main November 8, 2022 16:28
The last few remaining still need to be converted to SQL.

Making this change now so that it's easier to track down the remaining queries.
Also remove IsAModel which is not used.
@dnephin dnephin marked this pull request as ready for review November 8, 2022 16:36
@dnephin
Copy link
Contributor Author

dnephin commented Nov 8, 2022

Ok, this is rebased and should be ready for review.

Copy link
Collaborator

@BruceMacD BruceMacD left a comment

Choose a reason for hiding this comment

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

good to see this getting to the finish line

@dnephin dnephin merged commit 98887cf into main Nov 9, 2022
@dnephin dnephin deleted the dnephin/remove-gorm-2 branch November 9, 2022 16:41
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.

2 participants