-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improve the ORM object names #806
Comments
This ticket could also be combined by renaming the db tables and column, the minimal change could be: Anyway the proposed new naming would as a minimum:
An even better implementation is to change |
There are two ways we could go about this. I feel we could rename everything to be Product centric
Subscription centric
|
|
Issue
The ORM is meant to be an object oriented abstraction on top of the underlying SQL database. For some reason, all ORM object names as defined in
orchestrator/db/models.py
end inTable
:when used in code, this does not provide the best readability experience:
in this example
SubscriptionTable
could better be replaced bySubscription
.Other object names can be confusing, like
SubscriptionInstanceTable
, that could have been namedProductBlockInstance
, or maybe renameProductBlock
toProductBlockType
and renameSubscriptionInstanceTable
toProductBlock
.Proposal
Come up with a list of better object names and refactor the code base accordingly.
Advantage:
Disadvantage:
The text was updated successfully, but these errors were encountered: