renevanosnabrugge / vsts-promotepackage-task

Promote a package in VSTS to a Release View
MIT License
21 stars 25 forks source link

Package drop down only displays the first 100 or so packages #48

Open matt-lacross opened 4 years ago

matt-lacross commented 4 years ago

We have a couple thousand packages and would love to use this but it not feasible because the package only displays 100 packages in the drop down. Can you fix it so the drop down displays all of our packages from our VSTS feed?

renevanosnabrugge commented 4 years ago

Thanks for your comment.

Most of my users suffice by this functionality. If you want to support this , I happily accept your pull request!

Thanks Rene

Verstuurd vanaf mijn iPhone

Op 2 mrt. 2020 om 13:37 heeft matt-lacross notifications@github.com het volgende geschreven:



We have a couple thousand packages and would love to use this but it not feasible because the package only displays 100 packages in the drop down. Can you fix it so the drop down displays all of our packages from our VSTS feed?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frenevanosnabrugge%2Fvsts-promotepackage-task%2Fissues%2F48%3Femail_source%3Dnotifications%26email_token%3DABOH2WR7IB7C6NJNNS4EXM3RFP4GZA5CNFSM4K72EI52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IRZC6QQ&data=02%7C01%7C%7C5333495cc7af49f22de308d7bed8c566%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637187710536300289&sdata=kXIHh4x4Zld9gZuJ4y8Vyco8wWFSickefeSlvWczvDE%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABOH2WRLJQVBL5OUU7AP5FDRFP4GZANCNFSM4K72EI5Q&data=02%7C01%7C%7C5333495cc7af49f22de308d7bed8c566%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637187710536310284&sdata=5eJqpIKWpuMHzqjOKmWcoYUdV%2BbWhFrgEZvxdJ3MTC4%3D&reserved=0.

jessehouwing commented 4 years ago

The dropdown is editable. Just paste in the correct package name.

armanik11 commented 3 years ago

@jessehouwing , @renevanosnabrugge Is first 100 packages a limitation of the VSTS REST API Call made to retrieve and display packages? Is it specific to task UI? Because, when I call the same API (https://feeds.dev.azure.com//_apis/packaging/Feeds//packages?api-version=6.1-preview.1) via POSTMAN or Browser on a feed with thousands of packages, I see that it returns 1000 packages.

"endpointUrl": "{{endpoint.url}}/{{ #regex ([a-fA-F0-9\-]+/)[a-fA-F0-9\-]+ feed }}_apis/packaging/feeds/{{ #regex (?:[a-fA-F0-9\-]+/)?([a-fA-F0-9\-]+) feed }}/packages?includeUrls=false",

armanik11 commented 3 years ago

@jessehouwing , @renevanosnabrugge : Any pointers or ideas on my question above?

armanik11 commented 3 years ago

@matt-lacross : Have you found any workarounds for this yet?

jessehouwing commented 3 years ago

Nope. The pointer is not to rely on the drop down and just type the desired value.

There may be a query option to do a type to search option, I haven't tried with that yet.

armanik11 commented 3 years ago

Thanks @jessehouwing. I assume it won't fail to load the UI but rather just populate it with 100 packages correct?

jessehouwing commented 3 years ago

Yups. The API has a few interesting features I haven't been able to completely comprehend. Sometimes the API happily returns 100s of items and then the same call sometimes uses paging.

Unfortunately the task.json format doesn't understand the continuation token to continue fetching in the background or offer a auto-load feature as you scroll down.