Closed
Bug 1301040
Opened 8 years ago
Closed 8 years ago
persist drop down filter state
Categories
(Release Engineering Graveyard :: Applications: Balrog (frontend), defect, P3)
Release Engineering Graveyard
Applications: Balrog (frontend)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: wasif.hyder, Mentored)
References
Details
(Whiteboard: [lang=js][ready])
Attachments
(1 file)
The new dropdown rules filter from bug 1241760 has made the rules page easier to navigate, but its state doesn't persist if you leave the page and go back to it (whether through the back/forward button), or by clicking back to "rules". We almost never want to view all of the rules at once, so I think the most sensible thing to do is to persist the state of that filter somehow.
Comment 1•8 years ago
|
||
Bonus points for being able to link to rules with a filter applied.
Assignee | ||
Comment 2•8 years ago
|
||
Hi,
I'd like to work on this. Can you advise me on how to get started?
Reporter | ||
Comment 3•8 years ago
|
||
(In reply to Wasif Hyder from comment #2)
> Hi,
>
> I'd like to work on this. Can you advise me on how to get started?
Hi Wasif, thanks for your interest! To get started, I suggest making sure you can run the Balrog development environment first. Instructions for that are in the README: https://github.com/mozilla/balrog/blob/master/README.rst
Once you're able to browse to http://localhost:8080, go to the Rules page (http://localhost:8080/rules) and reproduce this issue by:
1) Changing the "Product/Channel filter" drop down
2) Browsing to a different page by clicking a link at the top
3) Browsing back to the Rules page by clicking the link at the top
Notice that the Product/Channel filter is reset to "All rules" after step 3. The desired behaviour is for it to use the previous value. Satisfying Nick's request in comment #1 most likely means that the state should be reflected in the URL somewhere.
I suspect that the fix for this is most likely in the controller that powers that page: https://github.com/mozilla/balrog/blob/master/ui/app/js/controllers/rules_controller.js
I know this is a lot of information to take in, so don't hesitate to ask if you have any questions! You can also join us in the developer channel at irc://irc.mozilla.org/#balrog.
Assignee: nobody → wasif.hyder
Reporter | ||
Updated•8 years ago
|
Priority: -- → P3
Whiteboard: [lang=js] → [lang=js][ready]
Reporter | ||
Comment 4•8 years ago
|
||
Did you make any progress here, Wasif?
Flags: needinfo?(wasif.hyder)
Assignee | ||
Comment 5•8 years ago
|
||
Hi Ben,
Yes. I've been learning up on Angular and managed to make the requested changes. I've created a pull request and submitted a patch here.
I tried adding the data to the URL but haven't been able to figure out how to do that. Would like advice on that, if its a useful feature. Otherwise, the task is done.
Cheers.
Flags: needinfo?(wasif.hyder)
Assignee | ||
Comment 6•8 years ago
|
||
Attachment #8833828 -
Flags: review?(bhearsum)
Attachment #8833828 -
Flags: feedback?(bhearsum)
Comment 7•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/b709987df76d5d0ed9c3789463502c653b0a734c
bug 1301040: persist drop down filter state on Rules page (#239). r=bhearsum,aksareen
Assignee | ||
Comment 8•8 years ago
|
||
Hi Ben,
Is there anything else I can work on?
Flags: needinfo?(bhearsum)
Reporter | ||
Comment 9•8 years ago
|
||
(In reply to Wasif Hyder from comment #8)
> Hi Ben,
>
> Is there anything else I can work on?
It looks like found a few things!
Flags: needinfo?(bhearsum)
Reporter | ||
Updated•8 years ago
|
Attachment #8833828 -
Flags: review?(bhearsum)
Attachment #8833828 -
Flags: review+
Attachment #8833828 -
Flags: feedback?(bhearsum)
Attachment #8833828 -
Flags: feedback+
Reporter | ||
Comment 10•8 years ago
|
||
This is in production now, nice job Wasif!
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 11•8 years ago
|
||
I know we still want to be able to send links to filtered versions of the Rules page. I filed that as https://bugzilla.mozilla.org/show_bug.cgi?id=1337929.
Updated•5 years ago
|
Product: Release Engineering → Release Engineering Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•