Saving removes a story's labels
Closed this issue · 12 comments
Steps to reproduce:
- Create a story with a label
- Load the story with tracker api
- Save the story without modifying any of the attributes
--> Notice that the label is no longer present
@forest I am also experiencing this on v1.7.1 currently still.
Here's the quick and dirty code I'm using
https://github.com/ctsstc/pivotal-tracker-story-sorter/blob/master/main.rb
I was going to verify it still occurs after removing the sorting section.
I'm able to reproduce, but still diagnosing.
@forest Thanks for looking into it, I've been meaning to check into it myself, but haven't had much time yet.
@g5codyswartz @wefarrell can you see if #112 fixes the issue you are seeing? Thanks.
@forest I added this to my gemfile
ran bundler and it's still removing labels for me
gem 'tracker_api', git: 'https://github.com/dashofcode/tracker_api.git', branch: 'no-delete-labels-on-save'
I've tossed my test code up here: https://github.com/ctsstc/pivotal-tracker-story-sorter
@g5codyswartz I downloaded your project, did a clean bundle install, and run it. I didn't see any labels removed. I even stepped through the code and verified the only attribute being sent in the update call is after_id
.
https://github.com/dashofcode/tracker_api/blob/master/lib/tracker_api/endpoints/story.rb#L31
params.to_json
"{\"after_id\":66728272}"
@forest It looks to be working, thanks!
Much appreciated