Coder Social home page Coder Social logo

zt-freak / devopsworkitemrestrequestbutton Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 1.8 MB

Adds a custom control with a button that sends a REST request.

Home Page: https://marketplace.visualstudio.com/items?itemName=Apodemus.RESTRequestButton

License: MIT License

SCSS 4.71% TypeScript 79.96% HTML 1.63% JavaScript 13.70%
azure-devops-extension rest-client

devopsworkitemrestrequestbutton's Introduction

Apodemus

Profile Views
Zt-freak's github stats

Zt-freak

Hewwo I am Apodemus, also known as Zt-freak

devopsworkitemrestrequestbutton's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

devopsworkitemrestrequestbutton's Issues

Error when I click the button (the JS method toLowerCase() is undefined for booleans)

Hello, I have just installed your extension and add a button to a work item (with TFS2018). The problem is, when I click the button, I have an error in the browser console:

Uncaught (in promise) TypeError: o.getConfiguration(...).witInputs.SendUser.toLowerCase is not a function
    at n.<anonymous> (RESTRequestButton.js:2:412581)
    at RESTRequestButton.js:2:410407
    at Object.next (RESTRequestButton.js:2:410512)
    at RESTRequestButton.js:2:409403
    at new Promise (<anonymous>)
    at c (RESTRequestButton.js:2:409148)
    at RESTRequestButton.js:2:412143

I wanted to see where the error was coming from, and noticed that o.getConfiguration().witInputs.SendUser is a boolean, so "false" == o.getConfiguration().witInputs.SendUser.toLowerCase() doesn't work (toLowerCase() doesn't exist on a boolean, I think you'd have to use it directly as a boolean rather than converting it to a string).
I guess there's no real error, and it's just me, maybe I missed something in the installation? I have the impression that it's linked to the conversion of the typescript code into javascript. (This error corresponds to line 96 of the RESTRequestButton.tsx file)

Thanks in advance for your help :)

Compatibility with case sensitive file systems

Hi,
I tried to build the project in linux, which has a case sensitive file system, and I got

Module not found: Error: Can't resolve './RestRequestButton.scss' in '/home/<OMITTED>/source/repos/Matteo/DevOpsWorkItemRESTRequestButton/src/Components/RESTRequestButton'

I find out that the issue is caused by the following line which reference the .scss file with a name that has a different case: Rest instead of REST.

Let us choose the auth type

As written in the title, It is required for me to use not bearer authentication but SAS authentication (which is directly in the URL, not in a header)

I'm getting
image
when trying to use the button because it always sends a bearer token:
image

Would it be possible to add that?

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.