Locking bugs temporarily?

Gervase Markham gerv at mozilla.org
Mon Feb 27 12:03:57 UTC 2012


On 27/02/12 10:41, Frédéric Buclin wrote:
> Le 27. 02. 12 10:41, Gervase Markham a écrit :
>> mid-air needs to appear on the screen of the _other_ guy trying to
>> change the bug - the real person. That means, I need to have a "lock" or
>> something on the bug while I'm changing it, so that when the lock is
>> released, _their_ change fails.
> 
> I don't see why BzAPI should have a higher priority on someone else's
> changes. You are not the only one to use remote clients to interact with
> Bugzilla, and the other client would have the same problem as you. So if
> you come after the other user, *you* should get the midair collision,
> not the other user.

There appears to be some confusion here. My question is not about BzAPI,
although part of the discussion with Max turned to what the BzAPI does.

My question is more about my Sync extension. The reason the changes made
by this extension need to have priority is that they are automatic
syncings from another system, not in real time. I can't go back to that
other system and say "you know the guy who committed a change 5 minutes
ago? Get him back from his tea break, put him in front of a computer and
get him to resolve this conflict". However, I can get the guy who is
making a change in the 1 or 2 seconds between me requesting a copy of
the bug data and me writing it - because he's still sitting at his
computer, in front of a system I control (Bugzilla).

So Sync changes need to always succeed, which means the real-life user
has to get the mid-air.

> About GET_LOCK, depending on how it's used, you could easily block all
> changes to a single bug, if this lock isn't released for some reason. It
> sounds like a come back of LOCK TABLES to me, though not exactly the
> same thing.

I wonder if it's possible to make the locks automatically time out after
a certain length of time?

Gerv

_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla


More information about the developers mailing list