-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Image uploader: Fix uploading of images to GCS #26493
Conversation
fe03774
to
a986ce7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have to test your PR before I can conclude on anything, but left some suggestions for improvements.
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Sorry, quite busy now, still have it on my agenda to test/review this. |
It's OK. Take your time. |
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
@aknuds1 This has been marked as stale. Can you help to remove the tag? Also does it help if I test this by myself and post the result here? |
The stale bot applies the label automatically. I haven't forgot about the PR, but I'm very busy with a number of different PRs plus own tasks to take care of. |
Upload image to gcs with gcp sdk to simplify the code. And make it more easy to maintain.
- Modify log message according to review grafana#26493 to make it more clear.
690db33
to
bc0b3ba
Compare
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
- The signed url function had been removed accidentally after rebase to master so I add the function back. grafana#26493 (comment) Signed-off-by: gaston.qiu <gaston.qiu@umbocv.com>
882c436
to
a2d80b5
Compare
…o chore/gcsUploadErr Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
- The signed url function had been removed accidentally after rebase to master so I add the function back. grafana#26493 (comment) Signed-off-by: gaston.qiu <gaston.qiu@umbocv.com>
a2d80b5
to
039b3b8
Compare
…o chore/gcsUploadErr Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Sorry for the long wait, but I'm testing the PR now. |
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested and works well both with and without signed URLs.
Please note that I had to rewrite a bit to make it function.
Thanks for contributing! |
* GCS image uploader: Re-implement with Google SDK Signed-off-by: gaston.qiu <gaston.qiu@umbocv.com> Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* GCS image uploader: Re-implement with Google SDK Signed-off-by: gaston.qiu <gaston.qiu@umbocv.com> Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
What this PR does / why we need it:
Upload image to GCS with SDK to simplify the code. And make it easier to maintain.
Which issue(s) this PR fixes:
The GCS upload URL expires because the user can't upload the image file to GCS.
Fixes #26194
Special notes for your reviewer: