Edgewall Software

Changes between Initial Version and Version 3 of Ticket #12965


Ignore:
Timestamp:
Aug 15, 2019, 4:29:06 AM (2 years ago)
Author:
Ryan J Ollos
Comment:

I've experimented a bit, and now have the following proposed changes:

  • --no-default-data will yield an empty environment: no reports, milestones, components, permission groups, etc. This gives the user two scripting options: Start with no data and add (e.g. trac-admin milestone add ..), or start with sample data and delete what's unwanted.
  • Add method DatabaseManager.insert_default_data, which is called from Environment.create.
  • The database version entries in the system tables are always inserted when the database is initialized, set by DatabaseManager.init_db (this is a minor API change).

log:rjollos.git:t12965_initenv_no_default_data.2

Thoughts?

If it looks okay, I'll tidy up the docstrings and add test coverage.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12965

    • Property Owner set to Ryan J Ollos
    • Property Status newassigned
    • Property Milestone1.5.1
  • Ticket #12965 – Release Notes

    initial v3  
     1Added option `--no-default-data` to `trac-admin initenv`, for creating an empty environment without any reports, permission groups or sample data (components, milestones, enums).