microsoft / microsoft/azure-devops-python-api
update_packages requires undefined BatchPromoteData
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 684
- Forks
- 218
- Avg merge
- 8d 10h
- Merged PRs (30d)
- 1
Description
when using update_packages on the npm_client with "promote" as the operation, the NpmPackagesBatchRequest requires a BatchPromoteData object that isn't defined anywhere:
# TODO: Requires a BatchPromoteData model that doesn't even exist!
batch_request = NpmPackagesBatchRequest(data=promote_data, operation="promote", packages=packages)
response = npm_client.update_packages(batch_request, feed.id, project=args.project)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in azure-devops/azure/devops/v6_0/npm/npm_client.py at update_packages and inspect the BatchPromoteData reference in azure-devops/azure/devops/v6_0/npm/models.py. Trace how the promote request is constructed and identify the expected model shape. Done means the promote operation no longer depends on an undefined model and the request can be constructed successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100