Edgewall Software
Modify

Opened 14 years ago

Last modified 3 years ago

#9331 new enhancement

trac-admin should upgrade static files in environment

Reported by: anatoly techtonik <techtonik@…> Owned by:
Priority: normal Milestone: next-dev-1.7.x
Component: admin/console Version: 0.11.7
Severity: normal Keywords: install upgrade deploy
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac 0.11 doesn't upgrade static files in environment. Therefore bugfixes in JS code and CSS styles are not propagated into environment. trac-admin upgrade should try to update them (if it knows where these static files are - and ideally it should know this even if these files are fetched only through web-server directly). If Trac can not update these resources automatically - it should at least instruct users how to update manually, i.e. use trac-admin deploy and compare to detect what files are modified. If Trac has embedded differ, it may try to do this automatically. At the very least it should propose to read wiki TracUpgrade page for more information.

P.S. Plugin installation/upgrade instructions should also include trac-admin deploy step to refresh resources.

Attachments (0)

Change History (8)

comment:1 by Carsten Klein <carsten.klein@…>, 14 years ago

How about adding a redeploy action similar to upgrade that will first run upgrade and then redeploy any static files found in the plugins' and trac's distribution archives?

E.g.

> trac-admin . redeploy
Upgrading environment....done.
Deploying static files...done.

comment:2 by anatoly techtonik <techtonik@…>, 14 years ago

I don't think this deserves a separate command. There is already a plenty of them.

$ PYTHON_EGG_CACHE=.egg-cache trac-admin . deploy delme2
Command failed: Destination already exists. Specify --update to proceed.

$ PYTHON_EGG_CACHE=.egg-cache trac-admin . deploy --update delme2
The following files have changed/added and will be updated:
M delme2/cgi-bin/trac.wsgi
M delme2/htdocs/common/css/browser.css
M delme2/htdocs/common/css/diff.css
M delme2/htdocs/common/js/blame.js
M delme2/htdocs/common/js/expand_dir.js
M delme2/htdocs/common/js/trac.js
A delme2/htdocs/dozer/excanvas.compiled.js
A delme2/htdocs/dozer/jspark.js
A delme2/htdocs/dozer/main.css
Show (d)iff or continue [yn]?

comment:3 by Christian Boos, 14 years ago

Keywords: install upgrade deploy added
Milestone: 0.11.7.1next-major-0.1X
Version: 0.11.7

deploy certainly deserves some well-thought improvements, but definitely not for 0.11.7.1, and even for 0.12 it's a bit late.

in reply to:  3 ; comment:4 by anatoly techtonik <techtonik@…>, 14 years ago

Replying to cboos:

deploy certainly deserves some well-thought improvements, but definitely not for 0.11.7.1, and even for 0.12 it's a bit late.

The problem with all release cycles that people lose motivation to contribute, because they are not able to use the results of their contributions in production environments. That's why all active "development" is only active around release dates.

in reply to:  4 ; comment:5 by Thijs Triemstra <lists@…>, 14 years ago

Milestone: next-major-0.1X0.13

Replying to anatoly techtonik <techtonik@…>:

The problem with all release cycles that people lose motivation to contribute, because they are not able to use the results of their contributions in production environments. That's why all active "development" is only active around release dates.

0.13 perhaps?

in reply to:  5 comment:6 by Remy Blank, 14 years ago

Milestone: 0.13next-major-0.1X

Replying to Thijs Triemstra <lists@…>:

0.13 perhaps?

Only when we get a good patch. Until then, we'd rather leave it in next-major.

Please have a look at our milestone descriptions, especially the "notes to maintainers". This should give you an idea of how we use our milestones. Feel free to suggest improvements to the descriptions if you think they aren't clear enough.

comment:7 by Ryan J Ollos, 3 years ago

The deploy command extracts the scripts in cgi-bin. This is a convenience when installing Trac, but the default scripts rarely change and sometimes the user customizes their cgi script. It would be useful to have an option to extract static resources without modifying the cgi scripts. See gmessage:trac-users:y2RNJvg7mwQ/wAdEVDD7BwAJ.

comment:8 by Ryan J Ollos, 3 years ago

Milestone: next-major-releasesnext-dev-1.7.x
Type: defectenhancement

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.