Comments (4)
@DaveWhitmer Hmm - that issue should be fixed though, so this shouldn't be necessary anymore.
Which Citus version are you testing against?
from activerecord-multi-tenant.
Should be 7.5, but have not even gotten to that stage. Simply installed the gem in preparation for the move to Citus and my test suite started failing as described above. Remove the gem and the test suite passes. Dug into it and found that it was the fixture creation with the referential integrity as described above. Forked the gem added that monkey patch to it and everything passed.
from activerecord-multi-tenant.
Ah, this is caused by https://github.com/citusdata/activerecord-multi-tenant/blob/master/lib/activerecord-multi-tenant/referential_integrity.rb which wasn't removed yet even though this was fixed in Citus.
Given that this has been supported since Citus 6.2 I'd be inclined to simply remove that monkey patch.
Since you already forked the gem, could you try just removing that monkey patch from it, and see if that also makes things pass? (to confirm the patch is the issue)
from activerecord-multi-tenant.
Yes. Commenting out the entirety of the referential_integrity.rb file causes my local test environment to pass as I would expect.
from activerecord-multi-tenant.
Related Issues (20)
- Multi-tenant produces incorrect where clauses when joining between a table with a custom partition_key and one without
- How to adds a partition_key for a table that already exits HOT 3
- CollectionProxy.find raises error if block is given HOT 1
- After updating to 2.1.1 or later, getting an error. HOT 5
- undefined method `wrap_methods' for MultiTenant:Module (NoMethodError) Did you mean? methods HOT 2
- MultiTenant Cache Issue HOT 8
- Reloading association record with selective columns result in `ActiveModel::MissingAttributeError: missing attribute: tenant_id `
- Add Citus and Postgres Compatibility matrix for tests HOT 1
- ¿Migrate or merge Tenants? HOT 3
- `Model.limit(n).delete_all` & `Model.limit(n).update_all` generates incorrect query HOT 6
- `Rails.application.config.filter_parameters` does not work with ActiveRecord and activerecord-multi-tenant gem
- Any way to achieve two level multi-tenancy? HOT 4
- Schema based multi tenancy support HOT 3
- has_and_belongs_to_many_with_tenant does not include 3 arguments HOT 2
- MultiTenant.without does not work for a polymorphic relationship HOT 1
- Caching data when fetch all record via .all && .where method
- Error when undistribute_table is called via Migration.
- Rails 7.1 - error when multi_tenant defined in abstract class HOT 1
- Possible to lazily load tenant in sidekiq middleware?
- Documentation is difficult to maintain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activerecord-multi-tenant.