-
Notifications
You must be signed in to change notification settings - Fork 8
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
DPL-1059: Group graph pipelines #1559
Conversation
end | ||
|
||
def calculate_pipeline_edges | ||
calculate_edges_with_pipeline_data.map do |edge| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
end | ||
end | ||
|
||
def calculate_group_edges | ||
calculate_edges_with_pipeline_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked over all of it yet, but might not have time today so I thought I'd publish my comments so far. Looks great in general. Thanks.
Thanks for the feedback @KatyTaylor, much appreciated! |
* @returns {cytoscape.Collection} - A collection of nodes and edges that match the query. | ||
*/ | ||
const findResults = (cy, query) => { | ||
const findResults = (cy, filter) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function findResults
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Code Climate has analyzed commit 7432b32 and detected 4 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 36.3% (50% is the threshold). This pull request will bring the total coverage in the repository to 90.1% (-0.1% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only thing remaining - maybe an explanatory comment on calculate_edges
? Thanks.
Closes #1558
Changes proposed in this pull request
pipelines.json
to include pipeline groupsBefore:
After:
Instructions for Reviewers
[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to
main
]- Check story numbers included
- Check for debug code
- Check version