I think there needs to be some sort of expiration for that value (maybe
use sessionStorage?), or it might be better to not saving that value at
all between page loads (do we really want to be saving that sort of
information in the browser?) I'd expect it to work more like an
autocomplete-search to quickly find an item, rather than some sort of
persistent filter.
Clicking the x gets rid of the search query too, but I would expect it to
go away automatically when navigating to a new page.
--
Ticket URL: <https://code.djangoproject.com/ticket/33156>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Maxim Milovanov (added)
* type: Uncategorized => Bug
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
Thanks for the report. IMO we should still preserve typed value (see
[https://github.com/django/django/pull/13873#pullrequestreview-609660329
comment]), however `sessionStorage()` seems to be more appropriate.
Marking as a release blocker because this is a bug in the new feature (see
d915dd1c5809d7c2bb3679751cd5277571dcd9f7).
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:1>
* owner: nobody => Maxim Milovanov
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
hey guys,
I've changed the storage from `localStorage` to `sessionStorage`.
https://github.com/django/django/pull/14917
Thanks for the suggestion.
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:3>
* status: closed => new
* has_patch: 0 => 1
* resolution: fixed =>
Comment:
Hi Maxim. Thanks for the patch.
I'll reopen the ticket as it's not "fixed" until that's merged.
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:5>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"1c802ca2a9d3c66fb723695fe7ea597fb4802402" 1c802ca]:
{{{
#!CommitTicketReference repository=""
revision="1c802ca2a9d3c66fb723695fe7ea597fb4802402"
Fixed #33156 -- Used sessionStorage to preserve quick filter for admin's
navigation sidebar.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"f6c7e75cdfab5af9ff8861a97df3d702b1c36056" f6c7e75]:
{{{
#!CommitTicketReference repository=""
revision="f6c7e75cdfab5af9ff8861a97df3d702b1c36056"
[4.0.x] Fixed #33156 -- Used sessionStorage to preserve quick filter for
admin's navigation sidebar.
Backport of 1c802ca2a9d3c66fb723695fe7ea597fb4802402 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33156#comment:7>