denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_dev2009-10-07 06:25 am
Entry tags:

Assigned-bugs hackathon!

I checked tonight, and we've got 571 open bugs. That's a lot! 146 of them are assigned with no patch, and if we could make some inroads on that number, we'd be able to knock down the total open number a hell of a lot.

So, here's my hackathon challenge! If you've got assigned bugs, let's do whatever we can this week to get that number down. I'll start; I have 8 bugs assigned to me without a patch, and while some of them are waiting on other things to get resolved first, some of them are things I've just been putting off because I don't know exactly how to do them or was running into problems.

I've already yelled for help on what I'm stuck on, so I'll turn to y'all: what can I help you with on stuff you're stuck on? And if not me, who else can help you? A bunch of the existing assigned stuff is really complex, so let's all work together and see how much we can improve things.

Ideally, I'd like to get that "open" number down below 500 by Sunday night, and double ideally, the "all unassigned" number (currently at 386) down under 300.

*salutes you all*
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-10-07 02:52 pm (UTC)(link)
Notes on bug 581, if anyone's free to help:

I have scalar %$tags which tells me the number of items in $tags, so I can construct appropriate if statements, and values %$tags gets the actual values. How can I get the values of only the first 10 items? Is there syntax to say "get the nth item from this array"? The relevant line is currently:
$out .= LJ::ehtml(join ', ', sort map { $_->{name} } values %$tags);
which gets all the items in the array.
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2009-10-07 03:07 pm (UTC)(link)
Is there a reason you are not using an array? Because with that, you could just use split to get the first ten items. I am not sure how it works with hashes.
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2009-10-07 03:09 pm (UTC)(link)
*facepalm* a) I meant splice

b) Or you can probably use splice on values %$tags.

my @10first = splice ( values %$tags , 0 , 10 ) or something like that.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2009-10-07 03:10 pm (UTC)(link)
Something like:
$out .= LJ::ehtml(join ', ', sort { $a cmp $b } map { $_->{name} } (values %$tags)[0..9]);
if you want the first 10 without sorting, or:
$out .= LJ::ehtml(join ', ', (sort { $a cmp $b } map { $_->{name} } values %$tags)[0..9]);
if you want the first 10 sorted by the name field.

(Also, added the missing comparison function to your sort, assuming you want string ordering. Adjust as needed.)

cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2009-10-07 06:20 pm (UTC)(link)
Thanks, that works :)