Skip to content

Update API: Return noop information #9642

@snikch

Description

@snikch

It would be great if we could get an indication in the response of an _update request as to whether the operation was a noop or not.

Currently when passing detect_noop, the response has no indication of whether there was an update or not. In our system we have differing level of denormalization, and it would make life a lot easier if we could understand whether an update caused a change, so we could start updating our denormalized data.

I had a look in the code and it doesn't look like the noop information is being passed into the UpdateResponse instance, so I'm a bit out of my depth on best practice to pass this in and surface it in the response api, but if it's a feature that you'd sign off on then I'm happy to get it done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.>enhancementhelp wantedadoptme

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions