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
{{ message }}
This repository was archived by the owner on Jul 14, 2024. It is now read-only.
(when its model still exists, an obsolete Resource i.e. whose model has possibly incompatibly changed should be handled by A. as eager / friendly as possible ResourceEntityMapperService.entityToResource() and B. OPT LATER possibly direct Entity management through REST or embedded admin tool)
Workaround: use start & limit to query "around" the problematic Resource.
Solution:
DONE 20150331 replace NullPointerException by nice exception OR display it without props but flag it "obsolete" OR skip entity without model or flagged as "obsolete" OPT OR don't skip it only if using specific header switch
1.1. replace entity.getCachedModel() by EntityModelService.getModel() on top request-bound cache
never delete a model but flag it "deleted" (at least until there are no more resources in it) and its (linking) Resources and Models "obsolete/deleted"
LATER move obsolete Resource to trash collection(s) and allow to manage those, OPT possibly in async else perfs
write (mongo map/reduce, rules) script that detects resources without models
and together: 4. run script in batch, 3. move those to trash, OPT raise alert / or in red in dashboard
LATER OPT never delete a Resource but flag it "deleted" (at least until there are no more resources linking to it) an Resources linking to it "obsolete/deleted"
LATER OPT support other (parts of) Resource lifecycles, unify them, make them flexible / extensible