Comment 2 for bug 549340

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 549340] [NEW] BuildQueue.destroySelf erroneously assumes that all jobs are Storm objects

On Sun, 2010-03-28 at 09:54 +0000, Julian Edwards wrote:
> On Saturday 27 March 2010 04:42:06 you wrote:
> > Public bug reported:
> >
> > BuildQueue.destroySelf does this:
> >
> > Store.of(specific_job).remove(specific_job)
> >
> > That doesn't work for TranslationsTemplateBuildJobs, which are not
> > themselves Storm objects (their BranchJob is).
> > specific_job.destroySelf() may be better.
>
> Hmm.
>
> We should really be using Storm objects for any new database objects, why is
> TranslationsTemplateBuildJob not so?

There is no TTBJ table -- it is represented by a BranchJob in the DB,
and somehow gets materialised as a TTBJ.