プロジェクト

全般

プロフィール

Vote #63400

完了

Date selection for Activity Page

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Activity view_50
対象バージョン:
開始日:
2008/06/10
期日:
進捗率:

0%

予定工数:
category_id:
50
version_id:
152
issue_org_id:
1422
author_id:
593
assigned_to_id:
332
comments:
25
status_id:
5
tracker_id:
2
plus1:
10
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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?


journals

+1, It would be quite handy to have from- / to-selectors for a custom timespan.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
+1. Very useful.
--------------------------------------------------------------------------------
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?

--------------------------------------------------------------------------------
I updated my patch to redmine version 2.6.0. Is it possible to commit the feature to the trunk?

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
okay, thank you for your feedback.
--------------------------------------------------------------------------------
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

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1

Date ranges like "last week", "last month" etc. would be very useful.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+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%

--------------------------------------------------------------------------------
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

!{width: 441px; border: 1px solid #ccc;}.selectable-from-date@2x.png!
--------------------------------------------------------------------------------
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).

!{width: 70%; border: 1px solid #ccc}ScreenShot-feature-1422-patch.png!
--------------------------------------------------------------------------------
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
<pre>
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
</pre>

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}"

--------------------------------------------------------------------------------
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.

!{width: 779px; border: 1px solid grey;}.Screenshot_2020-06-16.png!
--------------------------------------------------------------------------------
Committed the patch attached in #1422#note-22 with slight modifications. Thank you for your contribution.
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,3474,Make date range in module Activity selectable through user

Admin Redmine さんが3年以上前に更新

  • カテゴリActivity view_50 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0