-
Notifications
You must be signed in to change notification settings - Fork 1
Feat: Add org setting on workspaces creation #896
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
Conversation
WalkthroughAdds sync_org_settings(workspace_id) to fetch org_settings via PlatformConnector and persist regional_settings to the Workspace; invoked during the workspace creation POST flow; exceptions are caught and logged. Changes
Sequence Diagram(s)sequenceDiagram
participant View as WorkspaceView
participant Task as sync_org_settings
participant Cred as FyleCredential
participant Platform as PlatformConnector
participant DB as Workspace Model
View->>Task: call sync_org_settings(workspace_id)
Task->>Cred: get credential for workspace_id
Task->>Platform: instantiate with credential\nfetch org_settings
Platform-->>Task: org_settings (including regional_settings)
Task->>DB: load Workspace, set org_settings.regional_settings
Task->>DB: save(update_fields=['org_settings','updated_at'])
Task-->>View: return/complete
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
Failure. Coverage is below 90%.Diff Coverage
|
Coverage Report
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diff Coverage
|
Description
Please add PR description here, add screenshots if needed
Clickup
Please add link here
https://app.clickup.com/
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.