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

ModifiedAt changes with the same attribute value #1481

Open
sgonzalez-hiades opened this issue Nov 23, 2023 · 2 comments
Open

ModifiedAt changes with the same attribute value #1481

sgonzalez-hiades opened this issue Nov 23, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sgonzalez-hiades
Copy link

Performing tests we have detected the following: we are using the endpoint /ngsi-ld/v1/entityOperations/upsert?options=update and in the body of the request there is a attribute that has the same value that it had previously, this causes the value of modifiedAt of the attribute to be updated. We have realized that the same doesn't happen with the location property, since modifiedAt is not updated with the same value.

This is a problem when generating notifications because the attributes values haven't really changed but the notification will be trigger because the modifiedAt metadata was modified.

@kzangeli
Copy link
Collaborator

Yeah well, every time an update it sent to the broker, the modifiedAt must be changed.
It's a new "time of sample", so that's the way it must work.
If that is not done with the "location" GeoProperty ... that's a BUG and I'll look into that.

Now, about not wanting to receive notifications for updates that didn't ACTUALLY change the value of an attribute is not new and there's something implemented in Orion-LD for that:
Start the broker with the CLI -noNotifyFalseUpdate and you should no longer receive those notifications.
Env var: export ORIONLD_NO_NOTIFY_FALSE_UPDATE=TRUE

@kzangeli kzangeli self-assigned this Nov 23, 2023
@kzangeli kzangeli added the bug Something isn't working label Nov 23, 2023
@kzangeli
Copy link
Collaborator

Note to self: Need to look at modifiedAt for "location"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants