Skip to content

Document model implementing IRedisHydrateable not working correctly after Redis.OM version 0.5.5 #544

@jorge-anova

Description

@jorge-anova

We have 2 indexes created using document models that implement IRedisHydrateable interface.
Both documents use StorageType of type Hash.

Everything was working correctly until we update Redis.OM version 0.5.5 to 0.6.0, even after we apply changes mentioned in the release notes:

Image

We have tried to upgrade to version 1.0.1 with the same issues.

After analyzing Redis.OM code, we have spotted the following:

In this line if document model implements IRedisHydrateable interface we are calling hydrate function to hydrate the object however we are not returning the object that was hydrated.
Shouldn't we return it instead of doing the normal process as if the document do not implements IRedisHydrateable?

We have tested that if we return the object, our code starts to work again.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions