Closed riverar closed 4 years ago
What do you mean by "staging" here? In API v1, the file status won't change in the API until the submission has been committed and enters the certification stage.
@HowardWolosky I'm using staging to refer to my work on DevOps to prepare for StoreBroker use, feeI free to ignore that. If I review the submission in Partner Center, it's missing the packages I uploaded (normal). If I commit the submission manually via Partner Center, and wait for certification stage, then call Get-ApplicationSubmission
, anything previously marked as PendingUpload
vanishes.
You definitely don't want to do that. There should have even been a warning in Partner Center that the submission you were looking at had been started with the API.
Partner Center and API v1 don't mix well. If you start a submission with the API, and then commit it in Partner Center, Partner Center will completely drop all changes that the API made -- you'll end up just submitting a copy of the previous submission.
If your desire is to verify that the StoreBroker/API v1 did what you had wanted it to do before actually publishing, then the recommended approach is to commit with -TargetPublishMode Manual
. That means that after certification has been completed, it won't actually publish until you hit a button in Partner Center (there is no API in v1 to advance a manual submission from Ready to Publish
to Publish
...that has to be done in Partner Center).
The only time you should use Partner Center with an API v1 modified submission is once it has entered certification...that's the first time that Partner Center will actually reflect the API changes, and when the API will reflect the current state of the submission.
API v2 solves so that you can go back and forth between the API and Partner Center without messing things up...unfortunately, API v2 is not publicly available at this time.
@HowardWolosky Ahh, thanks. Will make that change in our release pipeline now.
After staging a submission and uploading a package,
Get-ApplicationSubmission
indicates the new packages still carry afileStatus
ofPendingUpload
.Typically this means the package failed validation in some way (per #181) but I was able to manually upload the package with no problems.
Did something break on the backend?
Last MS-CorrelationId before package upload step:
5d279027-3282-4730-b393-f8efa2dab3ce
Snippet of StoreBroker logs: