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
At present we don't have any rule for limiting the access of domain, model and schema functions outside snitch_core.
The possible scenarios are
Allowing model functions to be used outside snitch_core.
pros
CRUD functions for a model don't need to be re-written in the domain module for accessing in another application so no code repetition.
cons
For large projects IMO and as per the project I have experience with it's always better to have a single point of access to another application.
Allowing all the access to snitch_core through domain modules.
pros
Single point of accessibility so there is always a consistency maintained.
cons
Code repetition in case of CRUD functions which are already there.
These are my views, I would like other people to put in their inputs and we can create some conventions and rules around that to be followed in snitch.
The text was updated successfully, but these errors were encountered:
Context
At present we don't have any rule for limiting the access of domain, model and schema functions outside snitch_core.
The possible scenarios are
Allowing
model functions
to be used outside snitch_core.pros
cons
Allowing all the access to snitch_core through
domain modules
.The text was updated successfully, but these errors were encountered: