feat(modules): auto-register tenant-specific plugin modules on import - #15
Merged
Conversation
Adds an idempotent try/except hook to automatically register tenant-specific Python modules when the package imports. This resolves the issue where Symitech custom blocks (cost_summary/bic_table) failed with "Onbekend content block type" after the tenant-purge commit a2edfe2 removed hand-patches. The hook safely registers tenant plugins (like symitech modules) if present in the image build, and silently skips them in public open-source builds. No breaking changes for existing deployments. Expected follow-up work in separate repos: - Symitech Python modules move to openaec-tenants (or dedicated private repo) - Dockerfile hooks for tenant plugin bundling during build - ADR documentation for 2-engine strategy (YAML templates + Python plugins) Related to tenant-purge: a2edfe2 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Voegt een idempotente auto-registratie hook toe voor tenant-specifieke Python modules bij package import. Lost het probleem op waar Symitech custom blocks faalden na de tenant-purge.
Achtergrond
Tijdens de tenant-purge van 15 april (commit
a2edfe2) werdsrc/openaec_reports/modules/symitech/toegevoegd aan.gitignoreom tenant-specifieke modules privé te houden. Echter:Deze wijziging
Plugin architectuur
Verwacht vervolgwerk
In andere repos/PR's:
openaec-tenantsprivate repo (of dedicated private repo)Test plan
Gerelateerde commits
a2edfe2 security(tenants): purge tenant-data from public repo🤖 Generated with Claude Code