Closed garysassano closed 5 months ago
Console preview environment is available at https://wing-console-pr-4633.fly.dev :rocket:
@subh-cs Didn't test it but it should work since the code was taken straight from the docs examples.
@subh-cs Didn't test it but it should work since the code was taken straight from the docs examples.
please test :)
I've just deployed this to GCP and it works as expected.
well, it seems like there is a problem with the content type...
for this code
bring cloud;
let b = new cloud.Bucket();
let c = new cloud.Function(inflight () => {
b.put("file1.main.w", "Foo");
b.put("file2.txt", "Bar");
b.put("file3.txt", "Baz", { contentType: "application/json" });
b.putJson("file4.txt", "Qux");
let file1Metadata = b.metadata("file1.main.w");
b.put("metadata.json", "{s: ${file1Metadata.size}, c: ${file1Metadata.contentType}, lastModified: ${file1Metadata.lastModified.toIso()}}");
});
it means that it wouldn't pass the SDK metadata test... I think the best will be not to merge this PR until we get the test command, and we can be sure everything passes :) I'll review it again after having the test command working
@tsuf239 The Bucket.metadata()
method works as intended. The problem is with Bucket.put()
and Bucket.putJson()
not setting the right Content-Type when uploading. I will fix those later.
I promise to review it right after adding the GCP test option
Hi,
This PR has not seen activity in 20 days. Therefore, we are marking the PR as stale for now. It will be closed after 7 days. If you need help with the PR, do not hesitate to reach out in the winglang community slack at winglang.slack.com. Feel free to re-open this PR when it is still relevant and ready to be worked on again. Thanks!
Keep.
Hi,
This PR has not seen activity in 20 days. Therefore, we are marking the PR as stale for now. It will be closed after 7 days. If you need help with the PR, do not hesitate to reach out in the winglang community slack at winglang.slack.com. Feel free to re-open this PR when it is still relevant and ready to be worked on again. Thanks!
Thanks for contributing, @garysassano! This PR will now be added to the merge queue, or immediately merged if garysassano/gcs-metadata
is up-to-date with main
and the queue is empty.
Congrats! :rocket: This was released in Wing 0.52.4.
Closes #4332
Checklist
pr/e2e-full
label if this feature requires end-to-end testingBy submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.