-
Notifications
You must be signed in to change notification settings - Fork 203
fix: ignore permissions for notification insertion #3746
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
fix: ignore permissions for notification insertion #3746
Conversation
WalkthroughAdjusted create_notification in india_compliance/gst_india/utils/init.py to insert Notification Log records with ignore_permissions=True, bypassing permission checks during persistence. No other logic, validation, or error handling was modified. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Caller
participant U as utils.__init__.py (create_notification)
participant DB as Database
C->>U: create_notification(payload)
U->>DB: insert(Notification Log, ignore_permissions=true)
DB-->>U: inserted doc
U-->>C: return result
Note over U,DB: Change: insertion bypasses permission checks
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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)
⏰ 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). (4)
🔇 Additional comments (1)
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 |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #3746 +/- ##
========================================
Coverage 69.60% 69.60%
========================================
Files 182 182
Lines 17974 17974
========================================
Hits 12511 12511
Misses 5463 5463
🚀 New features to boost your workflow:
|
…tfix/pr-3746 fix: ignore permissions for notification insertion (backport #3746)
Summary by CodeRabbit