-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Supabase Adapter Updates and Scheme Create Functions #3290
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
-Drop all tables, functions and triggers from your current supabase. |
Hey @rferrari this is great but heads up, we're moving plugins to their own repos: Closing this for now, would love to review if we can merge it into the individual repo on elizaos-plugins repo. |
Relates to
#1389
#3160
Risks
Low – This PR primarily updates the schema and seed files with minimal code changes.
Background
This PR addresses issues with the Supabase adapter by updating the schema and seed files. The previous implementation did not correctly create rooms and memories, leading to inconsistencies in data persistence.
What does this PR do?
What kind of change is this?
Bug fixes (non-breaking change which fixes an issue)
The Supabase adapter was not correctly creating rooms and memories due to outdated or incorrect schema definitions. This update ensures the expected behavior when interacting with the database.
Documentation changes needed?
My changes do not require a change to the project documentation.
Testing
-Add the following environment variables to your .env file:
-Drop all tables, functions and triggers from your current supabase.
-Import and execute scheme.sql to supabase using SQL Editor.
-Import seed.sql to supabase
-Start Eliza.
-Verify that rooms and memories are correctly created and selected in the Supabase dashboard.
Where should a reviewer start?
packages/adapter-supabase/src/index.ts
packages/adapter-supabase/schema.sql
packages/adapter-supabase/seed.sql
Detailed testing steps
Before
at SupabaseDatabaseAdapter.createMemory
Screenshots
Discord username
vaipraonde