Skip to content

?_size= argument is not persisted by hidden form fields in the table filters #1194

Closed

Description

@simonw

Activity

  1. simonw commented on Jan 18, 2021

    @simonw
    OwnerAuthor

    Relevant code:

    form_hidden_args = []
    # Add currently selected facets
    for arg in special_args:
    if arg == "_facet" or arg.startswith("_facet_"):
    form_hidden_args.extend(
    (arg, item) for item in request.args.getlist(arg)
    )
    for arg in ("_fts_table", "_fts_pk"):
    if arg in special_args:
    form_hidden_args.append((arg, special_args[arg]))
    if request.args.get("_where"):
    for where_text in request.args.getlist("_where"):
    form_hidden_args.append(("_where", where_text))

    It looks like there are other arguments that may not be persisted too.

  2. simonw commented on Jan 18, 2021

    @simonw
    OwnerAuthor

    Should I just blanket copy over any query string argument that starts with an underscore? Any reason not to do that?

  3. simonw commented on Jan 25, 2021

    @simonw
    OwnerAuthor

    I'm going to copy across anything starting with an underscore.

  4. added a commit that references this issue on Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions