ninetydegrees: Photo: bingo chips (bingo)
ninetydegrees (90d)☕ ([personal profile] ninetydegrees) wrote in [site community profile] dw_dev_training2009-10-28 08:49 pm
Entry tags:

Another dumb question from a newbie: multiple bugs on the same page = 1 bug?

I keep finding bugs on Manage Comments. I've already filed three and I could file two more. I'm afraid it's getting a little ridiculous. What's the policy in this case? Should I file the new bugs independently anyway, edit the last one and give it a vaguer title? What?

BTW are there any guidelines somewhere for using Bugzilla? I don't get when it's ok to reopen a bug and when it isn't for example.

A: Reopen when there is a problem with the fix itself: it didn't fix the bug.
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2009-10-28 08:09 pm (UTC)(link)
If I remember,

is_person returns true if the account is a personal DW account.

is_individual returns true if the account is a personal or OpenID DW account.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-10-28 08:44 pm (UTC)(link)
Yes!

There are the following functions, mostly self explanatory:

is_community
is_identity -- returns true if the user is an OpenID identity
is_official
is_paid
is_perm
is_redirect -- this user redirects to another user, like with renames
is_syndicated -- for a feed account

It looks like there's no function that combines both, but you can use two functions by using an or (||) in your if statement:

if ( $u->is_personal || $u->is_community ) {
  # This if statement works for personal journals or communities
}
Edited 2009-10-28 20:44 (UTC)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2009-10-28 10:08 pm (UTC)(link)
You can see all of the available is_* in User.pm.