Skip to content

Ensure correct types of LinkTriples returned by Node.get_stored_link_triples#2292

Merged
giovannipizzi merged 1 commit into
aiidateam:provenance_redesignfrom
sphuber:fix_2291_get_stored_link_triples_type
Dec 5, 2018
Merged

Ensure correct types of LinkTriples returned by Node.get_stored_link_triples#2292
giovannipizzi merged 1 commit into
aiidateam:provenance_redesignfrom
sphuber:fix_2291_get_stored_link_triples_type

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Dec 4, 2018

Fixes #2291

The Node.get_stored_link_triples was using LinkTriple instances where the
type of the link_type element was not of LinkType but of string, as it was
directly using the string value returned by the query builder for the type
column of the DbLink table. By wrapping this value in LinkType the returned
LinkTriples once again have the correct type for all its elements.

@sphuber sphuber requested a review from giovannipizzi December 4, 2018 21:49
@sphuber sphuber force-pushed the fix_2291_get_stored_link_triples_type branch from 5e888ec to f8a3149 Compare December 4, 2018 22:13
…nk_triples`

The `Node.get_stored_link_triples` was using `LinkTriple` instances where the
type of the `link_type` element was not of `LinkType` but of string, as it was
directly using the string value returned by the query builder for the `type`
column of the `DbLink` table. By wrapping this value in `LinkType` the returned
`LinkTriples` once again have the correct type for all its elements.
@sphuber sphuber force-pushed the fix_2291_get_stored_link_triples_type branch from f8a3149 to d7c99b0 Compare December 5, 2018 13:50
@giovannipizzi giovannipizzi merged commit 86b4a13 into aiidateam:provenance_redesign Dec 5, 2018
@sphuber sphuber deleted the fix_2291_get_stored_link_triples_type branch December 5, 2018 14:36
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.

2 participants