Re: [Trac-dev] Digest for trac-dev@googlegroups.com - 2 Messages in 1 Topic

1 view
Skip to first unread message

Eduardo Fabricio

unread,
Mar 18, 2011, 11:46:22 AM3/18/11
to trac...@googlegroups.com
Hello guys,

Before open a ticket, i would like to talk a bit about a big problem , that i'm getting here.
Sorry for my pour english ok. !! Oo

We have used the trac around 5 years.  My version is not the lastest, i use Trac 0.12.4.
I have developed some issues and fixes on my enviroment for internal use only.

The Code :

In ticket/api.py there is this code on get_ticket_fields method :

  # Default select and radio fields
        selects = [('type', model.Type),
                   ('status', model.Status),
                   ('priority', model.Priority),
                   ('milestone', model.Milestone),
                   ('component', model.Component),
                   ('version', model.Version),
                   ('severity', model.Severity),
                   ('resolution', model.Resolution)]
               
        for name, cls in selects:
          
            options = [val.name for val in cls.select(self.env, db=db)]
                           
            if not options:
                # Fields without possible values are treated as if they didn't
                # exist
                continue
            field = {'name': name, 'type': 'select', 'label': name.title(),
                     'value': self.config.get('ticket', 'default_' + name),
                     'options': options}
            if name in ('status', 'resolution'):
                field['type'] = 'radio'
                field['optional'] = True
            elif name in ('milestone', 'version'):
                field['optional'] = True
            field['standard'] = True
            fields.append(field)
   ......


The Problem:

We have use trac a lot and today we have exactly 428 milestones completed. There is a escalability problem. Because on some pages, for example: roadmap, and ticket view or new ticket, the system uses common code to provide ticket infos.  If i got it correctly TicketSystem is the central source of these infos ok ?
But today I need wait about 16 seconds to view the ROADMAP page and this is a progressive problem.

The question is :  the list of all millestones only is necessary to CRUD ticke views.  Edit, Insert , etc.

But today, when i request the roadmap view.  The trac selects all tickets for all milestones and for each ticket the TicketSystem selects all milestones.
Could you help me ? Well, if you cannot help me, no problem.  But i could alert you about it. because to enteprise use of trac, this is a problem.  And today i believe the trac is the better system to little and middle size companies.  I have experiment Jira system.  But for me,  is a Cannon to kill an ant. =P .  Trac is a simple and effective SCM system.

Well, thanks very much,
Best Regards,


Eduardo L. Fabricio
Java Developer / SCM manager.

Steffen Hoffmann

unread,
Mar 18, 2011, 3:58:41 PM3/18/11
to trac...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Am 18.03.2011 16:46, wrote Eduardo Fabricio:
> Hello guys,
>
> Before open a ticket, i would like to talk a bit about a big problem ,
> that i'm getting here.

Good way to go, welcome.

> Sorry for my pour english ok. !! Oo

Just go on and especially don't worry about this. There is a good number
of your kind - non-native English speakers/writers.

> We have used the trac around 5 years. My version is not the lastest, i
> use Trac 0.12.4.

(Almost) Impossible. Unless you provide evidence for secret time travel
I would insist that 0.12.2 is the latest version - in our universe. May
we assume it is 0.11.4 you're talking about? :-)

> I have developed some issues and fixes on my enviroment for internal use
> only.
>
> The Code :

> [...]


> The Problem:
>
> We have use trac a lot and today we have exactly 428 milestones
> completed. There is a escalability problem.

I recall having seen core development talking about scalability. Roadmap
has been a part considered for improvements. But as the resources are
quite limited these days almost all efforts go into 0.13dev and
maintenance of 0.12 by building a follow-up to 0.12.2 .

If it's feasible for you to upgrade and get involved in testing current
code it would be much more likely to find a solution for your issue, if
it's not already (partially) solved by the upgrade.

I.e. Trac0.12 got a CacheManager for more uniform handling of often
needed content, so it might really be worth to try an upgrade. But I've
seen production data messed in untested upgrade scenarios after such a
recommendation. Certainly Trac is virtually bug-free ;-) , still I
explicitly urge you to try after a full backup, or even better: try on a
copy of you system in a dedicated test setup.

Others here could prove me wrong regarding fixes for your old version or
at least give a response more precisely targeted to your request and
code. We'll see.

Sincerely,

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2DuW4ACgkQ31DJeiZFuHcy/ACgrMDqwhNulsEN7U2iZ3wqxZX8
aGIAoIz94nE0MuNdXTygCMF7l1HvMEF8
=0AFP
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages