Closed thomas-nicolai-frequenz closed 5 months ago
This will require improving as update_time_interval
references TimeIntervalFilter which in fact exposes a start and end time. However to receive the last updates since a certain time only requires the "start time" but no "end time" as the end time would always be empty anyhow.
I think it might be enough to have a
// Optional filter by dispatches newer than this timestamp
// If not given, no update_time filter will be applied
optional Timestamp modified_since
@Marenz I've updated the proposal above. Should hopefully be in line with what you had in mind.
Is this a duplicate of https://github.com/frequenz-floss/frequenz-api-dispatch/issues/161 In particular the following:
+ // Optional filter by update time
+ TimeIntervalFilter update_time_interval = 7;
FWIW I like the update_time_interval API better, it is consistent with other time based filters, and the naming convention matches the data field better.
True, this is superseded by https://github.com/frequenz-floss/frequenz-api-dispatch/issues/161
What's needed?
Currently there is no way to just receive dispatches by their last update time. @Marenz requested the following: "It would also be useful to receive dispatches once they have been updated"
Proposed solution
Extending the DispatchFilter so it would also support querying by update_time:
Use cases
To ensure users don't miss updates, such as changes to a dispatch's start time, it's essential to allow filtering by the last update time. The update_time_interval filter addresses this need by enabling users to identify dispatches recently modified.
Alternatives and workarounds
No response
Additional context
No response