From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: Database design and Target objects
Date: Tue, 5 Jul 2016 11:59:28 +0100 [thread overview]
Message-ID: <577B9310.4010106@intel.com> (raw)
In-Reply-To: <CA+1hgUhME1YOw-h3FDfEQSDs970XgMHZ1s87T4Bd_=c_KB2BdA@mail.gmail.com>
On 04/07/16 11:54, Smith, Elliot wrote:
> The Target object in Toaster's database currently has a
> license_manifest_path, which is only set for targets which produce
> images. (This means that manifest files are treated differently from
> other types of build artifact.)
>
> In Toaster's build dashboard, we show this as the License manifest,
> with a link.
>
> However, Belen's new designs call for a separate section for
> manifests, with links to both the package manifest and the license
> manifest. This means linking a Target to another type of manifest.
>
> I can see broadly two ways to do this:
>
> 1. Add a package_license_manifest field to the Target object. This
> fits with the approach we have for the license manifest and is most
> expedient, but feels wrong in terms of good practice for database design.
>
> 2. Add a separate category of manifest file objects associated with
> Target, into which both license and package manifests are inserted.
> This feels better but is much more work and makes the database more
> complicated than it already is.
>
> This is partly a general philosophical question: should we start
> repairing problems with Toaster's database design now (option 2), or
> find expedient solutions which follow existing (though sometimes poor)
> patterns (option 1)?
>
> My preference is option 2, but the number of outstanding bugs makes me
> consider 1 (not just for this bug, but, again, generally).
>
> Any comments would be welcome.
> Elliot
>
> --
> Elliot Smith
> Software Engineer
> Intel Open Source Technology Centre
>
>
With this release we are definitely trying to tidy things up, but I
think option 2 is only a good option if you foresee more manifests types
coming up in the future. Otherwise for just two types of manifest I
don't think it matters that much to have an extra field in the Target model.
Michael
prev parent reply other threads:[~2016-07-05 10:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 10:54 Database design and Target objects Smith, Elliot
2016-07-05 10:59 ` Michael Wood [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=577B9310.4010106@intel.com \
--to=michael.g.wood@intel.com \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.