Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users/omeshp/package task changes #4081

Merged
merged 2 commits into from
Apr 21, 2017
Merged

Conversation

omeshp
Copy link
Contributor

@omeshp omeshp commented Apr 20, 2017

Fix options url used for quering.
Rename Task to DownloadPackage.

@omeshp omeshp requested a review from GitHubSriramB April 20, 2017 10:41
@msftclas
Copy link

@omeshp,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@@ -8,6 +8,7 @@ import * as restm from 'vso-node-api/RestClient';
import * as tl from 'vsts-task-lib/task';
import * as vsom from 'vso-node-api/VsoClient';
import * as vsts from "vso-node-api/WebApi"
import bearm = require('vso-node-api//handlers/bearertoken');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two // is required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not required.

@@ -1,5 +1,5 @@
{
"name": "packagedownloader",
"name": "downloadpackage",
"version": "1.0.0",
"description": "Package Downloader Task",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Download Package Task

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -1,6 +1,6 @@
{
"id": "8d6e8f7e-267d-442d-8c92-1f586864c62f",
"name": "PackageDownloader",
"name": "DownloadPackage",
"friendlyName": "Package Downloader",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Download Package

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none of the other tasks have spaces in name.

@@ -1,5 +1,5 @@
{
"name": "packagedownloader",
"name": "downloadpackage",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add the package name to the instance name so that it appears as:

Download Package {Package name} in logs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will show Package Id, we currently don't have support to show display value of picklist in instanceName


export async function downloadPackage(collectionUrl: string, credentialHandler: bearm.BearerCredentialHandler, feedId: string, packageId: string, version: string, downloadPath: string) {

var feedsUrl = collectionUrl.replace(".visualstudio.com",".feeds.visualstudio.com");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for dev. fabric this wouldn't work. since we don't have this working in dev. fabric as of now, it seems fine. but we need to figure out how to make this work in dev. fabric as part of adding L2 test for this scenario. let's take up this investigation then.

@@ -1,6 +1,6 @@
{
"id": "8d6e8f7e-267d-442d-8c92-1f586864c62f",
"name": "PackageDownloader",
"name": "DownloadPackage",
"friendlyName": "Package Downloader",
"description": "Download a package from a Package Management feed in VSTS or TFS. \r\n Requires the Package Management extension.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump up patch version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@omeshp omeshp force-pushed the users/omeshp/PackageTaskChanges branch from b3e19a5 to dc10614 Compare April 21, 2017 09:33
@omeshp omeshp merged commit d4ffdff into master Apr 21, 2017
@bryanmacfarlane bryanmacfarlane deleted the users/omeshp/PackageTaskChanges branch January 31, 2018 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants