-
Notifications
You must be signed in to change notification settings - Fork 10.2k
feat: migrate OrganizationOnboarding.logo to use avatars table #22747
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?
feat: migrate OrganizationOnboarding.logo to use avatars table #22747
Conversation
- Add logoUrl field to OrganizationOnboarding schema - Mark logo field as deprecated for backward compatibility - Update handlers to process base64 logo data using uploadLogo - Modify createOrganizationFromOnboarding to prefer logoUrl - Update onboarding store to handle logoUrl - Ensure all organization creation flows use avatar system Co-Authored-By: zomars@cal.com <zomars@me.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
- Add comprehensive test suite for logo migration functionality - Test base64 logo processing using uploadLogo and avatar system - Verify preference for logoUrl over legacy logo field - Test handling of non-base64 data and null values - Ensure backward compatibility with deprecated logo field - Fix OrganizationRepository to properly save logoUrl field - Move logo processing after organization creation for correct teamId Co-Authored-By: zomars@cal.com <zomars@me.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
- Add logoUrl: null to test expectations after schema migration - Handle invitedMembers: undefined in admin override tests - Ensure tests match actual OrganizationPaymentService behavior Co-Authored-By: zomars@cal.com <zomars@me.com>
This PR is being marked as stale due to inactivity. |
feat: migrate OrganizationOnboarding.logo to use avatars table
Summary
This PR migrates the
OrganizationOnboarding.logo
column from storing base64 image data directly to using the existing avatar system that stores images in theavatars
table and returns URLs. This is an incremental migration that:logoUrl
field toOrganizationOnboarding
schemalogo
field as deprecated for backward compatibilityuploadLogo
logoUrl
while falling back tologo
The migration follows the same pattern used by teams and organizations for logo handling, moving away from storing large base64 strings directly in the database.
Review & Testing Checklist for Human
logoUrl
column without issues and can be safely deployed to productionRecommended Test Plan:
logoUrl
is populated and points to avatar systemDiagram
Notes
logo
field as deprecated to maintain backward compatibilityuploadLogo
function handles storing images in the avatars table and returning URLsLink to Devin run: https://app.devin.ai/sessions/b56ecd2b3f7b42529ba4546f99d0c221
Requested by: @zomars