445
446
def user_ids_affected_with_dupes(self):
446
447
"""Return all IDs of Persons affected by this bug and its dupes.
447
The return value is a Storm expression."""
450
And(BugAffectsPerson.person == Person.id,
451
BugAffectsPerson.affected,
452
Or(BugAffectsPerson.bug == self,
453
And(BugAffectsPerson.bug == Bug.id,
454
Bug.duplicateof == self.id))),
448
The return value is a Storm expression. Running a query with
449
this expression returns a result that may contain the same ID
450
multiple times, for example if that person is affected via
451
more than one duplicate."""
454
And(BugAffectsPerson.person == Person.id,
455
BugAffectsPerson.affected,
456
BugAffectsPerson.bug == self)),
458
And(BugAffectsPerson.person == Person.id,
459
BugAffectsPerson.bug == Bug.id,
460
BugAffectsPerson.affected,
461
Bug.duplicateof == self.id)))
458
464
def users_affected_with_dupes(self):