Skip to content

Conversation

@kvmahathi
Copy link

Done for OMS. As of now, all orders have same tenant_id, so removing this to eliminate unnecessary conditions in sql queries.

@ganeshs
Copy link

ganeshs commented Sep 8, 2014

Mahathi, can you explain the change. If I understand it right, you want to ignore adding the tenant id to the sql queries. If that's the case, you can just ignore wrapping your code with acts_as_tenant.

@kvmahathi
Copy link
Author

I still need seller filter ganesh.
I don't need tenant filter only.
If I remove act_as_tenant, it will remove both seller_id and tenant_id filters.
So did it this way.

@ganeshs
Copy link

ganeshs commented Sep 8, 2014

ok. not very sure of the requirements. But please be aware that this is a public repo and used outside of flipkart as well

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in future there are chances that people start ignoring tenant id header assuming tenant scope is false. This line might cause an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants