Skip to content

Fix regression for perseus exercise image export - #5399

Merged
rtibbles merged 1 commit into
learningequality:hotfixesfrom
rtibbles:its_all_about_image_darling
Sep 18, 2025
Merged

Fix regression for perseus exercise image export#5399
rtibbles merged 1 commit into
learningequality:hotfixesfrom
rtibbles:its_all_about_image_darling

Conversation

@rtibbles

Copy link
Copy Markdown
Member

Summary

  • Adds regression test and fix to ensure that full image paths are put in the question_images dict as keys, rather than just filenames.

References

Fixes#5398

Reviewer guidance

Confirmed by importing to Kolibri locally
image

Generate an exercise without free response questions. Include an image in the question body. Ensure that the imported question displays when imported to Kolibri as per above.

The regression test was written by Claude Code and then edited to provide a more straightforward and explicit assertion.

@akolsonakolson 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.

Changes look correct to me! However it seems like the minio is not being set up conclusively so the tests are not being run. It returns the error below in the Setup minio step;
Unable to find image 'bitnami/minio:2024.5.28' locally

@akolson

Copy link
Copy Markdown
Member

I guess this should be merge and a rebase made. Should fix the problem I think @rtibbles?

@rtibbles

Copy link
Copy Markdown
MemberAuthor

Yes.

…n the question_images dict as keys, rather than just filenames.
@rtibbles
rtibblesforce-pushed the its_all_about_image_darling branch from 6755a2d to 1073bd1CompareSeptember 18, 2025 14:58
@rtibbles

Copy link
Copy Markdown
MemberAuthor

Rebased and force pushed.

@akolsonakolson 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.

LGTM! Thanks @rtibbles

@rtibbles
rtibbles merged commit b223a55 into learningequality:hotfixesSep 18, 2025
13 checks passed
@rtibbles
rtibbles deleted the its_all_about_image_darling branch September 18, 2025 15:52
@akolsonakolson mentioned this pull request Sep 22, 2025
Sign up for freeto 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

@rtibbles@akolson