-
Notifications
You must be signed in to change notification settings - Fork 49
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
Unneeded filterQuery redefinition #39
Comments
@vonagam thanks for this. I've took the updated version of |
Hm... so you keep this method for convenience, to be comparable with Because there is no need for |
Right. Feathers Crow release dictates security guidelines that were already implemented in most of the well-known Feathers DB adapters, including feathers-sequelize. Some of the recent updates in feathers-objection were simply synced from feathers-sequelize. All these DB adapters, including feathers-objection, are using the same test-suite from feathers that was released recently to test the new filtering functionalities. |
Ok. Got it. (Just to be clear: Ran tests. Removed |
|
Why not? |
$like is not unique to feathers-objection and is part of the operators that are allowed now by default in feathers-sequelize. It shouldn't be different in feathers-objection. |
In In So currently they have different behaviours. In In |
OK, thanks for that check. |
Sorry, no mistake, you can disable |
:) ok, releasing a patch |
removing filterQuery method |
It's a breaking change, though, if you want to match sequelize behaviour. |
right, so minor version. |
I mean, that if somebody used So it is major version change. |
OK. It'll be 3.0.0 |
Here is if you remove all unneeded stuff. |
Cool. removed all that too. |
published as 3.0.0 |
Currently you can safely remove
filterQuery
and nothing will change.First, it should exit
here
becausefiltered.query
will be an object. I assume it is a typo and it should have beenif (! utils.isPlainObject(query))
, it would make sense that way.But even after this,
convertOperators
is converting operators, butconst key = operators[prop] ? operators[prop] : prop
will always beprop
itself.defaultOperators
returns object where keys and values are equal, there is no mismatch or converting.Am i missing something?
The text was updated successfully, but these errors were encountered: