-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this commit, we used different initialization logic for linked data authorities and non-linked data. Further, the initialization logic was locked away inside of a controller. With this commit, we expose a method that provides consistent initialization logic; albeit with different returned classes that have slightly different implementation nuances. The application can then rely on that and we can share initialization logic across controllers and also expose a method that allows non-controller initialization to begin to follow the same logic pathway. Where are the tests? The initializations are covered by controller tests, so I have chosen not to write new ones. There is further work to do because LinkedData and non-LinkedData there are different signatures for `find` and `search`. Ideally, we would normalize the public facing implementation logic. However, this commit preserves backwards compatibility, simply introducing a new feature.
- Loading branch information
Showing
3 changed files
with
52 additions
and
22 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