GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Hotfixes into unstable by rtibbles · Pull Request #5771 · learningequality/studio

Conversation

@rtibbles

@rtibbles rtibbles commented Mar 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Merge down.

Conflicts:

.gitignore
contentcuration/contentcuration/frontend/shared/vuex/session/index.js
contentcuration/contentcuration/models.py
contentcuration/contentcuration/utils/publish.py

Duelling additions/removals - nothing particularly difficult.

Also merged the migration history - opening as draft to confirm tests are still fine.

References

Reviewer guidance

AI usage

Claude Code (claude-opus-4-6) diagnosed and fixed a CI failure caused by the language FK migration test (test_language_fk_column_length_migration.py). The test rolled back migrations to 0154 but only re-applied up to 0155, leaving the merged migration history (including 0162's user notification fields) unapplied and breaking subsequent TransactionTestCase tests. The fix dynamically resolves the latest leaf migration and restores it in a finally block.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
claude and others added 30 commits January 5, 2026 16:01
@claude @rtibbles
Fix Language foreign key column lengths (learningequality#5618)
eb50847
When Language.id was changed from max_length=7 to max_length=14 in
migration 0081, Django 1.9 did not cascade the primary key column size
change to foreign key and many-to-many junction table columns.

This migration fixes those columns for databases that were created
before the migration squash. It is idempotent - columns that are
already varchar(14) are not modified.

Fixes: contentcuration_channel.language_id
Fixes: contentcuration_channel_included_languages.language_id
Fixes: contentcuration_contentnode.language_id
Fixes: contentcuration_file.language_id

Adds migration test that deliberately corrupts the DB columns
then runs the migration and confirms the fix.
@rtibbles @claude
Narrow Language FK fix to only included_languages M2M table
1208fee
After verification on production servers, only the
contentcuration_channel_included_languages junction table is affected
by the varchar(7) issue. The other FK columns (channel.language_id,
contentnode.language_id, file.language_id) are already varchar(14).

This simplifies the migration to only fix the one affected column.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@bjester
Merge pull request learningequality#5623 from rtibbles/m2m_lang
4f67e69
Fix Language foreign key column lengths
@rtibbles
Upgrade le-utils to version 0.2.14
f174386
@rtibbles
Add test for and update publish logic to publish pre/post tests for U…
5890cf8
…NIT modality topics.
@rtibbles
Make topic completion criterion validation more rigorous.
0ad254f
@rtibbles
Run completion criterion checking on all node types.
2d7d22c
@rtibbles
Temporarily hide draft button.
9564806
@rtibbles
Add strong requirement for UNIT folders to require preposttest comple…
2d234d4
…tion criteria.
@marcellamaki
Merge pull request learningequality#5646 from rtibbles/unit_tests
8b9be86
Unit tests (as in, tests for unit folders)
@bjester
Merge pull request learningequality#5652 from rtibbles/hide_draft
2506bf5
Temporarily hide draft button.
@rtibblesbot @claude
fix: remove ai_feature entry from feature_flags.json
46536d9
Remove the ai_feature property from the feature flags JSON schema,
ungating the AI recommendations feature. Add test verifying ai_feature
is rejected as an unknown property.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@rtibblesbot @claude
fix: remove IsAIFeatureEnabledForUser permission class and its usage
85181ab
Delete the IsAIFeatureEnabledForUser permission class from user.py and
remove its import/usage from recommendation.py. The recommendations
endpoint now only requires authentication, making AI recommendations
available to all authenticated users. Add test verifying non-admin
users can access the recommendations endpoint.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@rtibblesbot @claude
fix: remove isAIFeatureEnabled getter and feature flag check from rec…
a3d31bb
…ommendations UI

Remove the isAIFeatureEnabled Vuex getter from the session module and
remove the FeatureFlagKeys import that was only used by it. Remove the
feature flag check from SearchOrBrowseWindow.vue's shouldShowRecommendations
computed property, making recommendations available to all users.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@rtibblesbot @claude
fix: update tests after removing ai_feature flag
68c1c08
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@rtibblesbot @claude
fix: remove tests asserting ai_feature flag absence
4c5e587
Since the flag is being purged entirely, tests that assert it's gone
add no value — the existing `test_validate__nonexistent` already covers
unknown flags being rejected by the schema validator.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bjester
Merge pull request learningequality#5695 from rtibblesbot/issue-5691-…
9cc5466
…941b2f

Remove ai_feature feature flag and ungate search recommendations
@bjester
Add CTE functionality to channel models
f83abb9
@bjester
Add management command for auditing missing source nodes
bb11bc9
@bjester
More ignores for all-the-AIs
9b79638
@bjester
Merge pull request learningequality#5711 from bjester/incompletely-sy…
bf03d5f
…nced

Add management command for auditing missing sources
@LianaHarris360
Downgrade non-urgent _sort_by_order logging error to warning
c13d2d0
@pre-commit-ci-lite
[pre-commit.ci lite] apply automatic fixes
d70c0b9
@bjester
Merge pull request learningequality#5712 from LianaHarris360/downgrad…
7e8048f
…e-error

Downgrade non-urgent _sort_by_order logging error to warning
@rtibbles @claude
Fix exercise extra_fields migration for non-m_of_n mastery models (le…
c7120d5
…arningequality#5714)

* Fix migrate_extra_fields to null m/n for non-m_of_n mastery models

Old-style exercise extra_fields were being migrated with non-null m/n
values for non-m_of_n mastery models (e.g. do_all, num_correct_in_a_row).
The mastery criteria JSON schema requires m and n to be null for these
models, causing frontend AJV validation to fail and exercises to appear
incomplete.

- Fix migrate_extra_fields to set m/n to null for non-m_of_n models
- Add management command fix_exercise_extra_fields to repair existing
  data in production

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Migrate old-style exercise extra_fields on ricecooker import

The ricecooker import path (create_node) was writing old-style
extra_fields directly to the DB without running migration. This
ensures incoming exercise data is migrated to the new-style
options.completion_criteria format before being persisted.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Cleanup management command and add more logging.

* Target dry_run more focally for better info, cleanup redundant save.

* Lazy loading, lazy coding.

* Mark_complete returns an empty list if complete.

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
@marcellamaki
Update snackbar to use multiline overflow option
db1a701
@rtibbles
Add additional completion to exercises that have already had their co…
b2984a0
…mpletion criteria fixed but their complete value is still wrong
@marcellamaki
Merge pull request learningequality#5730 from marcellamaki/fix-snackb…
69b4792
…ar-overflow

Update snackbar to use multiline overflow option
@marcellamaki
Add link to new DCMA form
e893fcb
@rtibbles
Merge pull request learningequality#5738 from marcellamaki/update-DCM…
1824744
…A-form

Add link to new DCMA form
rtibbles and others added 6 commits March 11, 2026 15:58
@rtibbles
Merge pull request learningequality#5731 from rtibbles/you_complete_me
050e85b
Add additional completion to exercises that have already had their completion criteria fixed but their complete value is still wrong
@rtibbles
Update deploy-migrate command to echo message
3b47583
@bjester
Merge pull request learningequality#5768 from learningequality/rtibbl…
b176828
…es-patch-1

Update deploy-migrate command to echo message
@rtibbles
Merge branch 'hotfixes' into hotfixesintounstable
23367c1
@rtibbles
Merge hotfixes and unstable migration histories.
79cf4ea
@rtibbles @claude
Fix migration test to restore full schema after rollback
9353ee4
The language FK migration test rolled back to 0154 but only re-applied
up to 0155, leaving later migrations (including 0162's user notification
fields) unapplied. This broke subsequent TransactionTestCase tests.
Now dynamically finds the latest leaf migration and restores it in a
finally block, making the test resilient to future migration additions.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@rtibbles
rtibbles marked this pull request as ready for review March 20, 2026 20:07
bjester
bjester approved these changes Mar 20, 2026
View reviewed changes

@bjester bjester left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The change to test for the language column length, makes total sense.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bjester
bjester merged commit e6c4f53 into learningequality:unstable Mar 20, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rtibbles
rtibbles deleted the hotfixesintounstable branch March 20, 2026 22:43
@rtibbles rtibbles mentioned this pull request May 13, 2026
2026.05.13 Release #5902
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bjester bjester bjester approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@rtibbles @bjester @claude @marcellamaki @rtibblesbot @LianaHarris360
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.