Not working: Was thinking about https://phabricator.wikimedia.org/conduit/method/transaction.search/ but that does not work as it always requires an objectIdentifier (like a task ID)?! Need to re-read https://secure.phabricator.com/T13255#244631 ... echo '{"constraints":[{"authorPHIDs":["PHID-USER-hgn5uw2jafgjgfvxibhh"]}], "after":"someEpochValue"}' | /var/www/html/phab/arcanist/bin/arc call-conduit --conduit-uri https://phabricator.wikimedia.org/ --conduit-token "api-xxxxx" transaction.search --
Not working: Was then thinking about custom https://phabricator.wikimedia.org/conduit/method/user.transactions/ added in D1144 but that does not provide any paging? Meh.
So fiddling with offset and comparing the dateCreated with the epoch value for 20190701H0000 being 1561939200, I see that my first transaction on 2019-07-01 was offset 90247. And that so far my last one was offset 94734. (Means 4488 transactions so far for this quarter):
echo '{"username":"aklapper", "offset":"123456789"}' | /var/www/html/phab/arcanist/bin/arc call-conduit --conduit-uri https://phabricator.wikimedia.org/ --conduit-token "api-xxxxx" user.transactions --
So I guess
- I want to be able to pass an epoch value to user.transactions (maybe possible and I'm too stupid?) and
- I want some paging to iterate through the results.
Not working: For the records, cannot use https://wikimedia.biterg.io/ for this as they don't index all and any actions - see T161928: Maniphest Backend: Consider having metrics covering *any* user activity in Maniphest