Skip to content

Feature: allow to pass the image URL directly to the devices - #400

Merged
b-rowan merged 1 commit into
UpstreamDataInc:masterfrom
b4u-mw:feature/deliver-remote-url
Jan 12, 2026
Merged

Feature: allow to pass the image URL directly to the devices#400
b-rowan merged 1 commit into
UpstreamDataInc:masterfrom
b4u-mw:feature/deliver-remote-url

Conversation

@b4u-mw

@b4u-mw b4u-mw commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Fix for #399

b-rowan
b-rowan previously approved these changes Dec 3, 2025

@b-rowan b-rowan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, simple enough fix.

@b-rowan

b-rowan commented Dec 3, 2025

Copy link
Copy Markdown
Member

Can you squash those commits into one, then I will merge.

@easybe

easybe commented Dec 3, 2025

Copy link
Copy Markdown
Collaborator

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.
If that is no longer the case, the CDN use case was broken, which is bad. We should not need to introduce a new configuration option.

@easybe
easybe requested a review from jkuri December 3, 2025 20:03

@easybe easybe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, this was broken when S3 support was introduced (b16bb2c). If S3 needs special behaviour, then it should be activated when S3 is chosen as a backend. Maybe @jkuri can help us here.

@b-rowan

b-rowan commented Dec 3, 2025

Copy link
Copy Markdown
Member

I see, this was broken when S3 support was introduced (b16bb2c). If S3 needs special behaviour, then it should be activated when S3 is chosen as a backend. Maybe @jkuri can help us here.

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.

@easybe

easybe commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

I commented on the issue: #399 (comment). @jkuri are you around to help us out here?

@jkuri

jkuri commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

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.

@easybe

easybe commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

@jkuri I answered here. Let's move the conversation to the issue.

@jkuri

jkuri commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

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))

@easybe

easybe commented Dec 22, 2025

Copy link
Copy Markdown
Collaborator

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.

@b4u-mw
b4u-mw force-pushed the feature/deliver-remote-url branch from 9783348 to 78d2ec4 Compare January 9, 2026 11:03
@b4u-mw
b4u-mw force-pushed the feature/deliver-remote-url branch 2 times, most recently from 715caa0 to 90dede7 Compare January 9, 2026 11:08
@b4u-mw

b4u-mw commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

I have switched to the more simple approach you suggested.

jkuri
jkuri previously approved these changes Jan 9, 2026

@jkuri jkuri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@b4u-mw

b4u-mw commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

I added a few tests now

1 similar comment
@b4u-mw

b4u-mw commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

I added a few tests now

easybe
easybe previously approved these changes Jan 9, 2026

@easybe easybe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@easybe

easybe commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

But please fix the CI issues and squash into 1 commit.

@b4u-mw
b4u-mw force-pushed the feature/deliver-remote-url branch from e53ddb7 to ead9fdc Compare January 9, 2026 14:35
@b-rowan

b-rowan commented Jan 9, 2026

Copy link
Copy Markdown
Member

CI issues are all mypy in the test files, should be pretty easy to fix. Make sure you have the pre-commit hooks installed (pre-commit install), and then you can check them with pre-commit run --all-files.

@b4u-mw
b4u-mw force-pushed the feature/deliver-remote-url branch 2 times, most recently from 04ca49f to 516cbff Compare January 9, 2026 17:01
jkuri
jkuri previously approved these changes Jan 9, 2026
@easybe

easybe commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

Don’t merge master into the branch! Please, rebase instead.

b-rowan
b-rowan previously approved these changes Jan 9, 2026
@jkuri

jkuri commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

@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

@b4u-mw
b4u-mw dismissed stale reviews from b-rowan and jkuri via 516cbff January 12, 2026 06:16
@b4u-mw
b4u-mw force-pushed the feature/deliver-remote-url branch from a747d7a to 516cbff Compare January 12, 2026 06:16
@b4u-mw
b4u-mw force-pushed the feature/deliver-remote-url branch from 516cbff to 4b48dad Compare January 12, 2026 06:16
@b4u-mw

b4u-mw commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

Don’t merge master into the branch! Please, rebase instead.

Fixed. This was not intentionally, I just pressed the "Sync with master" button and expected a rebase.

@easybe

easybe commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

Don’t merge master into the branch! Please, rebase instead.

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”.

@b-rowan
b-rowan merged commit 25a23c4 into UpstreamDataInc:master Jan 12, 2026
9 checks passed
@b4u-mw

b4u-mw commented Jan 29, 2026

Copy link
Copy Markdown
Contributor Author

@easybe Would you mind to tag a new release so that we can use this new feature?
Thank you, Michael

@easybe

easybe commented Jan 29, 2026

Copy link
Copy Markdown
Collaborator

@easybe Would you mind to tag a new release so that we can use this new feature? Thank you, Michael

#414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants