Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in the RemoteData._clean method #1847

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

sphuber
Copy link
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

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
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