Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Support updating program data #1062

Merged

Conversation

rathishcholarajan
Copy link
Member

Summary

This PR allows the owner to update runtime program data without having to delete it first.

Details and comments

The program update endpoint expects the program data to be in plain text, even though the upload endpoint expects it to be in binary (I think the latter will be changed soon). As a result, the input data to update_program is of type string. This makes the upload_program quite confusing, since it treated data of type string as the program file path. To make the 2 match, this PR changes the signature of upload_program to only take data in string format, and inspect it to see if it's program data or file path.

Backported from Qiskit/qiskit-ibm-provider#141

jyu00 and others added 2 commits October 18, 2021 00:04
* allow updating program data

* fix lint

* fix lint again

* Apply suggestions from code review

Co-authored-by: Rathish Cholarajan <rathishc24@gmail.com>
@rathishcholarajan rathishcholarajan self-assigned this Oct 18, 2021
@rathishcholarajan rathishcholarajan merged commit 82df041 into Qiskit:master Oct 27, 2021
@rathishcholarajan rathishcholarajan added the Changelog: API Change Include in the Changed section of the changelog label Oct 27, 2021
@rathishcholarajan rathishcholarajan deleted the 45-backport-update-rt-data branch November 22, 2021 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog: API Change Include in the Changed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants