Feature: allow to pass the image URL directly to the devices#400
Conversation
b-rowan
left a comment
There was a problem hiding this comment.
Seems fine to me, simple enough fix.
|
Can you squash those commits into one, then I will merge. |
|
I don‘t quite understand why this is needed. We already support hosting files on an external server without having to go through gooseBit to download them. |
I would have to look, but any backend shouldn't change the behavior of the remote server, so I would assume this is a regression. |
|
I commented on the issue: #399 (comment). @jkuri are you around to help us out here? |
I'll check later today, but as far as I recall I did fix the CDN issue later after this was introduced. |
|
I am not sure what is wrong with this fix @easybe? I would rather just simplify it without additional props in configuration; parsed_uri = urlparse(software.uri)
if parsed_uri.scheme in ("http", "https"):
href = software.uri
else:
# this still handles files prefixed with s3:// or file:// like before
href = str(request.url_for("download_artifact", dev_id=device.id)) |
Yes, that looks fine to me. Definitely no additional setting for this. |
9783348 to
78d2ec4
Compare
715caa0 to
90dede7
Compare
|
I have switched to the more simple approach you suggested. |
90dede7 to
41d9c71
Compare
|
I added a few tests now |
1 similar comment
|
I added a few tests now |
|
But please fix the CI issues and squash into 1 commit. |
e53ddb7 to
ead9fdc
Compare
|
CI issues are all mypy in the test files, should be pretty easy to fix. Make sure you have the pre-commit hooks installed ( |
04ca49f to
516cbff
Compare
|
Don’t merge master into the branch! Please, rebase instead. |
|
@b4u-mw if you need help with rebasing, this should do the trick; git reset --hard 516cbff380c71f5184621e38dc1a5d3e5bbd4c36
git remote add upstream https://github.com/UpstreamDataInc/goosebit
git fetch upstream
git rebase upstream/master
git push origin feature/deliver-remote-url -f |
a747d7a to
516cbff
Compare
516cbff to
4b48dad
Compare
Fixed. This was not intentionally, I just pressed the "Sync with master" button and expected a rebase. |
Yeah, I hate that it does that by default. One has to explicitly select “with rebase”. |
|
@easybe Would you mind to tag a new release so that we can use this new feature? |
Fix for #399