You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Feature request - 'natural' treatment of null strings in default orderBy comparator #15294
As of 1.3.7, orderBy on a collection of strings that includes null strings will sort those items with null strings as if they were the string 'null', so will place them in the middle of a sorted list. The "natural" sorting of null elements in a list is to put them at the end of the list (or front, when reverse-sorting). Note that this was the behavior pre-1.3.7.
To be clear this does not only affect lists of strings, but any values. Basically, null is treated in the exact same way as the string 'null' (as far orderBy is concerned).
It seems reasonable to treat it in a special way. Note that undefined is already put at the end of the list, because it's type 'undefined' happens to start with a u 😃 I think it makes sense to explicitly put null/undefined at the end of a sorted list.
Notes:
This will affect the default, built-in comparator for orderBy, as well as custom comparators.
The changes need to be clearly documented in the orderBy docs (which discusses the internal sorting algorithm).
hey from gitcoin.co folks -- @frederikprijck did you ever turn this around? if not, let us know so we can source someone new. if so @dntxos maybe time to pay out?
Sorry for taking so long, but the PR is up and awaiting reviewing. It looks like the gitcoin url is expired tho. I guess that makes me unable to claim it, right ? Any chance it can be refreshed ?
I dont know how can i change the 'expired' status of my gitcoin bounty. I think @owocki can help with this.
Anyway, tks @frederikprijck ... I was excited about the gitcoin idea and wanted to try... Its Awesome
hey @dntxos the bounty submitter can still pay out the bounty after the 'official' expiration. so you can still accept the bounty even if it's expired :)
i didnt realize this when i left my comment earlier but.... the gitcoin team had to migrate all of the bounties from an old smart contract to a new smart contract a few months ago. there are more details here https://medium.com/gitcoin/critical-security-vulnerability-patched-2017-11-10-9472db340692 ; but the TLDR is that the new bounty doesnt exist on the new smart contract.. and that's why you're not seeing the link.
i'm very sorry for the inconvenience. im willing to payout the bounty to @frederikprijck myself to make it up to you.
Activity
gkalpak commentedon Oct 19, 2016
To be clear this does not only affect lists of strings, but any values. Basically,
nullis treated in the exact same way as the string'null'(as farorderByis concerned).It seems reasonable to treat it in a special way. Note that
undefinedis already put at the end of the list, because it's type'undefined'happens to start with au😃 I think it makes sense to explicitly putnull/undefinedat the end of a sorted list.Notes:
orderBy, as well as custom comparators.orderBydocs (which discusses the internal sorting algorithm).gitcoinbot commentedon Oct 1, 2017
This issue now has a funding of 0.02 ETH (6.02 USDT) attached to it. To view or claim this funding, click here.
frederikprijck commentedon Oct 1, 2017
I'm working on this one, will create a PR asap.
dntxos commentedon Oct 2, 2017
awesome @frederikprijck ... I liked this feature request and i was wanting to try gitcoin... ;-)
owocki commentedon Dec 4, 2017
hey from gitcoin.co folks -- @frederikprijck did you ever turn this around? if not, let us know so we can source someone new. if so @dntxos maybe time to pay out?
frederikprijck commentedon Dec 17, 2017
Hey @owocki / @dntxos ,
Sorry for taking so long, but the PR is up and awaiting reviewing. It looks like the gitcoin url is expired tho. I guess that makes me unable to claim it, right ? Any chance it can be refreshed ?
owocki commentedon Dec 18, 2017
@dntxos you are the bounty submitter. are you still waying to pay out this bounty? cc @frederikprijck
dntxos commentedon Dec 18, 2017
owocki commentedon Dec 18, 2017
@frederikprijck you are good to go. the bounty submitter can still pay out the bounty after the 'official' expiration
frederikprijck commentedon Jan 10, 2018
@owocki The PR is there (for a while now), so awaiting merging! :)
Poking @gkalpak for obvious reasons. 💩
frederikprijck commentedon Jan 25, 2018
Wohoow, it's merged! 🎊
dntxos commentedon Jan 25, 2018
I dont know how can i change the 'expired' status of my gitcoin bounty. I think @owocki can help with this.
Anyway, tks @frederikprijck ... I was excited about the gitcoin idea and wanted to try... Its Awesome
owocki commentedon Jan 25, 2018
hey @dntxos the bounty submitter can still pay out the bounty after the 'official' expiration. so you can still accept the bounty even if it's expired :)
Just go to https://gitcoin.co/funding/details?url=https://github.com/angular/angular.js/issues/15294 and go through the accept flow.
dntxos commentedon Jan 25, 2018
Where???
dntxos commentedon Jan 25, 2018
@owocki this link just show me a 'clawback' option
owocki commentedon Jan 25, 2018
Hi @dntxos sorry for the confusion.
i didnt realize this when i left my comment earlier but.... the gitcoin team had to migrate all of the bounties from an old smart contract to a new smart contract a few months ago. there are more details here https://medium.com/gitcoin/critical-security-vulnerability-patched-2017-11-10-9472db340692 ; but the TLDR is that the new bounty doesnt exist on the new smart contract.. and that's why you're not seeing the link.
i'm very sorry for the inconvenience. im willing to payout the bounty to @frederikprijck myself to make it up to you.
@frederikprijck ill leave you a tip now.
gitcoinbot commentedon Jan 25, 2018
⚡️ A tip worth 0.025 ETH ($26.34) has been granted to @frederikprijck for this issue from Kevin. ⚡️
The sender had the following public comments:
Nice work @frederikprijck, check your email for further instructions.
frederikprijck commentedon Jan 25, 2018
@owocki Thanks, amazing platform btw!
@dntxos Thanks aswell :)