gioboa / jira-plugin

Jira plugin for VsCode
https://marketplace.visualstudio.com/items?itemName=gioboa.jira-plugin
MIT License
266 stars 41 forks source link

feat: jira query timeout #114

Closed gchr closed 5 years ago

gchr commented 5 years ago

Is your feature request related to a problem? Please describe. Our JIRA server is slow. Most of the queries end up with a ESOCKETTIMEDOUT in "JIRA-PLUGIN" output

Describe the solution you'd like A setting defining the response timeout when quering Jira server.

Describe alternatives you've considered An increase to the default timeout.

gioboa commented 5 years ago

Hi @gchr, Thanks for your feedback. I will check if there is the possibility to create a param for query timeout :+1:

MrRefactoring commented 5 years ago

I think this behavior should be implemented in the jira-connector. I'm right?

gioboa commented 5 years ago

@MrRefactoring yes, I did not check if jira-connector accept timeout param. If the lib implement this feature, the code can be much cleaner 👍

MrRefactoring commented 5 years ago

Timeout added in version 2.15.2 (jira-connector)

MrRefactoring commented 5 years ago

Example:

new JiraClient({
  host: 'xxx.atlasian.com',
  timeout: 10000 // 10 seconds
});
gioboa commented 5 years ago

Great news. 🥇 I will update the lib and I will add the param in the plugin settings

gchr commented 5 years ago

Great job guys! @gioboa @MrRefactoring Thanks!