-
-
Notifications
You must be signed in to change notification settings - Fork 241
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 option to control the order of the days in the log
output
#369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a global configuration for this is a good idea, but I also would like to be able to override it while calling the log
command. So, adding an extra option to the aforementioned, would be lovely.
Will add a flag with the same name |
Why not |
That's what I had initially, but then I wanted to be more specific to indicate that it is only reversing the order of the days, not the time entries within the days, so that I would leave it open for someone to add an option to reverse times if desired. This might never be the case though, and I am happy to rename both the option and the flag |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @joelostblom 🙏
Do you think you can add a test for this?
I can try, but might need some assistance to make it satisfactory. Before giving it a go, I just want to clarify what what you would like this test to contain. Do you want it to be something simple like the current CLI log tests, just adding the |
Testing Watson's API is easier to implement, so adding a new log section in |
d88b64f
to
b4d99a1
Compare
@jmaupetit Let me know what you think of the tests I just added. Since |
@jmaupetit Just a reminder to have a look at this when you get a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @joelostblom ! If you handle the rebase, I'll merge this asap 🙏 |
b4d99a1
to
d31897e
Compare
Haha thanks! =) I just rebased and squashed a few of the commits. |
Also fix previous changelog typo
Realized that the changelog entry was in the wrong place since the 1.9 tag was added recently. Ready for merge now 👍 |
Added: - Log output order can now be controlled via the `--reverse/--no-reverse` flag and the `reverse_log` configuration option (#369) - Add `--at` flag to the `start` and `restart` commands (#364). - Add `--color` and `--no-color` flags to force output to be colored or not respectively (#350). Changed: - Require latest Arrow version 0.15.6 to support ISO week dates (#380) Fixed: - Make after-edit-check ensure that edited time stamps are not in the future (#381)
Added: - Log output order can now be controlled via the `--reverse/--no-reverse` flag and the `reverse_log` configuration option (#369) - Add `--at` flag to the `start` and `restart` commands (#364). - Add `--color` and `--no-color` flags to force output to be colored or not respectively (#350). Changed: - Require latest Arrow version 0.15.6 to support ISO week dates (#380) Fixed: - Make after-edit-check ensure that edited time stamps are not in the future (#381)
I think it is quite common to sort with the newest entry at the bottom (e.g with
ls
and this is also how the times are ordering within each day in thelog
output), so I suggest adding an option to enable this behavior.