gitlab-time-tracker
gitlab-time-tracker copied to clipboard
New command: gtt list
First iteration with:
- project filter (implicit by .gtt.yml or via arg),
- scope (my/all)
- state (opened/closed)
closes #26
Potential missing things:
- Merge Request listings
- show project name with namespace in table (not returned by the issue as it seems, only project_id, could scrape the project_name from the web_url though)
- show already booked time alongside issue in table
- pagination, sorting, per_page
Coverage remained the same at 78.344% when pulling fe39396138fdfb5b078bec4591e9a2edcf70512c on zealot128-os:gtt-list into 06de05b48f38333d6674396f1f4c8a1f808a46a3 on kriskbx:master.
Coverage remained the same at 78.344% when pulling fe39396138fdfb5b078bec4591e9a2edcf70512c on zealot128-os:gtt-list into 06de05b48f38333d6674396f1f4c8a1f808a46a3 on kriskbx:master.
Coverage remained the same at 78.344% when pulling fe39396138fdfb5b078bec4591e9a2edcf70512c on zealot128-os:gtt-list into 06de05b48f38333d6674396f1f4c8a1f808a46a3 on kriskbx:master.
You're on fire. :D
Good first iteration. Really like it. Instead of using the get
method to query the API, you can use the all
method which paginates through all pages automatically (and in parallel).
Pagination is a good thing to talk about because I'm not using pagination for the output right now. I don't know about you, but my gtt log
gets pretty big and slow. Maybe we can introduce pagination for the output in the list method and refactor the log method to use the same functionality. What do you think?
Anything needed to get this merged?
Can this be reviewed and merged please? What's holding it? This is way too cool project to let go stale.