eCommerce Bridge not accurate to see if the error is relevant to the latest update
SOLVE
Hi
This is just to report a design/document problem I find. Not sure if this is right place.
In the eCommerce Bridge doc "Check the sync status of an object" says "You can check if the error is relevant to the latest update by comparing the erroredAt to the lastProcessedAt field" but consider the following data
The error remains as same as the first status, this is mentioned in doc.
The problem is, erroredAt < lastProcessedAt, same as when it's error.
For this very case, there is no problem because what I'm checking is field `hubspotId` to be not null.
In general, it also should not be a big problem because when the error is for the current update, the difference lastProcessedAt - erroredAt should be very small (< 1000ms I guess), and when the error is from a previous update, the difference should be very large, depending on business logic (when and how to retry and fix the error).
However, it would be nice to let erroredAt = lastProcessedAt or put the `changedAt` of the current action in returned status so that when the error is for current update, so we have a definitive indication, either `erroredAt == lastProcessedAt` for the former or `error.erroredAt > status.changedAt` for the later.
eCommerce Bridge not accurate to see if the error is relevant to the latest update
SOLVE
Just to add that one way to find the error for recent update is to compare `changedAt` field.
It seems error.changedAt is copied from the input message, so after an update is sent, it should be true `error.changedAt == message.changedAt` otherwise the error must be from an old update.
eCommerce Bridge not accurate to see if the error is relevant to the latest update
SOLVE
Just to add that one way to find the error for recent update is to compare `changedAt` field.
It seems error.changedAt is copied from the input message, so after an update is sent, it should be true `error.changedAt == message.changedAt` otherwise the error must be from an old update.