gitlab-time-tracker icon indicating copy to clipboard operation
gitlab-time-tracker copied to clipboard

New command: gtt list

Open zealot128 opened this issue 7 years ago • 6 comments

First iteration with:

  • project filter (implicit by .gtt.yml or via arg),
  • scope (my/all)
  • state (opened/closed)

bildschirmfoto 2017-10-11 um 11 24 44 bildschirmfoto 2017-10-11 um 11 30 13

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

zealot128 avatar Oct 11 '17 09:10 zealot128

Coverage Status

Coverage remained the same at 78.344% when pulling fe39396138fdfb5b078bec4591e9a2edcf70512c on zealot128-os:gtt-list into 06de05b48f38333d6674396f1f4c8a1f808a46a3 on kriskbx:master.

coveralls avatar Oct 11 '17 09:10 coveralls

Coverage Status

Coverage remained the same at 78.344% when pulling fe39396138fdfb5b078bec4591e9a2edcf70512c on zealot128-os:gtt-list into 06de05b48f38333d6674396f1f4c8a1f808a46a3 on kriskbx:master.

coveralls avatar Oct 11 '17 09:10 coveralls

Coverage Status

Coverage remained the same at 78.344% when pulling fe39396138fdfb5b078bec4591e9a2edcf70512c on zealot128-os:gtt-list into 06de05b48f38333d6674396f1f4c8a1f808a46a3 on kriskbx:master.

coveralls avatar Oct 11 '17 09:10 coveralls

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?

kriskbx avatar Oct 12 '17 20:10 kriskbx

Anything needed to get this merged?

MatthiasEgli-Audit avatar Dec 18 '19 15:12 MatthiasEgli-Audit

Can this be reviewed and merged please? What's holding it? This is way too cool project to let go stale.

demisx avatar Feb 06 '20 22:02 demisx