-
Notifications
You must be signed in to change notification settings - Fork 972
Fixes Issue #10752, allows for sorting by publisher verification #12750
Fixes Issue #10752, allows for sorting by publisher verification #12750
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12750 +/- ##
==========================================
- Coverage 56.09% 56.06% -0.04%
==========================================
Files 279 279
Lines 27302 27303 +1
Branches 4441 4442 +1
==========================================
- Hits 15316 15308 -8
- Misses 11986 11995 +9
|
@NejcZdovc thanks for taking a look at this! :) |
@NejcZdovc there is one possible improvment I can make to this PR (It serves more of a visual purpose than a functional one) Currently, if a publisher is verified and included, the verification icon is green, if a publisher is verified and not included, the verification icon is not filled and is gray. The fix in this PR is technically functionally satisfying, as it does sort by whether a publisher is verified or not, but it does look a little odd if the non included publishers are staggered throughout the ordering. If you feel that it would beneficial for inclusion to factor in to the ordering as well, I can adjust the ternary in that value property to:
This will assign a value of 2 to verified and included publishers, a value of 1 to verified but not included publishers, and 0 for neither verified nor included. (I think this ends up looking a little nicer :) Let me know your thoughts and I can push this in a commit to this PR. |
@ryanml I like the idea, go for it |
@NejcZdovc I've pushed the improvement :) |
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 to me. Tested it out and it's working perfectly. Congrats on you first PR 🎉 Will merge it as soon as 0.20 is released
@NejcZdovc awesome! :) Thanks so much |
@NejcZdovc was 0.20 released? :) |
@ryanml it was 😃 |
@NejcZdovc great! Excited to see this fix in place, I'm working on another as we speak :) |
…sort Fixes Issue #10752, allows for sorting by publisher verification
…sort Fixes Issue #10752, allows for sorting by publisher verification
0.21 twitch e0670fd |
…sort Fixes Issue #10752, allows for sorting by publisher verification
Submitter Checklist:
git rebase -i
to squash commits (if needed).Resolves #10752
Test Plan:
This can be done through the UI.
Reviewer Checklist:
Tests
This is a very simple fix for issue #10752. The SortableTable component looks to the 'value' property of a row object as its basis for sorting (We should mimic the configuration for the included row object, where the value property is either set to 1 or 0, depending on whether its turned on). Now the Verified Publisher column sorts as expected. Thanks!