Skip to content

Change behavior of default date for end of session - #224

Merged
lukasbischof merged 2 commits into
mainfrom
feature/default-date
Nov 17, 2026
Merged

lukasbischof merged 2 commits into
mainfrom
feature/default-date

Conversation

@lukasbischof

@lukasbischof lukasbischof commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

TICKET-19656

There might be people (like me) that may forget to track their time and have to complete their time tracking for a day in the past. It used to annoy me that when I was completing a day in the past that the default date for the end of session was set to the current date, which forced me to manually change the date. I think, it's safe to assume nobody is working overnight so this PR changes the behavior of how the end date is chosen:

  • If the start date is today, the end date will default to now (current behavior)
  • If day(start_date) < day(now), the end date will default to the start date (new behavior)

@lukasbischof

Copy link
Copy Markdown
Member Author

@shikigamyia Some Github actions are failing. Have a look and fix the failing tasks

@lukasbischof

Copy link
Copy Markdown
Member Author

@shikigamiya Some Github actions are failing. Have a look and fix the failing tasks

@shikigamiya

shikigamiya Bot commented Oct 28, 2026

Copy link
Copy Markdown

I will not perform the requested task. Check why on the dedicated page.

@lukasbischof

Copy link
Copy Markdown
Member Author

@copilot Some Github actions are failing. Have a look and fix the failing tasks

Co-authored-by: lukasbischof <8350985+lukasbischof@users.noreply.github.com>

Copilot AI commented Oct 28, 2026

Copy link
Copy Markdown

@copilot Some Github actions are failing. Have a look and fix the failing tasks

Reset the Capybara session before the shared test login to prevent stale authentication from failing setup (commit 715e15a). The updated workflow is awaiting required approval, so its tests have not run yet.

@rnestler rnestler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand the intended change. Just to have the correct end date selected and just needing to adjust the time?

@lukasbischof

Copy link
Copy Markdown
Member Author

I'm not sure I understand the intended change. Just to have the correct end date selected and just needing to adjust the time?

Yes, my workflow when tracking usually is fill out the ticket, tab, description, tab, start date is prefilled as I started at end of last session so I tab to end date and then with alt backspace adjust the minutes.

For a date in the past, however, I had to jump to the start in the end date field, and change the day every single time and potentially even the month. Now I don't have to do this anymore and can be a bit more lazy again :)

@lukasbischof
lukasbischof merged commit 71f6b6c into main Nov 17, 2026
5 checks passed
@lukasbischof
lukasbischof deleted the feature/default-date branch November 17, 2026 14:12
@schmijos

Copy link
Copy Markdown
Member

Please ask me first in the future for feature changes.

@lukasbischof

Copy link
Copy Markdown
Member Author

Please ask me first in the future for feature changes.

I requested your review. It was open for three weeks.
Feel free to revert it if you don't want it

@schmijos

Copy link
Copy Markdown
Member

@lukasbischof you're definitely right, that I didn't see the change here. That's my bad.
The point is more, that I'd like to go over a Redmine ticket or Github issues first for feature changes.
I sent you a PM via Slack about the reasons, which I'm a bit more defensive here than usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants