From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Robert Yang <liezhi.yang@windriver.com>
Cc: yocto@yoctoproject.org
Subject: Re: [layerindex-web][PATCH 5/7] update: ignore recommends when ordering layers
Date: Fri, 06 Jul 2018 17:28:43 +1200 [thread overview]
Message-ID: <2811441.BFUunf07rL@localhost.localdomain> (raw)
In-Reply-To: <10c336ff-c8cd-e961-5215-730dc6aaedd5@windriver.com>
Hi Robert
On Wednesday, 4 July 2018 7:52:05 PM NZST you wrote:
> I'm sorry to say that I met layerindex' loaddata problems yesterday and
> today,
> I still didn't find the root cause. Have you tried dumpdata and loaddata
> recently, please ?
>
> What I did was:
>
> $ python3 manage.py dumpdata --settings settings --exclude=contenttypes
> --exclude=auth.Permission -- exclude=corsheaders >dumped.json
>
> On another environment:
> Setup database to sqlite3 in settings.py.
> $ python3 manage.py loaddata --settings settings dumped.json
>
> The first problem I got was:
> [snip]
> File
> "/buildarea1/lyang1/layerindex-web/.venv/lib/python3.5/site-packages/reversion/revisions.py",
> line 410, in _assert_registered
> model=model,
> reversion.errors.RegistrationError: Problem installing fixture
> '/buildarea1/lyang1/layerindex-web/dumped.json': <class
> 'layerindex.models.Distro'> has not been registered with django-reversion
> [snip]
>
> I think it is because we didn't use @reversion.register() for the class, so I
> added them to layerindex/models.py, then I got other errors:
>
> [snip]
> File
> "/buildarea1/lyang1/layerindex-web/.venv/lib/python3.5/site-packages/reversion/models.py",
> line 272, in _local_field_dict
> field_dict[field.attname] = getattr(obj, field.attname)
> AttributeError: Problem installing fixture
> '/buildarea1/lyang1/layerindex-web/dumped.json': 'Branch' object has no
> attribute 'layerbranch_id'
Hmm, that's odd. Branch shouldn't have layerbranch_id, it's the other way around -
LayerBranch has a branch_id.
> I'm not sure what's wrong atm, need more investigations.
>
> I need loaddata on my localhost to do development testing, so I can't start
> work on update.py until I fix the loaddata problem.
I have used loaddata and dumpdata here (a couple of times) but not recently.
I did not experience these issues before though. However these don't seem like
issues that would have started as a result of this patchset (or indeed recent
changes, other than perhaps an upgrade of django-reversion), have you been
using loaddata/dumpdata prior to this?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2018-07-06 5:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-02 22:58 [layerindex-web][PATCH 0/7] Layer index fixes Paul Eggleton
2018-07-02 22:58 ` [layerindex-web][PATCH 1/7] settings: allow disabling layer publishing emails Paul Eggleton
2018-07-02 22:58 ` [layerindex-web][PATCH 2/7] update_layer: drop debug message for deleting recipe file dependencies Paul Eggleton
2018-07-02 22:58 ` [layerindex-web][PATCH 3/7] update_layer: avoid errors on modified & renamed files Paul Eggleton
2018-07-02 22:58 ` [layerindex-web][PATCH 4/7] recipeparse: don't error out on missing layer recommends Paul Eggleton
2018-07-02 22:58 ` [layerindex-web][PATCH 5/7] update: ignore recommends when ordering layers Paul Eggleton
2018-07-03 2:45 ` Robert Yang
2018-07-03 2:58 ` Paul Eggleton
2018-07-03 3:08 ` Robert Yang
2018-07-04 7:52 ` Robert Yang
2018-07-06 5:28 ` Paul Eggleton [this message]
2018-07-06 6:49 ` Robert Yang
2018-07-09 4:07 ` Robert Yang
2018-07-02 22:58 ` [layerindex-web][PATCH 6/7] utils: fix missing dependency logic in _add_dependency() Paul Eggleton
2018-07-02 22:58 ` [layerindex-web][PATCH 7/7] Add site-wide notice support Paul Eggleton
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=2811441.BFUunf07rL@localhost.localdomain \
--to=paul.eggleton@linux.intel.com \
--cc=liezhi.yang@windriver.com \
--cc=yocto@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.