Skip to content

Instantly share code, notes, and snippets.

@jasonnoble
Created December 8, 2017 20:06
Show Gist options
  • Save jasonnoble/80e618cf39874d26bdae884b4e79b33f to your computer and use it in GitHub Desktop.
Save jasonnoble/80e618cf39874d26bdae884b4e79b33f to your computer and use it in GitHub Desktop.
Clearing a tracker story estimate
(byebug) story = project.create_story(name: 'Some story name')
I, [2017-12-08T12:59:58.175531 #76277] INFO -- : post => https://www.pivotaltracker.com/services/v5/projects/__FILTERED_PROJECT_ID__/stories
D, [2017-12-08T12:59:58.175601 #76277] DEBUG -- request: User-Agent: "Ruby/2.4.2 (x86_64-darwin15; ruby) TrackerApi/1.8.0 Faraday/0.13.1"
X-TrackerToken: "__FILTERED_TRACKER_TOKEN_ID__"
Content-Type: "application/json"
D, [2017-12-08T12:59:58.175625 #76277] DEBUG -- request.body: {"name":"Some story name"}
I, [2017-12-08T12:59:58.729655 #76277] INFO -- : 200 <= https://www.pivotaltracker.com/services/v5/projects/__FILTERED_PROJECT_ID__/stories
D, [2017-12-08T12:59:58.729896 #76277] DEBUG -- response: Access-Control-Allow-Credentials: "false"
Access-Control-Allow-Headers: "X-TrackerToken,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Tracker-Warn-Unless-Project-Version-Is"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Origin: "*"
Cache-Control: "max-age=0, private, must-revalidate"
Content-Type: "application/json; charset=utf-8"
Date: "Fri, 08 Dec 2017 19:59:58 GMT"
Etag: "\"d2480433ae74879602c3cefbf6aa1eec\""
Server: "nginx + Phusion Passenger"
Status: "200 OK"
Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options: "nosniff"
X-Powered-By: "Phusion Passenger Enterprise"
X-Rack-Cache: "invalidate, pass"
X-Request-Id: "aef3c9c56421abf589038d98ed10d047"
X-Runtime: "0.409613"
X-Tracker-Client-Pinger-Interval: "20"
X-Tracker-Project-Version: "3993"
X-Ua-Compatible: "IE=Edge,chrome=1"
X-Vcap-Request-Id: "b3a6b330-41b7-4e01-5107-148cad59a0bd"
X-Xss-Protection: "1; mode=block"
Content-Length: "314"
Via: "1.1 google"
Alt-Svc: "clear"
D, [2017-12-08T12:59:58.730020 #76277] DEBUG -- response.body: {"kind":"story","id":__FILTERED_NEW_STORY_ID__,"project_id":__FILTERED_PROJECT_ID__,"name":"Some story name","story_type":"feature","current_state":"unscheduled","requested_by_id":588913,"owner_ids":[],"labels":[],"created_at":"2017-12-08T19:59:58Z","updated_at":"2017-12-08T19:59:58Z","url":"https://www.pivotaltracker.com/story/show/__FILTERED_NEW_STORY_ID__"}
#<TrackerApi::Resources::Story id=__FILTERED_NEW_STORY_ID__>
(byebug) story.estimate
nil
(byebug) story.estimate = 3.0
3.0
(byebug) story.save
I, [2017-12-08T13:00:10.991984 #76277] INFO -- : put => https://www.pivotaltracker.com/services/v5/projects/__FILTERED_PROJECT_ID__/stories/__FILTERED_NEW_STORY_ID__
D, [2017-12-08T13:00:10.992053 #76277] DEBUG -- request: User-Agent: "Ruby/2.4.2 (x86_64-darwin15; ruby) TrackerApi/1.8.0 Faraday/0.13.1"
X-TrackerToken: "__FILTERED_TRACKER_TOKEN_ID__"
Content-Type: "application/json"
D, [2017-12-08T13:00:10.992074 #76277] DEBUG -- request.body: {"estimate":3.0}
I, [2017-12-08T13:00:11.366496 #76277] INFO -- : 200 <= https://www.pivotaltracker.com/services/v5/projects/__FILTERED_PROJECT_ID__/stories/__FILTERED_NEW_STORY_ID__
D, [2017-12-08T13:00:11.366612 #76277] DEBUG -- response: Access-Control-Allow-Credentials: "false"
Access-Control-Allow-Headers: "X-TrackerToken,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Tracker-Warn-Unless-Project-Version-Is"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Origin: "*"
Cache-Control: "max-age=0, private, must-revalidate"
Content-Type: "application/json; charset=utf-8"
Date: "Fri, 08 Dec 2017 20:00:11 GMT"
Etag: "\"b45022c3b6bbe5a38b5dd3ef029d56d6\""
Server: "nginx + Phusion Passenger"
Status: "200 OK"
Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options: "nosniff"
X-Powered-By: "Phusion Passenger Enterprise"
X-Rack-Cache: "invalidate, pass"
X-Request-Id: "60a835d470a7cd291ce9b6e51de6820c"
X-Runtime: "0.231689"
X-Tracker-Client-Pinger-Interval: "20"
X-Tracker-Project-Version: "3994"
X-Ua-Compatible: "IE=Edge,chrome=1"
X-Vcap-Request-Id: "fbdc5102-8581-419b-52a6-4840e6ec459b"
X-Xss-Protection: "1; mode=block"
Content-Length: "327"
Via: "1.1 google"
Alt-Svc: "clear"
D, [2017-12-08T13:00:11.366794 #76277] DEBUG -- response.body: {"kind":"story","id":__FILTERED_NEW_STORY_ID__,"project_id":__FILTERED_PROJECT_ID__,"name":"Some story name","story_type":"feature","current_state":"unscheduled","estimate":3,"requested_by_id":588913,"owner_ids":[],"labels":[],"created_at":"2017-12-08T19:59:58Z","updated_at":"2017-12-08T20:00:11Z","url":"https://www.pivotaltracker.com/story/show/__FILTERED_NEW_STORY_ID__"}
#<TrackerApi::Resources::Story id=__FILTERED_NEW_STORY_ID__>
(byebug) story.estimate = nil
nil
(byebug) story.save
I, [2017-12-08T13:00:20.848637 #76277] INFO -- : put => https://www.pivotaltracker.com/services/v5/projects/__FILTERED_PROJECT_ID__/stories/__FILTERED_NEW_STORY_ID__
D, [2017-12-08T13:00:20.848726 #76277] DEBUG -- request: User-Agent: "Ruby/2.4.2 (x86_64-darwin15; ruby) TrackerApi/1.8.0 Faraday/0.13.1"
X-TrackerToken: "__FILTERED_TRACKER_TOKEN_ID__"
Content-Type: "application/json"
D, [2017-12-08T13:00:20.848757 #76277] DEBUG -- request.body: {}
I, [2017-12-08T13:00:21.460535 #76277] INFO -- : 200 <= https://www.pivotaltracker.com/services/v5/projects/__FILTERED_PROJECT_ID__/stories/__FILTERED_NEW_STORY_ID__
D, [2017-12-08T13:00:21.460630 #76277] DEBUG -- response: Access-Control-Allow-Credentials: "false"
Access-Control-Allow-Headers: "X-TrackerToken,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Tracker-Warn-Unless-Project-Version-Is"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Origin: "*"
Cache-Control: "max-age=0, private, must-revalidate"
Content-Type: "application/json; charset=utf-8"
Date: "Fri, 08 Dec 2017 20:00:21 GMT"
Etag: "\"b45022c3b6bbe5a38b5dd3ef029d56d6\""
Server: "nginx + Phusion Passenger"
Status: "200 OK"
Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options: "nosniff"
X-Powered-By: "Phusion Passenger Enterprise"
X-Rack-Cache: "invalidate, pass"
X-Request-Id: "e33f9c16f648ab646898fc74ec1ca81b"
X-Runtime: "0.050957"
X-Tracker-Client-Pinger-Interval: "20"
X-Tracker-Project-Version: "3994"
X-Ua-Compatible: "IE=Edge,chrome=1"
X-Vcap-Request-Id: "585b7b40-084b-4119-5143-a24a4e3be886"
X-Xss-Protection: "1; mode=block"
Content-Length: "327"
Via: "1.1 google"
Alt-Svc: "clear"
D, [2017-12-08T13:00:21.460717 #76277] DEBUG -- response.body: {"kind":"story","id":__FILTERED_NEW_STORY_ID__,"project_id":__FILTERED_PROJECT_ID__,"name":"Some story name","story_type":"feature","current_state":"unscheduled","estimate":3,"requested_by_id":588913,"owner_ids":[],"labels":[],"created_at":"2017-12-08T19:59:58Z","updated_at":"2017-12-08T20:00:11Z","url":"https://www.pivotaltracker.com/story/show/__FILTERED_NEW_STORY_ID__"}
#<TrackerApi::Resources::Story id=__FILTERED_NEW_STORY_ID__>
(byebug)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment