Skip to content

excludeFields property does not work for update operations. #103

@ozanozen

Description

@ozanozen

This is my first time posting a bug to an open source project, I hope everything goes well.

I used this river for an existing db with exclusion filters and I observed that excluded fields did exist in the indexed documents. When I dug into the code I saw that for update operations the document is queried after exclusion step which rendered exclusion filter useless. I fixed the issue by moving the exclusion filter closer to adding the data to stream for operations other than update. For update I added a BasiDBObject to query which filters out excluded fields on db level.

I tested this fix intensively in our database (I didn't write new test cases due to time constraints I have in my project, sorry) and it works for multi level fields as well.

I will link the pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions