You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the classes in "repository" package (SubscriptionRepository + ISubscriptionRepository) and move the code into SubscriptionService class.
Motivation
Remove extra unnecessary layer of calls. The SubscriptionService is already hard coded towards using MongoDB (with MongoQuery) so the extra abstraction doesn't provide any value. MongoDBHandler is used directly by other classes, bypassing the SubscriptionRepository...
Exemplification
Not applicable.
Benefits
Easier to follow the code. Could be more easily refactored in the future (interface towards database).
Possible Drawbacks
Will not improve functionality but rather readability of code.
The text was updated successfully, but these errors were encountered:
Description
Remove the classes in "repository" package (SubscriptionRepository + ISubscriptionRepository) and move the code into SubscriptionService class.
Motivation
Remove extra unnecessary layer of calls. The SubscriptionService is already hard coded towards using MongoDB (with MongoQuery) so the extra abstraction doesn't provide any value. MongoDBHandler is used directly by other classes, bypassing the SubscriptionRepository...
Exemplification
Not applicable.
Benefits
Easier to follow the code. Could be more easily refactored in the future (interface towards database).
Possible Drawbacks
Will not improve functionality but rather readability of code.
The text was updated successfully, but these errors were encountered: