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

Scottx611x/fix same name analysis results #2099

Merged
merged 29 commits into from Sep 11, 2017

Conversation

scottx611x
Copy link
Member

@scottx611x scottx611x commented Sep 7, 2017

When a DataSetCollection is used as input to a workflow which only accepts a data_input, said workflow will be run (N x the number of elements in the collection) with the potential to create N derived data nodes with the same name if the workflow doesn't have a dynamically named label for it's outputs.

Analysis.attach_outputs_dataset() had logic in place to not attach derived data nodes to their AnalysisNodeConnections if this scenario occured, but this is behavior that we would like now.

Reviewed side by side w/ @mccalluc

@codecov-io
Copy link

codecov-io commented Sep 7, 2017

Codecov Report

Merging #2099 into develop will increase coverage by 1.65%.
The diff coverage is 95.5%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2099      +/-   ##
===========================================
+ Coverage    45.47%   47.13%   +1.65%     
===========================================
  Files          411      411              
  Lines        27799    28583     +784     
  Branches      1313     1313              
===========================================
+ Hits         12642    13472     +830     
+ Misses       15157    15111      -46
Impacted Files Coverage Δ
refinery/galaxy_connector/galaxy_workflow.py 12.79% <100%> (+7.42%) ⬆️
refinery/core/tests.py 99.59% <100%> (-0.04%) ⬇️
refinery/tool_manager/tests.py 99.83% <100%> (+0.01%) ⬆️
refinery/tool_manager/test_data/galaxy_mocks.py 100% <100%> (ø) ⬆️
refinery/tool_manager/models.py 95.68% <100%> (+0.05%) ⬆️
refinery/core/models.py 69.35% <79.06%> (+6.68%) ⬆️
refinery/tool_manager/urls.py 100% <0%> (ø) ⬆️
refinery/core/api.py 52.62% <0%> (+0.08%) ⬆️
... and 5 more

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 ec01688...f944f5c. Read the comment docs.

# attribute to the derived data file node to indicate
# which output of the tool it corresponds to
# connect outputs that are not inputs for any data transformation
# attribute to the derived data file node to
Copy link
Member Author

Choose a reason for hiding this comment

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

fix comment line

@scottx611x
Copy link
Member Author

default dict usage, tuples for mapping

… AnalysisResult mapping as its more clear than a dict
@scottx611x scottx611x merged commit 8380f09 into develop Sep 11, 2017
@scottx611x scottx611x deleted the scottx611x/fix_same_name_analysis_results branch September 11, 2017 16:07
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.

None yet

2 participants