Skip to content
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

Pagination #80

Closed
fibigerg opened this issue Apr 29, 2014 · 8 comments
Closed

Pagination #80

fibigerg opened this issue Apr 29, 2014 · 8 comments
Labels

Comments

@fibigerg
Copy link

Hello

I am responding to this post #58

Did you make any progress on this issue? I think we really need a pagination for production usage of Django REST Adapter + Ember.

I tried to look into code by myself, but i don't think i have enough knowledge of Ember to implement it, yet.

Thank you for answer.

Gary

@toranb
Copy link
Owner

toranb commented Apr 30, 2014

I haven't been using ember data recently and since writing this adapter last year I decided to roll my own store w/ just the basics to help me understand how it all works. Unfortunately at this time I don't have the bandwidth to jump back into this project and add pagination (sorry)

@H1D
Copy link
Contributor

H1D commented May 28, 2014

Actually this one is really tricky especially when combined with filtering. Are there any solid implementations of filtering+pagination for other frameworks?

@Goldcap
Copy link

Goldcap commented Jul 14, 2014

Hey guys:

I've got an implementation of pagination that pulls PK's from inbound payloads, but I moved away from this adapter, finding that with a few minor adjustments to Django-Rest-Framework I could get the whole thing to work with the default REST Adapter and a couple of tweeks to the adapter/serializer in Ember. I also use a canary build of Ember so I can use query-params for pagination, made things super simple in the end.

You can see the project in process here, I'm slowly working on integrating code generators, some form controls, and Ember-Easyform, so it's in process. Note, I had to write a custom D-R-F Renderer, and have a few properties added to the serializers. (For the generator, I actually create a new Model Subclass called "Ember".

https://github.com/Goldcap/operis

@dustinfarris
Copy link
Collaborator

@Goldcap thanks for sharing!

@dustinfarris
Copy link
Collaborator

I agree that queryParams in 1.7 will help a lot with pagination. I am using 1.7 beta in my own projects for queryParams as well.

@Goldcap
Copy link

Goldcap commented Nov 6, 2014

So I've updated that project, not sure if I've added everything you need but feel free to check it out. I included bower and node stuff, as well, just for the purposes of illustration. Note, also have an nginx config in there to help. If you need to see a demo, let me know.

Thanks

@Ghostavio
Copy link

So, was this fixed on the new ember-cli addon?

@benkonrath
Copy link

We're still working on it.

dustinfarris/ember-django-adapter#45

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

No branches or pull requests

7 participants