You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid fetching all the messages to find the creation/modification time of a specific aggregate entry it will be useful to have this info directly in the aggregate message
The text was updated successfully, but these errors were encountered:
We could technically add the information about each key directly in the dictionary of each key but a) there is a risk of conflict with the content of the aggregate and b) users may not want this information most of the time.
I suggest to add a new "info" dictionary at the root level that will contain the information for each key. Example:
Problem :
To avoid fetching all the messages to find the creation/modification time of a specific aggregate entry it will be useful to have this info directly in the aggregate message
Solution:
Update '/api/v0/aggregates' Endpoint
param :
- with_info: bool default : False
From :
```
{
"address": "0xa1B3bb7d2332383D96b7796B908fB7f7F3c2Be10",
"data": {
"key1": ...,
"key2": ...,
}
}
```
To:
```
{
"address": "0xa1B3bb7d2332383D96b7796B908fB7f7F3c2Be10",
"data": {
"key1": ...,
"key2": ...,
}
"info": {
"key1": {
"created": ...,
"last_updated": ...,
"original_item_hash": ...,
"last_update_item_hash: ...,
},
"key2": ...
}
}
```
Fixes#470.
To avoid fetching all the messages to find the creation/modification time of a specific aggregate entry it will be useful to have this info directly in the aggregate message
The text was updated successfully, but these errors were encountered: