-
Notifications
You must be signed in to change notification settings - Fork 143
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
Bug: Empty queries do not trigger common filters when using multitenancy #327
Comments
@niphlod I'm for drop this feature and update the book. We should also warn users for backward compatibility breaks. If other developers agree with this, I can include this in the major refactoring I'm working on, will publish a PR in the next week probably. |
drop = discontinue plus a note on the book about multi-tenancy working with Query but not Set IMHO is the way to go. It's not the first one coming in reporting the issue |
What feature are you talking about dropping/discontinuing? |
quoting myself """ I really don't get why supporting db().select(fields) when it clearly creates side-problems like this one. And I can't see the usecase. |
If we don't want to fix it, maybe |
@niphlod can I assign this to you? |
@niphlod I mean the drop of |
huh ? did I win ? already ? without discussions ? if yes, count me in, I definitely WANT to be blamed for the removal. Don't think though that I won: @mdipierro , @abastardi , @michele-comitini final vote ? |
We should not break backward compatibility. This is easy to fix.
|
@mdipierro the point here is not how it would be easy to fix, the point is to voluntarily keep a syntax that is "semantically" different from everything else and that produce side problems. I can't see the point of keeping it while you can just tell people that they should move to the correct syntax. |
It is not semantically different. db(db.table).select(db.select.field) would be a redundant syntax. There should be no need to specify a table in the query if we specify it in the select(....). |
Still, can't see the point of writing |
see web2py/web2py#1181 .
I'd love to trash db().select(db.table.ALL) but it it stays there at least there should be a note on the book.
@mdipierro , @gi0baro , @michele-comitini, @abastardi : thoughts ?
The text was updated successfully, but these errors were encountered: