Skip to content

Conversation

@TylerZeroMaster
Copy link
Contributor

- Stop trying to copy secrets
- New versions of ruby, ruby bundler, java, and swagger-codegen
Refactor Content.slugs_by_page_uuid to cache partial data (from broken
books) with a 30-minute expiration, allowing recovery when books become
available again. Full data continues to cache indefinitely.

Also updates Ruby to 3.1.6, Java to openjdk-17, and upgrades gems.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements support for partial data handling in the ABL (Approved Book List) caching mechanism, allowing temporary caching when book processing encounters failures. It also includes infrastructure upgrades to Ruby 3.1.6, Java 17, and various gem dependencies.

Changes:

  • Refactored Content.slugs_by_page_uuid to explicitly handle partial data with time-limited caching (30 minutes) when ABL computation encounters broken books
  • Added comprehensive test coverage for the new caching behavior
  • Upgraded infrastructure: Ruby 2.6.1 → 3.1.6, Java 8 → 17, Bundler 2.1.4 → 2.3.14, Swagger Codegen 2.4.13 → 3.0.35
  • Updated gem dependencies including openstax_content 1.5.0 → 1.6.0

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/content.rb Refactored caching logic to support partial_data flag with conditional expiration
spec/lib/content_spec.rb New comprehensive test suite covering all caching scenarios and partial_data handling
Gemfile.lock Updated gem dependencies including openstax_content and AWS SDK gems
Dockerfile Upgraded Ruby version, Java version, bundler, and swagger-codegen; reorganized layer ordering
README.md Added Docker setup instructions for openstax/exercises and openstax/tutor-js

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TylerZeroMaster TylerZeroMaster merged commit e696d75 into main Feb 9, 2026
5 checks passed
@TylerZeroMaster TylerZeroMaster deleted the CORE-1521-abl-partial-data branch February 9, 2026 15:14
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