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
I would like to add the filter possibility for Master versions to our docs. See below how it's done already concisely described by @AnssiAhola, which came up in a recent Discussions post.
Now while I'm at it, I want to investigate if there are maybe more objects that make use of the filter from the BasePaginatedResponse class...
Original Post
It's pretty hard to figure it out from the source code, but Master.versions is actually a PaginatedList under the hood which inherits BasePaginatedResponse so it has the filter() method and should call that specific api when invoked.
While investigating I played around with a graphical view of modules. This is the Master class. It didn't really help my investigation but it was fun to look at 😆
I would like to add the filter possibility for Master versions to our docs. See below how it's done already concisely described by @AnssiAhola, which came up in a recent Discussions post.
Now while I'm at it, I want to investigate if there are maybe more objects that make use of the
filter
from theBasePaginatedResponse
class...Original Post
It's pretty hard to figure it out from the source code, but
Master.versions
is actually aPaginatedList
under the hood which inheritsBasePaginatedResponse
so it has thefilter()
method and should call that specific api when invoked.Example
The
filter()
method supports all the parameters described in the API docs and can be passed in as kwargsHope that helps, Cheers!
Originally posted by @AnssiAhola in #155 (reply in thread)
The text was updated successfully, but these errors were encountered: