Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-03 Thread Remigiusz Modrzejewski

On Sep 2, 2011, at 10:40 PM, Stephan Beal wrote:

 On Fri, Sep 2, 2011 at 9:48 PM, Matt Welland estifo...@gmail.com wrote:
 
 # Set your system date to the date for the ticket
 sudo date -s 08/11/2011
 
 
 Beware with that - it can confuse your build system.

And summon Hastur. Never do such a thing three times in a row.

Plus, if you really feel that hackish, just do your business in SQL.


Kind regards,
Remigiusz Modrzejewski



___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-03 Thread Matt Welland
Just for grins I set my date back to Jan 1st, created a ticket then
rebooted. I synced the ticket to my central repo. I'll post back here if
this hack breaks anything, but no problems that I could detect. The first
ticket here: http://www.kiatoa.com/fossils/megatest, has a creation date
from before the repo was created.

2011-01-01
07:00 New ticket
[12ff34a800]http://www.kiatoa.com/cgi-bin/fossils/megatest/info/12ff34a800
*Test ticket*. (user:
matthttp://www.kiatoa.com/cgi-bin/fossils/megatest/timeline?u=mattc=2011-01-01+07%3A00%3A51nd)


Total time, 20 seconds to make a backup of the fossil, set the date and add
ticket, 2 minutes to reboot (slow netbook) and sync.

On Sat, Sep 3, 2011 at 1:27 AM, Remigiusz Modrzejewski
l...@maxnet.org.plwrote:


 On Sep 2, 2011, at 10:40 PM, Stephan Beal wrote:

  On Fri, Sep 2, 2011 at 9:48 PM, Matt Welland estifo...@gmail.com
 wrote:
 
  # Set your system date to the date for the ticket
  sudo date -s 08/11/2011
 
 
  Beware with that - it can confuse your build system.

 And summon Hastur. Never do such a thing three times in a row.

 Plus, if you really feel that hackish, just do your business in SQL.


 Kind regards,
 Remigiusz Modrzejewski



 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-02 Thread Clark Christensen
Would it be possible to add this feature, at least for making
tickets older than the date they were entered?  Is there a strong
reason to disallow the editing of time stamps on tickets?

For my $0.02, I think adding such a feature would require a fair development 
effort.  You'd need to have UI for manipulating a timestamp, or significant 
validation code on the backend, or both.

FWIW, Fossil does allow you to add fields to the ticket table, markup to the 
ticket create/edit/view pages, and customize the ticket reports.  So it seems 
like you could add your own field for storing your custom timestamp, and update 
your ticket reports to reference/include the custom field.  You'd probably need 
to do whatever validations you need in client-side javascript.

I think there's info in the Fossil Wiki about adding custom fields.

 -Clark




From: Ross Berteig r...@cheshireeng.com
To: fossil-users@lists.fossil-scm.org
Sent: Thursday, September 1, 2011 5:54 PM
Subject: Re: [fossil-users] Is it possible to edit a ticket's submission time?

At 05:11 PM 9/1/2011, you wrote:

So, no, there does not appear to be any way to set the date on a
ticket to something other than the time/date at which you entered
the ticket.

Would it be possible to add this feature, at least for making
tickets older than the date they were entered?  Is there a strong
reason to disallow the editing of time stamps on tickets?

From a quick skim of the documentation on how tickets work at
all, it would appear that all one would need to make a ticket
appear at an earlier time in the timeline is a ticket artifact
containing the right ID, and with the right date, and possibly
containing a change for at least one other field. If the date
on the artifact is earlier than all others, then it would appear
first in the timeline, and give me the effect I want.

I'm not certain it is possible to move a ticket completely into
the future. My understanding is that the individual artefacts
that make up the ticket are immutable, so it wouldn't be possible
to replace the oldest artefact with one with a newer date, and
additional artefacts changing a ticket with newer dates are what
happens when you edit a ticket now.


Ross Berteig                              r...@cheshireeng.com
Cheshire Engineering Corp.          http://www.CheshireEng.com/

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-02 Thread Ron Wilson
On Fri, Sep 2, 2011 at 1:02 PM, Clark Christensen cdcmi...@yahoo.com wrote:
 FWIW, Fossil does allow you to add fields to the ticket table, markup to the
 ticket create/edit/view pages, and customize the ticket reports.  So it
 seems like you could add your own field for storing your custom timestamp,
 and update your ticket reports to reference/include the custom field.  You'd
 probably need to do whatever validations you need in client-side javascript.
 I think there's info in the Fossil Wiki about adding custom fields.

Yes, I've added custom fields to tickets and made reports that sort on
those fields.

However, the the request is to be able to have the ticket's first
appearance on the Time Line view correspond to the date/time the
requester sent his/her message, rather than the time the project
maintainer entered the ticket into Fossil. Maybe the ticket entry
processing could be enhanced to automatically create an event in the
case that a ticket's submission date/time is earlier than it's
creation date/time?

I think that the Ticket Entry page could be enhanced with Javascript
to submit a new event to Fossil. At least when I created an event and
used the submit button (rather than the preview button), the response
from Fossile was a simple acknowledgement, so the Javascript would not
have to do more than parse the response for any errors messages and
display those errors, if any.

The event summary would be the ticket summary and the even body could
be a link to the actual ticket. Possibly the Fossil Header could use
some combination of TH1 and Javascript to actually include the
contents of the ticket.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-02 Thread Ross Berteig

At 11:10 AM 9/2/2011, Ron Wilson wrote:
On Fri, Sep 2, 2011 at 1:02 PM, Clark Christensen wrote:
 FWIW, Fossil does allow you to add fields to the ticket table,
 markup to the ticket create/edit/view pages, and customize the
 ticket reports.

Yes, I've added custom fields to tickets and made reports that
sort on those fields.

However, the the request is to be able to have the ticket's first
appearance on the Time Line view correspond to the date/time the
requester sent his/her message, rather than the time the project
maintainer entered the ticket into Fossil.

Exactly.

Maybe the ticket entry processing could be enhanced to 
automatically
create an event in the case that a ticket's submission 
date/time is

earlier than it's creation date/time?

Even simpler would be to include the ticket's creation date as a
field on the new ticket entry form, pre-filled to now, instead
of it being a system-generated field that is not shown to the
user. From a user standpoint, this would look just like the date
entry on the New Event page, and could work similarly. I'm not
sure it really needs any validation, but it would make sense to
prevent the creation of a ticket in the future if that were trivial.

This would satisfy my needs for new batches of bug reports, and I
can live with the current state for all those already entered.

The downside of this is that there is no way to edit the ticket
time once the ticket is submitted, which could be needed if a
gross typo were made.

I'm just trying to avoid the strong temptation to deconstruct the
repo, edit the offending ticket's artefact's D record by hand, and
reconstruct


Ross Berteig   r...@cheshireeng.com
Cheshire Engineering Corp.   http://www.CheshireEng.com/
+1 626 303 1602
+1 626 351 1590 FAX

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-02 Thread Matt Welland
How many tickets are we talking about? If it is only a few then perhaps try
the following:

# Set your system date to the date for the ticket
sudo date -s 08/11/2011

# create the ticket
fossil ui

# repeat for remaining tickets

Maybe do it in a virtualbox instance just be sure to put the date back to
where it should be before syncing.

On Fri, Sep 2, 2011 at 11:10 AM, Ron Wilson ronw.m...@gmail.com wrote:

 On Fri, Sep 2, 2011 at 1:02 PM, Clark Christensen cdcmi...@yahoo.com
 wrote:
  FWIW, Fossil does allow you to add fields to the ticket table, markup to
 the
  ticket create/edit/view pages, and customize the ticket reports.  So it
  seems like you could add your own field for storing your custom
 timestamp,
  and update your ticket reports to reference/include the custom field.
 You'd
  probably need to do whatever validations you need in client-side
 javascript.
  I think there's info in the Fossil Wiki about adding custom fields.

 Yes, I've added custom fields to tickets and made reports that sort on
 those fields.

 However, the the request is to be able to have the ticket's first
 appearance on the Time Line view correspond to the date/time the
 requester sent his/her message, rather than the time the project
 maintainer entered the ticket into Fossil. Maybe the ticket entry
 processing could be enhanced to automatically create an event in the
 case that a ticket's submission date/time is earlier than it's
 creation date/time?

 I think that the Ticket Entry page could be enhanced with Javascript
 to submit a new event to Fossil. At least when I created an event and
 used the submit button (rather than the preview button), the response
 from Fossile was a simple acknowledgement, so the Javascript would not
 have to do more than parse the response for any errors messages and
 display those errors, if any.

 The event summary would be the ticket summary and the even body could
 be a link to the actual ticket. Possibly the Fossil Header could use
 some combination of TH1 and Javascript to actually include the
 contents of the ticket.
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-02 Thread Stephan Beal
On Fri, Sep 2, 2011 at 9:48 PM, Matt Welland estifo...@gmail.com wrote:

 # Set your system date to the date for the ticket
 sudo date -s 08/11/2011


Beware with that - it can confuse your build system.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Is it possible to edit a ticket's submission time?

2011-09-01 Thread Ross Berteig
For a project that I don't pay attention to daily, I would like 
to retroactively create tickets corresponding to issues raised 
in email from my customer. Creating the tickets is easy, 
although not a particularly exciting task. However, I would like 
to place the tickets in context in the timeline view, as if they 
had been entered in a more timely fashion. Events directly 
support editing their date and time in the web UI, but I haven't 
spotted the equivalent affordance for editing a ticket's date 
and time. Is it possible, and if so, how do I do it?


Ross Berteig   r...@cheshireeng.com
Cheshire Engineering Corp.   http://www.CheshireEng.com/

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Is it possible to edit a ticket's submission time?

2011-09-01 Thread Richard Hipp
On Thu, Sep 1, 2011 at 7:54 PM, Ross Berteig r...@cheshireeng.com wrote:

 For a project that I don't pay attention to daily, I would like to
 retroactively create tickets corresponding to issues raised in email from my
 customer. Creating the tickets is easy, although not a particularly exciting
 task. However, I would like to place the tickets in context in the timeline
 view, as if they had been entered in a more timely fashion. Events directly
 support editing their date and time in the web UI, but I haven't spotted the
 equivalent affordance for editing a ticket's date and time. Is it possible,
 and if so, how do I do it?


I checked, and it appears that the date/time for a ticket is assigned here:

 http://www.fossil-scm.org/fossil/artifact/af72aa0605b5?ln=435-436

So, no, there does not appear to be any way to set the date on a ticket to
something other than the time/date at which you entered the ticket.




 Ross Berteig   r...@cheshireeng.com
 Cheshire Engineering Corp.   http://www.CheshireEng.com/

 __**_
 fossil-users mailing list
 fossil-users@lists.fossil-scm.**org fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:**8080/cgi-bin/mailman/listinfo/**fossil-usershttp://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users