Skip to content

Fix bug in the RemoteData._clean method#1847

Merged
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_1844_data_remote_clean
Aug 7, 2018
Merged

Fix bug in the RemoteData._clean method#1847
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_1844_data_remote_clean

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Aug 6, 2018

Fixes #1844

The clean_remote free function was not imported. Fix the import,
and add a test to trigger this code path. As a result, a bug was
found in the AuthInfo and User backend implementations, where the
wrong type for backend argument were being passed to the constructor
by the Collection.

The `clean_remote` free function was not imported. Fix the import,
and add a test to trigger this code path. As a result, a bug was
found in the AuthInfo and User backend implementations, where the
wrong type for `backend` argument were being passed to the constructor
by the Collection.
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1847 into develop will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1847      +/-   ##
===========================================
+ Coverage     66.7%   66.82%   +0.12%     
===========================================
  Files          317      316       -1     
  Lines        32406    32309      -97     
===========================================
- Hits         21616    21592      -24     
+ Misses       10790    10717      -73
Impacted Files Coverage Δ
aiida/orm/implementation/sqlalchemy/authinfo.py 90% <100%> (ø) ⬆️
aiida/orm/implementation/sqlalchemy/user.py 90.41% <100%> (ø) ⬆️
aiida/orm/implementation/django/user.py 88.6% <100%> (ø) ⬆️
aiida/orm/implementation/django/authinfo.py 82.35% <100%> (ø) ⬆️
aiida/backends/djsite/db/models.py 76.23% <0%> (+0.88%) ⬆️
aiida/backends/djsite/globalsettings.py 86.84% <0%> (+5.26%) ⬆️
aiida/orm/utils/remote.py 84.78% <0%> (+15.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fb9295...1e55d10. Read the comment docs.

Copy link
Copy Markdown
Contributor

@muhrin muhrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delicious

@sphuber sphuber merged commit 6c250ae into aiidateam:develop Aug 7, 2018
@sphuber sphuber deleted the fix_1844_data_remote_clean branch August 7, 2018 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants