Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

update_packages requires undefined BatchPromoteData

Open
#446 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, python
Domain
api

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.

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)
Dominant language
Python
Stars
684
Forks
218
Avg merge
8d 10h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/azure-devops-python-api

All issues in microsoft/azure-devops-python-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.