Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Fix pagination on outside spending tab #635

Closed
jenniferthibault opened this issue Sep 11, 2015 · 6 comments
Closed

Fix pagination on outside spending tab #635

jenniferthibault opened this issue Sep 11, 2015 · 6 comments

Comments

@jenniferthibault
Copy link
Contributor

The left/right buttons are loading and working, but the page numbers (1, 2, 3, 4) are not. See bottom right of screenshot below

https://fec-dev-web.18f.gov/elections/president/2016/?tab=spending

screen shot 2015-09-11 at 10 27 15 am

@jmcarp
Copy link
Contributor

jmcarp commented Sep 11, 2015

This seems to be intentional (we're specifying pagingType: 'simple' on those tables), but I'm not sure why we're doing it. @noahmanger, is it better to hide page number buttons on the "other spending" tables?

@noahmanger
Copy link
Contributor

I don't remember making a conscious decision to do that, but if I did it
would've just been to reduce clutter. I'm fine with either approach.

On Fri, Sep 11, 2015 at 9:13 AM, Joshua Carp [email protected]
wrote:

This seems to be intentional (we're specifying pagingType: 'simple' on
those tables), but I'm not sure why we're doing it. @noahmanger
https://github.com/noahmanger, is it better to hide page number buttons
on the "other spending" tables?


Reply to this email directly or view it on GitHub
#635 (comment)
.

Noah Manger
18F http://18f.gsa.gov | Work: 415-696-6146

@jmcarp
Copy link
Contributor

jmcarp commented Sep 11, 2015

Ambien paging™

@jmcarp
Copy link
Contributor

jmcarp commented Sep 11, 2015

More seriously, we need to use simple paging (back and forward, but no page numbers) for the very large tables (itemized receipts and disbursements), since the database doesn't support arbitrary page selection in those cases. I'm wondering whether we copied that setting from the itemized tables to other tables that do support paging by number. Maybe we should allow paging by number for all tables that support it on the backend. What do you think @jenniferthibault?

@jenniferthibault
Copy link
Contributor Author

To recap our convo and make sure I understand it right, we're going to:

  • Only offer paging by number on browse data tables. Else, they'll just have the forward page/backward page button.

Is that right @jmcarp ? or do i have that reversed?

jmcarp added a commit to jmcarp/openFEC-web-app that referenced this issue Sep 14, 2015
* Browse views (candidates, committees, filings) use paging by number
* Large browse views (receipts, disbursements) use simple paging
* All other tables use simple paging

[Resolves fecgov#635]
@jmcarp
Copy link
Contributor

jmcarp commented Sep 14, 2015

That's my understanding @jenniferthibault. Just filed these changes in #660.

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

3 participants