Skip to content

Add exception for calculation.job.JobCalculation process type inference#2428

Merged
sphuber merged 1 commit into
aiidateam:provenance_redesignfrom
sphuber:fix_2406_provenance_redesign_migration
Feb 8, 2019
Merged

Add exception for calculation.job.JobCalculation process type inference#2428
sphuber merged 1 commit into
aiidateam:provenance_redesignfrom
sphuber:fix_2406_provenance_redesign_migration

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Jan 29, 2019

Fixes #2406

In the migration following the provenance redesign, the process type had
to be inferred from the existing type string for JobCalculation nodes.
The function infer_calculation_entry_point did not account for literal
calculation.job.JobCalculation. type strings being present and would
return .JobCalculation as the fallback process type. However, it makes
more sense to just have an empty process type string in this case, as
would be the case for a base CalcJobNode instance.

@sphuber sphuber requested a review from giovannipizzi January 29, 2019 13:23
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 69.628% when pulling 074403c5caa188eee1d458ba9308dfd15eb25d97 on sphuber:fix_2406_provenance_redesign_migration into ff7af8c on aiidateam:provenance_redesign.

2 similar comments
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 69.628% when pulling 074403c5caa188eee1d458ba9308dfd15eb25d97 on sphuber:fix_2406_provenance_redesign_migration into ff7af8c on aiidateam:provenance_redesign.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 69.628% when pulling 074403c5caa188eee1d458ba9308dfd15eb25d97 on sphuber:fix_2406_provenance_redesign_migration into ff7af8c on aiidateam:provenance_redesign.

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 29, 2019

Coverage Status

Coverage decreased (-0.007%) to 69.716% when pulling 01c6a8c on sphuber:fix_2406_provenance_redesign_migration into ba4b3e7 on aiidateam:provenance_redesign.

…ence

In the migration following the provenance redesign, the process type had
to be inferred from the existing type string for `JobCalculation` nodes.
The function `infer_calculation_entry_point` did not account for literal
`calculation.job.JobCalculation.` type strings being present and would
return `.JobCalculation` as the fallback process type. However, it makes
more sense to just have an empty process type string in this case, as
would be the case for a base `CalcJobNode` instance.
@sphuber sphuber force-pushed the fix_2406_provenance_redesign_migration branch from 074403c to 01c6a8c Compare February 8, 2019 08:06
@sphuber sphuber merged commit 8f5d0b6 into aiidateam:provenance_redesign Feb 8, 2019
@sphuber sphuber deleted the fix_2406_provenance_redesign_migration branch February 8, 2019 15:45
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