Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12937 closed task (duplicate)

provide migration path for upcoming jinja2 changes

Reported by: mark.clifton@… Owned by: Ryan J Ollos
Priority: normal Component: DateFieldPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

I've been experimenting with the jinja2 branch which is running a 1.2 dev revision, that has all of its templates converted to the new templating engine.

As far as this date field plugin is concerned, I've been able to do some migration and can provide code here in this ticket.

HOWEVER, it feels like this plugin should not be encouraged to be used going forward, in favor of the new native time field type? If so, it would be nice if there were streamlined migration instructions on converting existing deployments from this custom field type into the new native type.

Any thoughts on direction here?

Attachments (0)

Change History (3)

comment:1 in reply to:  description ; Changed 7 years ago by Ryan J Ollos

Resolution: duplicate
Status: newclosed

Replying to mark.clifton@…:

I've been experimenting with the jinja2 branch which is running a 1.2 dev revision, that has all of its templates converted to the new templating engine.

As far as this date field plugin is concerned, I've been able to do some migration and can provide code here in this ticket.

HOWEVER, it feels like this plugin should not be encouraged to be used going forward, in favor of the new native time field type?

Yes, the new time field should be used in 1.2 and later. There's a warning on the DateFieldPlugin page about it's deprecated status. See also trac:wiki:1.1/TracUpgrade#ObsoletePlugins.

If so, it would be nice if there were streamlined migration instructions on converting existing deployments from this custom field type into the new native type.

Any thoughts on direction here?

Having instructions and a migration script would be valuable. That's the topic of #12937. Feel free to attach any suggestions to that ticket.

comment:2 Changed 7 years ago by mark.clifton@…

I am in support of changing the title of this ticket to not refer to jinja2 and instead focus on documenting the migration steps:

  • sql statements for:
    • ticket field template tables?
    • workflows?
    • custom field tables?
  • removal of plugin from trac.ini
  • removal of plugin via package manager (pip uninstall, rm -rf site-packages/datefield)

I would certainly do this but do not feel nearly as qualified as others who have seen the native time field.

I will revisit after the jinja2 branch is rebased onto 1.3.

comment:3 in reply to:  1 Changed 7 years ago by Ryan J Ollos

Replying to rjollos:

Any thoughts on direction here?

Having instructions and a migration script would be valuable. That's the topic of #12937. Feel free to attach any suggestions to that ticket.

I misquoted. #11856 is the ticket where this should be discussed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.