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 of listing pages discards filter(s) #54

Open
jesteria opened this issue Aug 27, 2020 · 0 comments
Open

pagination of listing pages discards filter(s) #54

jesteria opened this issue Aug 27, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@jesteria
Copy link
Member

The pagination of listing pages (projects, organizations, volunteers) discards any filter(s) set on the first page of results.

  1. These filtering forms POST, rather than GET, unnecessarily – filter params aren't preserved for reuse. These may be safely stored in the GET query string.

  2. The pagination template does not respect existing query params; these are discarded.

The issue with the project listing page is expected to be resolved within #36, as well as problem (2) above.

This will leave problem (1) to be resolved within the organization and volunteer listing pages.

@jesteria jesteria added the bug Something isn't working label Aug 27, 2020
jesteria added a commit that referenced this issue Aug 27, 2020
as discusssed in #54, the platform's listing pages all suffer from
submitting filters via POST, and previously from a pagination template
which discarded any GET query params besides its own page number.

the first problem was resolved in previous clean-up of the project
listing view. this change fixes the pagination template, globally.

the net result is that only the pagination of the project listing page
is fixed, for now. (but the other pages may now be fixed by switching to
GETs, alone.)
jesteria added a commit that referenced this issue Sep 3, 2020
* cleaned up project list view

* refactored / cleaned up domain function to list / filter public projects
  and began domain namespace for projects

* fixed pagination of project listing page -- no longer discards filters

  as discusssed in #54, the platform's listing pages all suffer from
  submitting filters via POST, and previously from a pagination template
  which discarded any GET query params besides its own page number.

  the first problem was resolved in previous clean-up of the project
  listing view. this change fixes the pagination template, globally.

  the net result is that only the pagination of the project listing page
  is fixed, for now. (but the other pages may now be fixed by switching to
  GETs, alone.)
jesteria added a commit that referenced this issue Sep 3, 2020
* cleaned up project list view

* refactored / cleaned up domain function to list / filter public projects
  and began domain namespace for projects

* fixed pagination of project listing page -- no longer discards filters

  as discusssed in #54, the platform's listing pages all suffer from
  submitting filters via POST, and previously from a pagination template
  which discarded any GET query params besides its own page number.

  the first problem was resolved in previous clean-up of the project
  listing view. this change fixes the pagination template, globally.

  the net result is that only the pagination of the project listing page
  is fixed, for now. (but the other pages may now be fixed by switching to
  GETs, alone.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant