Skip to content

Conversation

@b4u-mw
Copy link
Contributor

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

Fix for #399

b-rowan
b-rowan previously approved these changes Dec 3, 2025
Copy link
Member

@b-rowan b-rowan left a comment

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
Copy link
Member

b-rowan commented Dec 3, 2025

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

@easybe
Copy link
Collaborator

easybe commented Dec 3, 2025

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
Copy link
Collaborator

@easybe easybe left a comment

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
Copy link
Member

b-rowan commented Dec 3, 2025

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
Copy link
Collaborator

easybe commented Dec 22, 2025

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

@jkuri
Copy link
Collaborator

jkuri commented Dec 22, 2025

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
Copy link
Collaborator

easybe commented Dec 22, 2025

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

@jkuri
Copy link
Collaborator

jkuri commented Dec 22, 2025

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
Copy link
Collaborator

easybe commented Dec 22, 2025

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
Copy link
Contributor Author

b4u-mw commented Jan 9, 2026

I have switched to the more simple approach you suggested.

jkuri
jkuri previously approved these changes Jan 9, 2026
Copy link
Collaborator

@jkuri jkuri left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@b4u-mw
Copy link
Contributor Author

b4u-mw commented Jan 9, 2026

I added a few tests now

1 similar comment
@b4u-mw
Copy link
Contributor Author

b4u-mw commented Jan 9, 2026

I added a few tests now

easybe
easybe previously approved these changes Jan 9, 2026
Copy link
Collaborator

@easybe easybe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@easybe
Copy link
Collaborator

easybe commented Jan 9, 2026

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
Copy link
Member

b-rowan commented Jan 9, 2026

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
Copy link
Collaborator

easybe commented Jan 9, 2026

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

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

jkuri commented Jan 9, 2026

@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
Copy link
Contributor Author

b4u-mw commented Jan 12, 2026

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
Copy link
Collaborator

easybe commented Jan 12, 2026

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