decred / politeia

ISC License
110 stars 75 forks source link

pictl: Return timestamps of all comments when no IDs provided. #1616

Closed amass01 closed 2 years ago

amass01 commented 2 years ago

While working on #1538 found a bug in pictl commenttimestamps command.

The help message says:

If comment IDs are not provided then the timestamps for all comments will be
returned.

This currently does not work and if no comment IDs are passed the command returns an empty response. This is not the expected behavior, it should fetch all comment IDs and then fetch the timestamps page by page.

This is a prerequisite for #1538.