googleapis/google-api-ruby-client

Updating a release status to completed is setting the status to halted

yabenatti opened this issue · 0 comments

Environment details

  • OS: it's a rails application
  • Ruby version: "3.1.2"
  • Gem name and version: "google-apis-androidpublisher_v3", "~> 0.31.0"

Steps to reproduce

  1. Release opened with 10% staged rollout in progress
  2. Send a request via google api to update the release status to "completed"
  3. The API returns a correct release, however the status is updated to "halted"

Code example

service = publisher.service 
edit = service.insert_edit(package_name)
track = service.get_edit_track(package_name, edit.id, "production")
release = track.releases&.detect { |r| r.name == "1.0.0" }
release.update!(status: "completed")
service.update_edit_track(package_name, edit.id, "production", track)
service.commit_edit(package_name, edit.id)