Orphaned types in hybris

How often does the following happen: you work on some feature branch, create new properties or even new items, push your code, create a Pull Request and then in the meantime checkout a fresh develop branch and start working on something new?

Now you have a database with items and properties that do not exist yet. If those are related to the CMS components, chances are your frontend simply stops working and start throwing strange Exceptions.

Hybris can help you to solve this issue. Go to hac > Maintenance > Cleanup and use the Type system tab:

Orphaned types

Check it right now and you may be surprised to find that there is something in there. If there is something, consider running a cleanup in advance. Essentially hybris will drop the tables for those types.

A clean database looks like this:

Clean db. Notice the “There are no orphaned types” message

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.