Skip to content

Maintenance 202607#26

Merged
mabiede merged 6 commits into
mainfrom
maintenance-202607
Jul 14, 2026
Merged

Maintenance 202607#26
mabiede merged 6 commits into
mainfrom
maintenance-202607

Conversation

@mabiede

@mabiede mabiede commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@mabiede mabiede self-assigned this Jul 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Maintenance update focused on improving backend authorization performance/caching and modernizing the development environment (DevContainer), alongside dependency updates.

Changes:

  • Refactors MariaDB backend caching (per-actor generation invalidation + target UUID→model cache) and optimizes permission deduplication.
  • Updates DB migrations with new indexes and removes redundant indexes; adjusts queries for efficiency.
  • Modernizes DevContainer setup (features + .env-based configuration), and bumps OCaml dependencies (notably caqti).

Reviewed changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/main.ml Adds tests covering cache invalidation, promote/model refresh, role scope coexistence, and grant deduplication.
README.md Updates development instructions to the new DevContainer/.env workflow.
lib/utils.ml Switches to CCFun.Infix usage.
lib/guardian_entity.ml Optimizes PermissionOnTarget.remove_duplicates and adjusts CCFun.flip usage.
lib/dune Adds caqti.classic and reformats library list.
guardian.opam Bumps caqti dependencies and adjusts ppx_sexp_conv version constraint.
dune-project Aligns dependency constraints with opam changes.
CHANGELOG.md Documents cache/index/performance changes and dependency fix.
backend/migrations.ml Adds role indexes and drops redundant indexes.
backend/mariadb_backend.ml Implements cache generation invalidation, adds model-resolution cache, updates SQL joins/unions, and ensures cache clearing on clean/delete.
backend/dune Adds caqti.classic dependency.
backend/database_pools.ml Minor compatibility change (CCInt.max) and cleanup around CCFun.Infix usage.
backend/caqti_encoders.ml Uses CCResult.map and aligns CCFun.Infix usage.
.gitignore Ensures .env.example files are not ignored while keeping .env* ignored.
.devcontainer/wait-for-database.sh Removes legacy wait script.
.devcontainer/README.md Removes duplicate DevContainer README (instructions moved to root README).
.devcontainer/postCreate.sh Removes legacy post-create provisioning script.
.devcontainer/Dockerfile Removes custom image build (switches to base image + features).
.devcontainer/docker-compose.yml Switches to upstream image, adds env file usage and volume changes.
.devcontainer/devcontainer.json Migrates to DevContainer features and updates postCreate command.
.devcontainer/devcontainer-lock.json Adds lockfile pinning DevContainer feature versions.
.devcontainer/.env.example Adds env template for DevContainer credentials/config.

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

Comment thread README.md Outdated
Comment thread .devcontainer/.env.example Outdated
@mabiede
mabiede merged commit d993add into main Jul 14, 2026
8 checks passed
@mabiede
mabiede deleted the maintenance-202607 branch July 14, 2026 19:08
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