Skip to content

Commit

Permalink
Release 2.4.1
Browse files Browse the repository at this point in the history
Release 2.4.1
  • Loading branch information
liprec authored Sep 14, 2021
2 parents ee9fb87 + b63281c commit 023fec8
Show file tree
Hide file tree
Showing 21 changed files with 47 additions and 45 deletions.
16 changes: 8 additions & 8 deletions delete-adf-items/v2/deleteadfitems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ function getObjects(
debug(loc("DeleteAdfItems_GetObjects2", datafactoryType));
reject(loc("DeleteAdfItems_GetObjects2", datafactoryType));
} else {
let objects = JSON.parse(JSON.stringify(result));
let items = objects.parsedBody.value;
let nextLink = objects.parsedBody.nextLink;
let objects = JSON.parse(JSON.stringify(result.parsedBody));
let items = objects.value;
let nextLink = objects.nextLink;
while (nextLink !== undefined) {
const result = await processNextLink(datafactoryOption, nextLink);
objects = JSON.parse(JSON.stringify(result));
items = items.concat(objects.parsedBody.value);
nextLink = objects.parsedBody.nextLink;
objects = JSON.parse(JSON.stringify(result.parsedBody));
items = items.concat(objects.value);
nextLink = objects.nextLink;
}
if (filter) {
items = items.filter((item: ADFJson) => {
Expand Down Expand Up @@ -264,8 +264,8 @@ function deleteItem(
.sendRequest(options)
.then((result: HttpOperationResponse) => {
if (result && (result.status === 400 || result.status === 429)) {
const objects = JSON.parse(JSON.stringify(result));
const cloudError = objects.parsedBody.error;
const objects = JSON.parse(JSON.stringify(result.parsedBody));
const cloudError = objects.error;
if (taskOptions.continue) {
warning(loc("DeleteAdfItems_DeleteItem2", item.name, item.type, cloudError.message));
resolve(false);
Expand Down
4 changes: 2 additions & 2 deletions delete-adf-items/v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion delete-adf-items/v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "delete-adf-items",
"version": "2.4.0",
"version": "2.4.1",
"description": "Deletes ADFv2 items",
"main": "tasks.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion delete-adf-items/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "4",
"Patch": "0"
"Patch": "1"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
4 changes: 2 additions & 2 deletions deploy-adf-json/v2/deployadfjson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ function deployItem(
.sendRequest(options)
.then(async (result: HttpOperationResponse) => {
if (result && result.status !== 200) {
const objects = JSON.parse(JSON.stringify(result));
const cloudError = objects.parsedBody.error;
const objects = JSON.parse(JSON.stringify(result.parsedBody));
const cloudError = objects.error;
if (taskOptions.continue) {
warning(loc("DeployAdfJson_DeployItems2", item.name, item.type, cloudError.message));
resolve(false);
Expand Down
2 changes: 1 addition & 1 deletion deploy-adf-json/v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy-adf-json/v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deploy-adf-json",
"version": "2.4.0",
"version": "2.4.1",
"description": "Deploy ADFv2 items",
"main": "tasks.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion deploy-adf-json/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "4",
"Patch": "0"
"Patch": "1"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vsts-publish-adf",
"version": "2.4.0",
"version": "2.4.1",
"author": "Jan Pieter Posthuma",
"license": "MIT",
"repository": {},
Expand Down
2 changes: 1 addition & 1 deletion query-adf-run/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": "2",
"Minor": "4",
"Patch": "0"
"Patch": "1"
},
"instanceNameFormat": "Query Azure Data Factory runs",
"groups": [
Expand Down
4 changes: 2 additions & 2 deletions toggle-adf-trigger/v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion toggle-adf-trigger/v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toggle-adf-trigger",
"version": "2.4.0",
"version": "2.4.1",
"description": "Toggle ADFv2 trigger",
"main": "tasks.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion toggle-adf-trigger/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "4",
"Patch": "0"
"Patch": "1"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
12 changes: 6 additions & 6 deletions toggle-adf-trigger/v2/toggleadftrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ function getTriggers(
debug(loc("ToggleAdfTrigger_GetTriggers2"));
reject(loc("ToggleAdfTrigger_GetTriggers2"));
} else {
let objects = JSON.parse(JSON.stringify(result));
let items = objects.parsedBody.value;
let nextLink = objects.parsedBody.nextLink;
let objects = JSON.parse(JSON.stringify(result.parsedBody));
let items = objects.value;
let nextLink = objects.nextLink;
while (nextLink !== undefined) {
const result = await processNextLink(datafactoryOption, nextLink);
objects = JSON.parse(JSON.stringify(result));
items = items.concat(objects.parsedBody.value);
nextLink = objects.parsedBody.nextLink;
objects = JSON.parse(JSON.stringify(result.parsedBody));
items = items.concat(objects.value);
nextLink = objects.nextLink;
}
items = items.filter((item: triggerJson) => {
return wildcardFilter(item.name, triggerFilter);
Expand Down
4 changes: 2 additions & 2 deletions trigger-adf-pipeline/v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion trigger-adf-pipeline/v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trigger-adf-piepline",
"version": "2.4.0",
"version": "2.4.1",
"description": "Trigger ADFv2 items",
"main": "tasks.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion trigger-adf-pipeline/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "4",
"Patch": "0"
"Patch": "1"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
18 changes: 10 additions & 8 deletions trigger-adf-pipeline/v2/triggeradfpipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ function getPipelines(
reject(loc("TriggerAdfPipelines_GetPipelines2"));
} else {
let objects = JSON.parse(JSON.stringify(result.parsedBody));
let items = objects.parsedBody.value;
let nextLink = objects.parsedBody.nextLink;
let items = objects.value;
let nextLink = objects.nextLink;
while (nextLink !== undefined) {
const result = await processNextLink(datafactoryOption, nextLink);
objects = JSON.parse(JSON.stringify(result.parsedBody));
items = items.concat(objects.parsedBody.value);
nextLink = objects.parsedBody.nextLink;
items = items.concat(objects.value);
nextLink = objects.nextLink;
}
items = items.filter((item: pipelineTriggerJson) => {
return wildcardFilter(item.name, filter);
Expand Down Expand Up @@ -210,19 +210,21 @@ function triggerPipeline(
azureClient
.sendRequest(options)
.then((result: HttpOperationResponse) => {
const objects = JSON.parse(JSON.stringify(result.parsedBody));
if (result && result.status !== 200 && result.status !== 204) {
const cloudError = objects.error;
if (deployOptions.continue) {
warning(loc("TriggerAdfPipelines_TriggerPipeline", pipelineName, JSON.stringify(result)));
warning(loc("TriggerAdfPipelines_TriggerPipeline", pipelineName, cloudError.message));
resolve(undefined);
} else {
error(loc("TriggerAdfPipelines_TriggerPipeline", pipelineName, JSON.stringify(result)));
reject(loc("TriggerAdfPipelines_TriggerPipeline", pipelineName, JSON.stringify(result)));
error(loc("TriggerAdfPipelines_TriggerPipeline", pipelineName, cloudError.message));
reject(loc("TriggerAdfPipelines_TriggerPipeline", pipelineName, cloudError.message));
}
} else if (result && result.status === 204) {
warning(`'${pipelineName}' not found.`);
resolve(undefined);
} else {
const runId = result.parsedBody.runId;
const runId = objects.runId;
console.log(`Pipeline '${pipelineName}' triggered with run id: '${runId}'.`);
resolve({
pipeline: pipelineName,
Expand Down
2 changes: 1 addition & 1 deletion vss-extension-preview.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "vsts-publish-adf-preview",
"version": "2.4.0",
"version": "2.4.1",
"name": "Azure Data Factory (Preview)",
"publisher": "liprec",
"public": false,
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "vsts-publish-adf",
"version": "2.4.0",
"version": "2.4.1",
"name": "Azure Data Factory",
"publisher": "liprec",
"public": true,
Expand Down

0 comments on commit 023fec8

Please sign in to comment.