Modify ↓
#12891 closed defect (fixed)
Refactor do_initenv method
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.3 |
Component: | admin/console | Version: | |
Severity: | normal | Keywords: | initenv |
Cc: | Branch: | ||
Release Notes: |
|
||
API Changes: |
|
||
Internal Changes: |
Description
IEnvironmentSetupParticipant.environment_created
is used to do some of the work in creating an environment:
- tags/trac-1.3.2/trac/ticket/default_workflow.py@:140#L138
- tags/trac-1.3.2/trac/ticket/notification.py@:45#L43
- tags/trac-1.3.2/trac/web/chrome.py@:688#L686
However, there is an inconsistency in that other module-specific operations are done in console.py:
- Loading default pages
- Synchronizing the default repository
- Adding default values for
[mainnav]
and[metanav]
sections
It seems like that work should be moved to IEnvironmentSetupParticipant
implementations.
Attachments (0)
Change History (5)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
API Changes: | modified (diff) |
---|---|
Release Notes: | modified (diff) |
Resolution: | → fixed |
Status: | assigned → closed |
Committed to trunk in r16244 and r16245. I'll propose additional related changes later on, probably for milestone:1.5.1.
Documentation updated in 1.3/TracEnvironment@2.
comment:4 by , 5 years ago
Release Notes: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
With svn and git in
tracopt
, repositories can only be synchronized on environment creation if--inherit
or--config
is used to enable the components. Example:Therefore:
--inherit
or--config
file.initenv
arguments<repostype>
and<repospath>
have very limited usefulness:Changes in log:rjollos.git:t12891_refactor_initenv.