Open Bug 432910 Opened 16 years ago Updated 2 months ago

Mid-Air Collision checking for Bug.update()

Categories

(Bugzilla :: WebService, enhancement)

3.1.4
enhancement
Not set
normal

Tracking

()

People

(Reporter: mkanat, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Implement an optional parameter for the Bug.update() WebService call, called check_collision, which takes a date.

If this is specified and there's been a mid-air collision since that time, we will return an item called 'collision' that is a hash representing the changes since that time and who made them.
As I started to implement this, I realized that it was entirely handled by bug 424079--that is, once we have get_activity, we can actually just call it directly from Bug.update() when there's a midair collision. So I attached the code that I had for this to bug 424079 for nelwahar to add in to his code.
Depends on: 424079
We are going to branch for Bugzilla 4.4 next week and this bug is either too invasive to be accepted for 4.4 at this point or shows no recent activity. The target milestone is reset and will be set again *only* when a patch is attached and approved.

I ask the assignee to reassign the bug to the default assignee if you don't plan to work on this bug in the near future, to make it clearer which bugs should be fixed by someone else.
Target Milestone: Bugzilla 4.4 → ---
Assignee: mkanat → webservice
Attached patch 432910_V1.patchSplinter Review
I developed this for the Mylyn Bugzilla REST API connector.
Attachment #816342 - Flags: review?(dkl)
Comment on attachment 816342 [details] [diff] [review]
432910_V1.patch

Review of attachment 816342 [details] [diff] [review]:
-----------------------------------------------------------------

Sorry for taking so long to get to this :( Unfortunately there is some bit rot and needs to be updated. Let me know if you no longer want to work on this as well and I can take it over.

dkl

::: Bugzilla/WebService/Bug.pm
@@ +3868,4 @@
>  
>  =item REST API call added Bugzilla B<5.0>.
>  
> +=item Add Returnfield "collision" in Bugzilla B<5.0>.

s/collision/collisions/
Attachment #816342 - Flags: review?(dkl) → review-
(In reply to David Lawrence [:dkl] from comment #4)
> Comment on attachment 816342 [details] [diff] [review]
> 432910_V1.patch
> 
> Review of attachment 816342 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Sorry for taking so long to get to this :( Unfortunately there is some bit
> rot and needs to be updated. Let me know if you no longer want to work on
> this as well and I can take it over.
> 
> dkl

It would be great if you continue with this.

Frank

Please, is this still an issue?

For what it's worth: I do often encounter reported mid-air collisions (with Bugzilla for FreeBSD) however to the best of my recollection, there has never been a meaningful report.

In the attached example, 'Submit my changes anyway' caused nothing to be overwritten (neither of the cc recipients were removed). If there's nothing to be overwritten, why the report?

Attachment #9291996 - Attachment description: Screenshot: a reported collisionca → Screenshot: a reported collision

(In reply to Graham Perrin from comment #6)

In the attached example, 'Submit my changes anyway' caused nothing to be overwritten (neither of the cc recipients were removed). If there's nothing to be overwritten, why the report?

Because the changes made may influence your changes as well so you are given a chance to change yours.

Attachment #9383074 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: