Sort & stack_count_reverse

Avatar

Amir Mohammad Saied

about 1 year ago

When I pass the "stackcountreverse" as sort option, API returns a failed response with error message: "An unknown application error occured."

The other endpoints (I mean except projects.xml which accepts sort) are all fine, and projects.xml works fine too with other parameters or even other sort options (e.g, createdat or createdatreverse), but only fails with stackcount_reverse.


Avatar

Robin Luckey

about 1 year ago

Hi Amir,

Thanks for reporting this. We did make some changes to our sorting system. I've posted a bug and will try to get it fixed in the next day or two.

Thanks, Robin


Avatar

Robin Luckey

about 1 year ago

Fixed.


Avatar

Amir Mohammad Saied

about 1 year ago

Hi Robin,

Thanks for the quick fix. I like to mention something, prior then your fix the "reverse stack count" was used to return the projects sorted by popularity (e.g, Firefox, Subversion, Apache ...), but now "stack count" returns project this way, though I'm not sure if this change is intentional or not, I'd like warn of a potential bc break (yeah I know what beta means :)


Avatar

Robin Luckey

about 1 year ago

Ugh. OK, it looks like I got the sorts backwards by mistake.

I'm going to change it to the way it used to be: "reverse" means big numbers first, small numbers last.

Sorry for the confusion; I hope I'm not causing mayhem. I'll get the fix in right now.


Avatar

Amir Mohammad Saied

about 1 year ago

Great,

Thanks for support Robin.