Updating a release status to completed is setting the status to halted
yabenatti opened this issue · 0 comments
yabenatti commented
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
- Release opened with 10% staged rollout in progress
- Send a request via google api to update the release status to "completed"
- 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)