-
Notifications
You must be signed in to change notification settings - Fork 66
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 Pipeline overwriting name #4059
Conversation
fixes #4058 Looks like the logic got flipped at some point.
I disagree. The logic should be: if !merge then overwrite everything. If merge, we skip if on the skip list. Is the problem a layer up where this function is being called by the pipeline with a We need a unit test to verify the behaviour. |
OK, I've moved it up and it does what's expected and doesn't fail any of the existing tests. I'll try and write a suitable testcase |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4059 +/- ##
=======================================
Coverage 78.71% 78.72%
=======================================
Files 284 284
Lines 13008 13008
Branches 2897 2897
=======================================
+ Hits 10239 10240 +1
+ Misses 2769 2768 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@knolleary ready for another look |
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.
Looks good. Added just the test case to my local and it failed (as expected). Then applied the fix and it passes (as expected).
fixes #4058
Description
Looks like the logic got flipped during the changes to #4016
Related Issue(s)
#4058
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
area:migration
label