Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to group entries by field #8

Merged
merged 7 commits into from
Feb 4, 2023
Merged

Add command to group entries by field #8

merged 7 commits into from
Feb 4, 2023

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    8de0868 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Format duration using the hh:mm format

    The 'human' format is nice, but it make reading durations at glance
    harder.
    
    refs: #6
    zmoog committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    64fd771 View commit details
    Browse the repository at this point in the history
  2. Add --project-id option to the 'entries' group

    The Time Entries API doesn't have filtering options, so I am filtering
    the response client side. Not great, we'll see if there are other
    options.
    
    refs: #6
    zmoog committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    5d5f961 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. Add a table footer with duration total

    The Rich's table has the option of adding a table footer. It adds an
    additional row visually distinct from the data rows:
    
         $ tgl entries --project-id 178435728 group-by --field tags --start-date 2023-01-30
    
              Time Entries
    
         tags           Duration
         ─────────────────────────
         type:support   9:40
         type:meeting   7:38
         type:goal      5:58
         type:sync      5:08
         type:hr        0:54
         ─────────────────────────
         Total          29:20
    
    refs: #6
    zmoog committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    dc5bf91 View commit details
    Browse the repository at this point in the history
  2. Filter running timers from duration sum

    Running timers have a negative duration that would impact totals.
    zmoog committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    855c641 View commit details
    Browse the repository at this point in the history
  3. Update usage in the README file

    We are now showing:
    
    - tgl entries list
    - tgl entries list --project-id 123
    - tgl entries group-by --field tags
    zmoog committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    0b903a0 View commit details
    Browse the repository at this point in the history
  4. Fix test

    I should lower the maintenance cost of these tests!
    zmoog committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    6ac72a4 View commit details
    Browse the repository at this point in the history