-
-
Notifications
You must be signed in to change notification settings - Fork 24
WIP: Paged search results #59
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
Conversation
|
@Mr0grog Looks interesting so far! I didn't know Django had a built-in paginator.
cc: @allthesignals |
|
Thank you @Mr0grog for diving in and helping with this task. It's a pretty fundamental feature that we've been lacking for a while.
|
|
|
@brucegarro I was thinking a more prominent role after talking it over with @Mr0grog & @WheresHJ. I'll talk it over with Jessie when she gets time later this week to work on the CSS. |
|
I pulled this into it's own branch on my local repo, so I can work more tomorrow. @brucegarro you might do the same if you get a chance later. Thanks everyone! |
|
@allthesignals I think I'm in agreement too. Let me know what you guys come up with. |
Yeah, but sadly, the Anyway, if you’re not worried about sending back nice errors from the API right now, that’s cool. I’ll just rip out the FIXMEs. |
|
Haha, interesting. I'm guessing pagination won't be a user configurable thing, so we should be alright. Don't worry too much about the comment cleanliness. |
|
Quick note: pagination breaks the old map. This might not be relevant for the new release. But it's something to keep in mind. If we get a chance to refactor, we should version our API. |
|
Does the old map specify |
|
Hi @Mr0grog we did a command line merge of this pull request because we started working from your branch. |
|
Cool, let me know if there’s anything else I can do/help with on it. |
This is just a start right now and only includes changes to the API (no UI yet).
Some open questions:
no_mapisFalse, should we still be paging? we'll need to modify the API to have a place to put the number of pages available in that case.pageandpage_sizeneed to be ints, butint()will raise an exception if it can't parse.page=0orpage_size=infinityor who knows what?