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

aiidateam / aiida-core / 7075 / 5
70%
develop: 70%

Build:
DEFAULT BRANCH: develop
Ran 25 Sep 2019 09:19AM UTC
Files 405
Run time 59s
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

25 Sep 2019 09:05AM UTC coverage: 68.414% (+0.006%) from 68.408%
TEST_AIIDA_BACKEND=django TEST_TYPE="tests"

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.

22390 of 32727 relevant lines covered (68.41%)

0.68 hits per line

Source Files on job 7075.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 328
  • Travis Job 7075.5
  • 1cdf7379 on github
  • Prev Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on develop (#7068.5)
  • Next Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on develop (#7094.5)
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