Skip to content
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

fix: include BASE_URL in image file serialization #1093

Merged
merged 9 commits into from
Jun 11, 2024
Merged

Conversation

BeritJanssen
Copy link
Collaborator

@BeritJanssen BeritJanssen commented Jun 10, 2024

This branch fixes a problem on the servers, in which image requests are incorrectly prefixed with API_ROOT. Instead, this branch prefixes the BASE_URL for the backend image serialization.

Copy link
Contributor

@drikusroor drikusroor left a comment

Choose a reason for hiding this comment

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

Nice!

@BeritJanssen BeritJanssen marked this pull request as draft June 10, 2024 15:00
@BeritJanssen BeritJanssen changed the title fix: optionally include subpath in image file serialization fix: include BASE_URL in image file serialization Jun 10, 2024
@BeritJanssen BeritJanssen marked this pull request as ready for review June 10, 2024 15:44
Copy link
Contributor

@drikusroor drikusroor left a comment

Choose a reason for hiding this comment

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

Looks good to me. Did AML_SUBPATH not work well in the end?

backend/aml/base_settings.py Show resolved Hide resolved
backend/experiment/tests/test_views.py Outdated Show resolved Hide resolved
@BeritJanssen BeritJanssen merged commit 38669ad into develop Jun 11, 2024
10 checks passed
@BeritJanssen BeritJanssen deleted the fix/image-path branch June 11, 2024 09:19
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.

2 participants