Edgewall Software

Opened 11 years ago

Last modified 10 years ago

#10962 closed enhancement

Show due date of milestone in ticket — at Version 5

Reported by: franz.mayer@… Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.2
Component: ticket system Version: 1.0
Severity: normal Keywords: milestone date
Cc: Jun Omae Branch:
Release Notes:

Milestone resource links are rendered with the due or completed information in the tooltip.

API Changes:
Internal Changes:

Description (last modified by Christian Boos)

In ticket view is a link to the assigned milestone. When you want to know what due date has that milestone, you have to click on the milestone link.

It would be nice to have that information already in the ticket view. There might be two ways to achieve this:

  1. by tooltip
  2. by adding it after milestone name

Change History (5)

comment:1 by Christian Boos, 11 years ago

Description: modified (diff)
Milestone: next-stable-1.0.x

I think option a) looks better, and it should probably be due date only for opened milestones, and completed date should be shown instead for closed milestones.

That should be added to MilestoneModule._render_link (PatchWelcome).

comment:2 by Ryan J Ollos, 10 years ago

Milestone: next-stable-1.0.x1.0.2
Owner: set to Ryan J Ollos
Status: newassigned

comment:3 by Ryan J Ollos, 10 years ago

Should we show No due date when the due date hasn't been set, rather than showing nothing in the tooltip?

Proposed changes can be found in log:rjollos.git:t10962. I added the if hasattr(context, 'req') to support the possibility of a context being passed that is not a web_context, since it wouldn't have a req bound to it. Let me know if this doesn't look right.

The wikisyntax unit tests run with the en_US locale, but the output of format_datetime is 11/24/13 07:41:24 without Babel and Nov 24, 2013 7:41:24 AM with Babel. [b6b2568f/rjollos.git] is implemented so that the test passes with and without Babel, and further adjustments made in [8063c5b0/rjollos.git]. Maybe there is a better way.

comment:4 by Jun Omae, 10 years ago

Cc: Jun Omae added

I think we should show the tooltips in the same format or some other similar format with localization in milestone view.

Is Completed Completed %(duration)s ago (%(date)s)
Is late %(duration)s late (%(date)s)
Due Due in %(duration)s (%(date)s)
No due date No date set

comment:5 by Ryan J Ollos, 10 years ago

Release Notes: modified (diff)

Changes suggested in comment:4 have been added in [e1fae589/rjollos.git]. Everything else look okay?

Note: See TracTickets for help on using tickets.