Defect #15777

Watched issues count on "My page" is shown for all issues instead of only open ones

Added by Dmitry Beloglazov about 4 years ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:My page
Target version:3.3.0
Resolution:Fixed Affected version:2.3.4

Description

On "My page" I have a "Watched issues" widget.
It shows the issues count in parentheses, and currently it shows 13 there. However, in the list itself there are only 9 issues.
I figured out that 13 is the total number of all watched issues, including closed ones.
The expected behavior is: watched issues counter should show only the number of open issues.

Environment:
  Redmine version                2.3.4.stable.12471
  Ruby version                   1.8.7-p174 (2009-06-12) [i686-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  extended_fields                0.2.2
  redmine_my_page_queries        2.0.8
  redmine_tags                   2.0.1-dev
  redmine_time_tracker           0.5
  stuff_to_do_plugin             0.4.1

watched_issue_my_page_block.diff Magnifier (1.01 KB) Karel Pičman, 2015-02-11 12:59

watched_issue_my_page_block_v2.diff Magnifier (460 Bytes) Go MAEDA, 2016-03-11 02:36


Related issues

Related to Redmine - Defect #23472: Show open issues only in "Reported Issues" on My page Closed
Duplicated by Redmine - Defect #8948: Watched issues which are already closed are still display... Closed 2011-07-30
Duplicated by Redmine - Patch #7687: Incorrect search in my page Closed 2011-02-22

Associated revisions

Revision 15315
Added by Jean-Philippe Lang almost 2 years ago

Watched issues count on "My page" is shown for all issues instead of only open ones (#15777).

Patch by Karel Pičman and Go MAEDA.

History

#1 Updated by Karel Pičman almost 3 years ago

Yes, there is an inconsistency in the issue status. While we see all watched issues in MyPage The link reffers to open issues only.
Please apply the attached patch that display open watched issues only in My page.

#2 Updated by Ieuan Jenkins almost 2 years ago

Same bug as reported in #8948, I think.

#3 Updated by Go MAEDA almost 2 years ago

I agree to change the behavior. I rarely want to see closed issues.
Here is an updated the patch for the current trunk.

#4 Updated by Go MAEDA almost 2 years ago

  • Duplicated by Defect #8948: Watched issues which are already closed are still displayed in My Page added

#5 Updated by Toshi MARUYAMA almost 2 years ago

  • Description updated (diff)

#6 Updated by Jean-Philippe Lang almost 2 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Thanks.

#7 Updated by JW Fuchs over 1 year ago

Both widgets "Watched issues" and "Issues assigned to me" show only open issues. "Reported issues" shows issues with any status. I am pretty sure this is a defect. See #23472.

#8 Updated by Go MAEDA over 1 year ago

  • Related to Defect #23472: Show open issues only in "Reported Issues" on My page added

#9 Updated by Go MAEDA over 1 year ago

  • Duplicated by Patch #7687: Incorrect search in my page added

Also available in: Atom PDF