-
Notifications
You must be signed in to change notification settings - Fork 541
fix: reload mapping engine and frameworks cache on LoadedLibrary save #2958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: reload mapping engine and frameworks cache on LoadedLibrary save #2958
Conversation
WalkthroughA custom save() method was added to LoadedLibrary that persists the model, computes Changes
Sequence DiagramsequenceDiagram
participant Caller as Caller (save call)
participant LoadedLibrary as LoadedLibrary.save()
participant BaseSave as super().save()
participant DB as Database
participant Engine as core.mappings.engine
participant Queue as Async Task Queue
Caller->>LoadedLibrary: save(instance)
LoadedLibrary->>BaseSave: call super().save()
BaseSave->>DB: persist instance
DB-->>BaseSave: persist OK
BaseSave-->>LoadedLibrary: return
LoadedLibrary->>LoadedLibrary: compute objects_meta
alt requirement_mapping_sets present
LoadedLibrary->>Engine: import engine
Engine-->>LoadedLibrary: module ready
LoadedLibrary->>Queue: schedule engine.load_rms_data()
Queue-->>LoadedLibrary: queued
end
alt frameworks present
LoadedLibrary->>Engine: import engine
Engine-->>LoadedLibrary: module ready
LoadedLibrary->>Queue: schedule engine.load_frameworks()
Queue-->>LoadedLibrary: queued
end
LoadedLibrary-->>Caller: save complete
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
backend/core/models.py(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
backend/core/models.py (1)
backend/core/mappings/engine.py (2)
load_rms_data(58-93)load_frameworks(95-101)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: test (3.12)
- GitHub Check: enterprise-startup-docker-compose-test
- GitHub Check: startup-functional-test (3.12)
- GitHub Check: startup-docker-compose-test
- GitHub Check: enterprise-startup-functional-test (3.12)
- GitHub Check: build_community_frontend
- GitHub Check: build_enterprise_frontend
- GitHub Check: build (3.12)
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.