Feature #1422
closedDate selection for Activity Page
0%
Description
I occasionally find myself needing to check out the activity for a certain date, and the UI for the activity page doesn't provide an easy way to do that. I think it would be useful to have some dropdowns to be able to jump to a certain date or date range.
Any thoughts on this?
Files
Related issues
Updated by Mischa The Evil about 16 years ago
+1, It would be quite handy to have from- / to-selectors for a custom timespan.
Updated by Preethi Sriram over 12 years ago
- File activitydaterange.patch activitydaterange.patch added
Attached is a patch for date range filter for activity feed. It defaults to initial setting and has apply link to set a date range to filter the feed.
Updated by Daniel Küppers over 10 years ago
If we add there a possibility to also filter by user, the activity page would be much more efficient. By now, i have setup a linkpage for me with the date and the user id's but thats not the way it should be.
Updated by Frei-Cedric Hackbarth - macio GmbH almost 10 years ago
I used the patch “activitydaterange.patch” of Preethi Sriram, but the patch wasn´t compatible anymore. So I implemented the feature for the actual redmine version 2.5.2.
My Patch adds a datepicker for “from” and “to” in the activity tab. So it is possible to set the timespan of interest.
Is it possible to commit the feature to the trunk?
Updated by Frei-Cedric Hackbarth - macio GmbH almost 10 years ago
I updated my patch to redmine version 2.6.0. Is it possible to commit the feature to the trunk?
Updated by Jean-Philippe Lang almost 10 years ago
Being able to request a free date range for the activity is not really acceptable (requesting a few years of activity here would lead to a timeout or a really huge page).
The initial request was more about changing the UI to be able to select the date. That would be fine.
Updated by Frei-Cedric Hackbarth - macio GmbH over 9 years ago
okay, thank you for your feedback.
Updated by Fran Fabrizio almost 9 years ago
Jean-Philippe Lang wrote:
Being able to request a free date range for the activity is not really acceptable (requesting a few years of activity here would lead to a timeout or a really huge page).
This could be addressed by limiting the total number of records allowed to be returned, but I hope that the entire concept of having a date range selection for the activity feed isn't what you find unacceptable. It would be a useful feature and for lots of projects, years' worth of activity would not be a problem performance- or size-wise, so it seems too limiting to reject the idea on the basis that some projects would have trouble with a query spanning years.
After all, the issue query view allows me to query for all tickets for the past 10 years (which in our case returned several thousand tickets in a few seconds on a fairly underpowered VM that runs our instance), so the principle of multi-year queries is already in place elsewhere in Redmine.
The initial request was more about changing the UI to be able to select the date. That would be fine.
At the risk of being overly pedantic, the initial request did mention date ranges too.
Hopefully we can reconsider this feature and come up with a version that meets everyone concerns, because it seems too useful to dismiss entirely.
Thanks,
Fran
Updated by Anonymous over 7 years ago
+1
Date ranges like "last week", "last month" etc. would be very useful.
Updated by Thomas Thorne almost 7 years ago
A date range on the URL would be useful. Seeing the from=<start_date> parameter on the URL I tried to enter a to=<end_date> without success.
I can see there are concerns about people setting date ranges that are difficult to handle. I do not know how many records the specific user activity pages would return right now. If that was going to be too many could pagination be added to the user filtered activity view, as is done for the unfiltered view? Then if people wanted a larger number of records on a single page they could set some items_per_page value to a high number that would take a looooong time to server.
Updated by Tom Lithgow about 6 years ago
Hello all, We have the need to customize the results in the activity too. By date/date range is very important, but also would it make sense to allow custom queries here too?
Specifically we would like to be able to see Date range + Project, and/or Date range + User.
Is the above possible in any way?
Updated by Go MAEDA almost 6 years ago
- Category changed from UI to Activity view
Updated by Yuuki NARA over 5 years ago
+1
It is inconvenient that you can not easily find what you previously commented on.
You need to press the following Next and Previous link several hundred times.
http://www.redmine.org/activity?from=%year-month-date%&user_id=%user_id%
Updated by Go MAEDA over 4 years ago
I think adding an ability to set only "From" date would be an improvement.
- Users will be able to set any from-date without tweaking the URL
- It does not cause a problem JPL pointed out in #1422#note-12 (requesting a free date range will cause a timeout)
- Since ActivitiesController already accepts
params[:from]
, the change is small and easy to implement
Updated by Mizuki ISHIKAWA over 4 years ago
- File feature-1422.patch feature-1422.patch added
- File ScreenShot-feature-1422-patch.png ScreenShot-feature-1422-patch.png added
I have attached the patch.
This patch adds a date field to the sidebar.
If you enter the date as 2020/03/17 and press the [Apply] button, the activities for 30 days until 2020/03/17 will be displayed.
30 days is the value set in Setting(Setting.activity_days_default).
Updated by Mizuki ISHIKAWA over 4 years ago
Go MAEDA wrote:
I think adding an ability to set only "From" date would be an improvement.
The following processing is executed in the index action of activities_controller.
https://www.redmine.org/projects/redmine/repository/revisions/19580/entry/trunk/app/controllers/activities_controller.rb#L29
if params[:from] begin; @date_to = params[:from].to_date + 1; rescue; end end @date_to ||= User.current.today + 1 @date_from = @date_to - @days
The parameter name is from(params[:from]), but it is actually used to create @date_to.
Therefore, changed "30 days from {date}" to "30 days to {date}"
Updated by Go MAEDA about 4 years ago
- File Screenshot_2020-06-16.png Screenshot_2020-06-16.png added
- Target version set to 4.2.0
Mizuki ISHIKAWA wrote:
I have attached the patch.
This patch adds a date field to the sidebar.
If you enter the date as 2020/03/17 and press the [Apply] button, the activities for 30 days until 2020/03/17 will be displayed.
30 days is the value set in Setting(Setting.activity_days_default).
Thank you, looks really nice. Setting the target version to 4.2.0.
Just for your information, Trac has a similar interface with your patch.
Updated by Go MAEDA about 4 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch attached in #1422#note-22 with slight modifications. Thank you for your contribution.