[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'master' into ah/storemu-append-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joehan committed May 26, 2021
2 parents bc53d62 + a1f2e85 commit 5086201
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
- Fixes deleting custom metadata in Storage emulator. (#3385)
- Fixes errors when calling makePublic() with Storage Emulator(#3394)
- Fixes mishandling of bytes when uploading two files with the same name in the Storage Emulator (#3406)
- Adds support for setting user labels on scheduled functions.
5 changes: 4 additions & 1 deletion src/deploy/functions/discovery/jsexports/parseTriggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ export function addResourcesToBackend(
cloudFunction.trigger.eventFilters.resource = `${cloudFunction.trigger.eventFilters.resource}/${id}`;
}

cloudFunction.labels = { "deployment-scheduled": "true" };
cloudFunction.labels = {
...cloudFunction.labels,
"deployment-scheduled": "true",
};
}

want.cloudFunctions.push(cloudFunction);
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/functions/parseRuntimeAndValidateSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const MESSAGE_FRIENDLY_RUNTIMES: Record<backend.Runtime | DeprecatedRuntime, str
nodejs8: "Node.js 8 (Deprecated)",
nodejs10: "Node.js 10",
nodejs12: "Node.js 12",
nodejs14: "Node.js 14 (Beta)",
nodejs14: "Node.js 14",
};

const DEPRECATED_RUTNIMES = ["nodejs6", "nodejs8"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ describe("addResourcesToBackend", () => {
vpcConnector: "projects/project/locations/region/connectors/connector",
ingressSettings: "ALLOW_ALL",
timeout: "60s",
labels: {
test: "testing",
},
};

const result = backend.empty();
Expand All @@ -146,6 +149,9 @@ describe("addResourcesToBackend", () => {
vpcConnector: "projects/project/locations/region/connectors/connector",
ingressSettings: "ALLOW_ALL",
timeout: "60s",
labels: {
test: "testing",
},
},
],
};
Expand Down Expand Up @@ -260,6 +266,9 @@ describe("addResourcesToBackend", () => {
httpsTrigger: {},
regions: ["us-central1", "europe-west1"],
schedule,
labels: {
test: "testing",
},
};

const result = backend.empty();
Expand All @@ -277,6 +286,7 @@ describe("addResourcesToBackend", () => {
},
labels: {
"deployment-scheduled": "true",
test: "testing",
},
region: "us-central1",
};
Expand All @@ -288,6 +298,7 @@ describe("addResourcesToBackend", () => {
},
labels: {
"deployment-scheduled": "true",
test: "testing",
},
};
const expected: backend.Backend = {
Expand Down

0 comments on commit 5086201

Please sign in to comment.