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 false positive for verdi database integrity detect-invalid-links #3591

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Nov 29, 2019

Fixes #3539

The query SELECT_CALCULATIONS_WITH_OUTGOING_CALL defined in the module
aiida.manage.database.integrity.sql.links contained an error causing
the command to return false positives. The problem was not detected by
the tests because they operated on an empty database and only checked
for true positives. A basic graph is added to now detect the false ones.

The query `SELECT_CALCULATIONS_WITH_OUTGOING_CALL` defined in the module
`aiida.manage.database.integrity.sql.links` contained an error causing
the command to return false positives. The problem was not detected by
the tests because they operated on an empty database and only checked
for true positives. A basic graph is added to now detect the false ones.
Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

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

thanks @sphuber !
So, if I understand correctly, the old integrity check was flagging any kind of node with a call_work output link?
That might be good to add to the commit message

@sphuber sphuber merged commit 76d680e into aiidateam:develop Nov 30, 2019
@sphuber
Copy link
Contributor Author

sphuber commented Nov 30, 2019

thanks @sphuber !
So, if I understand correctly, the old integrity check was flagging any kind of node with a call_work output link?
That might be good to add to the commit message

Done!

@sphuber sphuber deleted the fix_3539_database_integrity_false_positive branch November 30, 2019 13:50
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.

Database integrity issue
2 participants