TUCRAIL / AdoPipelineOverview

An azure DevOps extension to list Azure Pipeline builds and their status
https://marketplace.visualstudio.com/items?itemName=TucRail.pipeline-overview
GNU General Public License v3.0
0 stars 3 forks source link

Version 2.0.0.2 breaks DropDowns (Azure DevOps Server) #54

Closed christianbumann closed 1 month ago

christianbumann commented 1 month ago

With the newest version of the widget 2.0.0.2 it is required to reconfigure the widget. It is not possible anymore to select any pipeline, branch and tags. Even with a new widget it's not possible anymore.

screen1 screen2

christianbumann commented 1 month ago

Tested with Chrome, Firefox and Edge

GABRIELNGBTUC commented 1 month ago

Hello. Just a few questions as I have successfully tested migration on Azure DevOps service using both widgets configured 1.1.x and 1.2.x:

GABRIELNGBTUC commented 1 month ago

Ok the issue was much more straightforward than I thought.

Using a DevOps Server 2022.0.1 I was able to reproduce it with the error "VssVersionOutOfRangeException". Basically, the azure-devops-extension-api package only supports api version 7.2 preview since their "2.218.0" while Server 2022 only supports apis up to 7.0.

I'll open an issue on their Github repository, see if an upgrade to 2022.2 works as a workaround and evaluate the work to migrate all calls using api clients from their library to creating my own.

christianbumann commented 1 month ago

Ok the issue was much more straightforward than I thought.

Using a DevOps Server 2022.0.1 I was able to reproduce it with the error "VssVersionOutOfRangeException". Basically, the azure-devops-extension-api package only supports api version 7.2 preview since their "2.218.0" while Server 2022 only supports apis up to 7.2.

I'll open an issue on their Github repository, see if an upgrade to 2022.2 works as a workaround and evaluate the work to migrate all calls using api clients from their library to creating my own.

O perfect and thank you for the quick answer. 1.x was working for us before and we used this widget without any issue. We are using Version Azure DevOps Server 2022.1.

GABRIELNGBTUC commented 1 month ago

I have confirmed that using Azure DevOps Server 2022.2 does fix the issue. Though for now I'll add a disclaimer in the description of the extension on the marketplace and start working on implementing custom api clients.

GABRIELNGBTUC commented 1 month ago

It should not be fixed.

The workaround was to fork the azure-devops-extension-api repository and replace all api-version queries to use 5.1 (to keep feature parity with the version 1.x of the widget) instead of the latest preview.

I rebuild the fork, published it and updated the extension to use that forked package.

I also confirmed on both Azure DevOps server and services that the api version used is indeed the 5.1.

christianbumann commented 1 month ago

@GABRIELNGBTUC wow - thank you for the really really fast workaround 🤘

christianbumann commented 1 month ago

Just tested the latest version, it works again. Many thanks again.