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
EG is using a singleton config object. It attempts to load models early, even if no auth policies are used. This means users MUST include models no matter what.
Consider relaxing this requirement and look at lazy-loading based on runtime needs.
The text was updated successfully, but these errors were encountered:
This is going to require some work on our side. @jtsampson you correctly identified two spots where changing the strategy from eager to lazy loading would break, but I'm almost sure there would be other places.
I think the first place where we should start changing the code is the one that is looping through the policies array — and see if we can avoid to load there.
Perhaps (perhaps) — that array is completely useless as we can discovery the policies to load by ourselves. Once this'll be scheduled, I'll have a further look into.
express-gateway/lib/config/index.js
Line 11 in 2b0e5e7
EG is using a singleton config object. It attempts to load models early, even if no auth policies are used. This means users MUST include models no matter what.
Consider relaxing this requirement and look at lazy-loading based on runtime needs.
The text was updated successfully, but these errors were encountered: