• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aiidateam / aiida-core / 7075
70%

Build:
DEFAULT BRANCH: develop
Ran 25 Sep 2019 09:19AM UTC
Jobs 4
Files 773
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7075

push

travis-ci

web-flow
Fix unspecific flush in `DjangoNode` causing data override (#3344)

The methods of `DjangoNode` related to the mutation of attributes and
extras were indirectly causing a flush of the entire node state instead
of flushing only the property they were mutating. For example, changing
the extras, would also cause the attributes to be flushed. This could
lead to problems, if the attributes had been changed in another instance
and flushed to the database, because the original instance will not
refresh the state of the attributes when flushing its state, these
changes will be overridden.

The `SqlaNode` properly avoided this problem by "flagging" the changed
property before calling the flush. This is done by a SqlAlchemy utility
function which is not present for Django. Instead we pipe this through
to the `DbNode.save` method which supports the `updated_fields` argument
to target only specific model fields to be flushed.

43411 of 59803 relevant lines covered (72.59%)

2.78 hits per line

Jobs
ID Job ID Ran Files Coverage
5 7075.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 25 Sep 2019 09:19AM UTC 0
68.41
Travis Job 7075.5
6 7075.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 25 Sep 2019 09:26AM UTC 0
68.33
Travis Job 7075.6
7 7075.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 25 Sep 2019 09:25AM UTC 0
69.37
Travis Job 7075.7
8 7075.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 25 Sep 2019 09:26AM UTC 0
69.29
Travis Job 7075.8
Source Files on build 7075
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7075
  • 1cdf7379 on github
  • Prev Build on develop (#7068)
  • Next Build on develop (#7094)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc