Repository navigation
feat(experimentation): add flagsmith database warehouse mode for self-hosted postgres - #8857
Conversation
…events column type
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
…se-deployment # Conflicts: # api/experimentation/warehouses/constants.py # api/experimentation/warehouses/postgres.py # api/tests/unit/experimentation/conftest.py # api/tests/unit/experimentation/test_views.py # api/tests/unit/experimentation/warehouses/test_postgres.py
…nt' into feat/postgres-warehouse-deployment
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8857 +/- ##
========================================
Coverage 98.88% 98.89%
========================================
Files 1690 1691 +1
Lines 70891 71035 +144
========================================
+ Hits 70104 70248 +144
Misses 787 787 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…fore asking for a password
|
@themis-blindfold review |
⚖️ Themis review: 🟠 Fix before mergeTL;DR: The new self-hosted database mode can be created as connected even when the runtime API role cannot read its event table. The completed API unit, analysis, and end-to-end checks passed; the remaining automated review is still running.
🟠 Majors
⚖️ Acknowledged
📝 Walkthrough
🧪 How to verify
Product take: This is a useful self-hosted experimentation foundation, but a green connection badge must mean the API can actually query the store. Until then, operators can complete setup successfully and only discover the failure when results are requested. 🧭 Assumptions & unverified claimsNo unverified assumptions or claims. A warehouse that says “connected” should at least say hello to its own table. · reviewed at bd788b5 |
…e postgres ones and sharpen names
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Self-hosted installations on PostgreSQL can use Flagsmith's own database as the experimentation warehouse. SDK events reach the table through the follow-up PR.
SDKExperimentationEvent.postgresconnection with config{"source": "flagsmith_database"}and no credentials is created connected, and reads that table using Django's default database settings.How did you test this code?
Unit tests against the test Postgres database: validation, Enable, reads from seeded rows and delivery-status handling.