[BUG FIX] [MER-5795] Rework 3 - Fix alternatives rendering in instructor preview - #6782
Merged
eliknebel merged 3 commits intoAug 18, 2026
Conversation
Contributor
eliknebel
marked this pull request as ready for review
August 18, 2026 15:43
Contributor
AI Review — securityNo issues found |
Contributor
AI Review — performanceNo issues found |
Contributor
AI Review — elixirNo issues found |
darrensiegel
approved these changes
Aug 18, 2026
eliknebel
deleted the
MER-5795-native-ab-experiments-prototype-with-adaptive-support-rework3
branch
August 18, 2026 16:17
eliknebel
added a commit
that referenced
this pull request
Aug 21, 2026
…tor preview (#6782) * fix an issue with ETL lambda building * Fix alternatives in instructor preview * Refine alternatives preview guidance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause
Instructor preview did not provide either a preloaded Alternatives group map or the fallback group resolver required by
Oli.Rendering.Alternatives. Rendering an Alternatives element therefore attempted to invoke a nil function and returned a 500 response.User impact
Instructors can preview pages containing learner-preference Alternatives and experiment decision points without a crash. Preview notices clarify how to inspect each alternative and how the corresponding delivery policy behaves for learners.
Testing
mix test test/oli/rendering/alternatives/html_test.exs test/oli_web/live/delivery/instructor/preview_lesson_live_test.exsmix test test/oli/resources/alternatives_test.exsRelated issues