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
How do you go about getting the last gate change without specifying a large range, possibly pulled from the TS extents as a guess? (I don't think we have another way to determine the life of a project via API)
For example you have a project that had a gate change 7 years ago. Would I have to query 40 years of data just to be sure we get the last gate change? Maybe a feature request?
Suggest we add an endpoint that allows you to get the last gate change of a project and a cursor in that point in time (i.e. a page that lets you move backwards through the changes - assuming this is the latest)
The text was updated successfully, but these errors were encountered:
The GateChangeGetAllController has this description on the page-size parameter:
```description = "the maximum number of gate changes to retrieve, regardless of time window. " +
"A positive integer is interpreted as the maximum number of changes from the " +
"beginning of the time window. A negative integer is interpreted as the maximum number " +
"from the end of the time window. " + "Default " + DEFAULT_PAGE_SIZE + "." +
"A page cursor will not be returned by this DTO. Instead, the next page can be determined " +
"by querying the next set of changes using the last returned change date and using " +
"start-time-inclusive=false")```
I think that means you can specify a long time-window ending now and a page-size of -1 and you will get the most recent change.
Query for a projects last known gate change
How do you go about getting the last gate change without specifying a large range, possibly pulled from the TS extents as a guess? (I don't think we have another way to determine the life of a project via API)
For example you have a project that had a gate change 7 years ago. Would I have to query 40 years of data just to be sure we get the last gate change? Maybe a feature request?
Suggest we add an endpoint that allows you to get the last gate change of a project and a cursor in that point in time (i.e. a page that lets you move backwards through the changes - assuming this is the latest)
The text was updated successfully, but these errors were encountered: