-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce resource schema related magic
There were tons of magic related to resolution of object type/class definitions for border cases (like for missing intent, or for partially classified shadows). It concentrated around methods like findObjectDefinitionPrecisely, findObjectDefinitionForKindInternal, and findDefinitionForShadow. This commit removes the majority of it; so the algorithms are much cleaner now: 1. Null intent means looking for type with default-in-a-kind flag set. (Object class name is no longer considered. Nor any other guesses, like trying to find a type with intent literally equal to "default".) 2. For shadows: partial classification (e.g. only kind is known) is now ignored. Either the shadow is classified fully (kind+intent), or only its object class is used to look up the definition. (Except for full classification attempts, of course.) Related change: - A fix for recently introduced bug related to handling aux OCs declared for the object type. Work in progress.
- Loading branch information
Showing
18 changed files
with
215 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.