Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing shared interface for objects from database or index #3540

Open
matthias-ronge opened this issue Apr 27, 2020 · 0 comments
Open

Missing shared interface for objects from database or index #3540

matthias-ronge opened this issue Apr 27, 2020 · 0 comments

Comments

@matthias-ronge
Copy link
Collaborator

Database objects (Project, Process, etc.) and their representatives in the search engine index (ProjectDTO, ProcessDTO, etc.) do not have a common interface.

Goal: To add a common interface to each pair of classes. The interface should only give readable access to the content, that is, it should only have getters (because calling a setter on an index object will not update the database) and then all methods that only need read access to an object (which are most), should only take interface objects as parameters. This should reduce the number of cases in which a database object is loaded for an index object, only to be passed on to a method, because the method signature requires a database objekt and not makes use of a common interface; although all the necessary data would be available in the index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants