-
Notifications
You must be signed in to change notification settings - Fork 192
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
Fixes #2526 - fixed filteringSort function #2527
Conversation
Travis tests have failedHey @magsout, 1st Buildnosetests
sleep 5
npm run test:js -- --reporters="runner" --firefoxBinary=`which firefox`
|
(Edit: excess of "yet"s) So from this it seems like the milestone list of issues ( Saving the sort order between filters seems reasonable, too. I'm curious about the |
Hmm... @karlcow I guess a Travis IP will hit the rate limit. I wonder if we need to hard-code milestones.json for tests? |
@miketaylr this is #2518 |
thanks, it felt familiar. |
@magsout ? |
I'm not sure to understand. What do you mean by |
Sorry, @magsout, my parentheses sometimes get the better of me!
Selecting
If we loaded the page with |
@laghee thanks for the explanations.
Good idea 👍 |
webcompat.com/webcompat/views.py Line 437 in a0dde5e
direction by desc would a good idea?
|
I'm trying to understand. Right now we get a list where the sort is
The logic at the time it was designed is that the oldest ones are the more urgent. It's how it is displayed right now. The way the UI is working right now is that you select the parameters and you have to click "filtered" (which maybe should be "submit") which reorder the full list. What could be done probably is that maybe it's not necessary to have the "filtered" button and that the reordering is done with |
At the moment, the UI not reflect that. I need to fix that too. It's a mistake, in this way I make logic simpler in the code.
Yes, we could do that. |
What I propose
little bonus? ;)
@karlcow @laghee @softvision-oana-arbuzov @softvision-sergiulogigan , what do you think? edit: not sure about the button, there is not fetch function, so we can filter the list every time. But it depends how users use the form? |
As far as I can see, the And as for
I's second this. |
@miketaylr @laghee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works for me locally -- except the filtered
button is still there (and throws a type error onClick). Maybe you forgot to remove it?
…stener on elements Form
oops, too much cmd+z ;) fixed ;) |
🎉 |
This PR fixes issue #2526
Proposed PR background
fixed
filteringSort
function. The order of issue was not stable. Every time we click onfiltered
button the order of issue changed. I created a global object to save the order and the previous select.