Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

support filters #1

Open
megayu opened this issue Jul 13, 2015 · 6 comments
Open

support filters #1

megayu opened this issue Jul 13, 2015 · 6 comments

Comments

@megayu
Copy link

megayu commented Jul 13, 2015

According to postgrest, Ng-admin need to change default url pattern of filter request as get request did.

@fzaninotto
Copy link
Member

Isn't it what's already done in https://github.com/marmelab/ng-admin-postgrest/blob/master/main.js#L39-L55? Do you actually see a bug? If yes, can you describe it?

@megayu
Copy link
Author

megayu commented Jul 19, 2015

listView.filters([
    nga.field('year').label('Year')
])

input "2005" then filter, then parameter is like _filters={"year":"2005"}, it should be year=eq.2005

@fzaninotto
Copy link
Member

Which version of ng-admin are you using?

@megayu
Copy link
Author

megayu commented Jul 23, 2015

"ng-admin": "~0.6.0", using 0.7.0 fix some other problem like exportFields, but not this one

@pleyo
Copy link

pleyo commented Sep 9, 2015

Yep, same issue here.

I added a addFullRequestInterceptor as explain here https://github.com/marmelab/ng-admin/blob/master/doc/API-mapping.md#filtering

params[filter] = 'eq.' + params._filters[filter];

Need some improvements though.

@begriffs
Copy link

begriffs commented Feb 2, 2016

It looks like the code running on http://marmelab.com/ng-admin-postgrest still has the _filters behavior. If you've got new code to fix that can you deploy it to the demo server please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants