-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: fix storyID parameter on roStoryMove #91
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #91 +/- ##
==========================================
- Coverage 77.08% 77.08% -0.01%
==========================================
Files 65 65
Lines 3522 3535 +13
Branches 799 812 +13
==========================================
+ Hits 2715 2725 +10
- Misses 724 727 +3
Partials 83 83 ☔ View full report in Codecov by Sentry. |
Thanks for the PR @JuanPabloLoCoco ! We discussed this a little bit internally and have come up with the conclusions below, please give them a read and let us know your thoughts. roStoryMoveA missing second I've pushed a commit to this PR with this change. roStoryMoveMultipleThis is a wierd one, where the docs are quite ambigous, I think. From the docs:
A single If I where to ready the documentation LITERALY I come to the conclusion that this means that: "Zero stories should be moved to the location specified by the single tag" - which of course makes no sense since it is a no-op. In non strict mode: I think that we should (as you propose) make the assumtion that the sender intended to send a second (blank) Let me know what you think! |
@nytamin I proposed the changes just to have more defensive programming. We should indeed believe that the sender will not be malicious, but who knows? I agree with your comments. |
About the Contributor
Type of Contribution
This is a:
Bug fix
Current Behavior
When you send a roStoryMove with only one storyID the roElementAction message that is created is wrong. That is because it will create the element_source using the first letter of your data.roElementMove.storyID (aka storyID), and will create the element_target using the second letter of the storyID
New Behavior
The message will detect if data.roElementAction.storyID is an Array or a String. If it is an array, it will use the array. If it is a string, will convert it to an array.
Testing Instructions
Other Information
Status