Git Product home page Git Product logo

simple_ado's People

Contributors

cokile avatar dalemyers avatar dependabot[bot] avatar guojiubo avatar jingshizheng avatar luras-oil avatar microsoft-github-policy-service[bot] avatar msftgits avatar nickromano avatar tgnthump avatar thomasameisel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple_ado's Issues

The ADOHTTPClient class should support URL overrides

While the class is helpful for the default collections case / visualstudio, I've found that it has a number of issues with URLs like dev.azure.com, when interacting with those sites via the api_endpoint method. In these cases, I think that if you allow a URL that's the full /_git/{project_name} override to be passed in, you could simply replace _git with _apis and achieve the necessary result.

Open to alternative ideas?

API versions are hardcoded and very old

It seems that the API versions used in simple_ado are very old, and cannot be configured.

E.g. in git.py on line 89, we see:

request_url = f"{self.http_client.api_endpoint(project_id=project_id)}/git/repositories/?api-version=1.0"

The latest stable API version seems to be 6.0, and the oldest documentation available is version 4.1.

Unsure of how to use the project to complete an API request

I am unsure of how to create a new work item using this. I can create a very simple create request using the 'requests' module to complete this however on doing so I am unaware of how to set the WorkItemType etc. Looking into simple_ado there seems to be a lot of functionality but I am just unsure of how to utilize this. I have my PAT and URL as well as what fields I'd like to populate when creating a new WorkItem but am just unaware of how to do so. In a very sad pseudocode effort this is the kind of thing I am trying to acheive:

Import simple_ado

pat = '***************'
url = 'https://dev.azure.com/lochlannyeal/lochlannyeal'

fields = ["title","status","WorkItemType"]
input = ["Hello","In Progress","Issue"]

simple_ado.createWorkItem(fields, input)
    

ADOGitClient class download_zip method not displaying progress bar

I believe this is due to the server in question responding without a content-length header because of chunked encoding.

I initially found your project in a roundabout way because of a similar issue with azure-devops-python-api where when pulling a tree zip, a Generator would be created, so there was no reasonable way to get a progress update bar going. The interface you've created is a lot simpler and easy to use, which is perfect for my purposes, and has made my development much more streamlined, but it would be nice to find a way to show a progress bar. For large mono-repos, a download can take quite some time.

Perhaps there is a way to recursively get all items from a tree via a given path and then calculate an approximate total size? I played a bit with hacking up download_zip to simply get all tree entries from a given path, ignoring content and grabbing metadata, and it did seem to have sizes returned. Perhaps if we summed these, we could simply pass them into the download_zip call and have that be the fall back if the content-length isn't provided?

Any documentation?

This seems to be a useful set of tools. Does it have any documentation describing how to use each API?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.