| Summary: | [operations] - "auth fail" task stay on the operations view after being removed | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Susan McCourt <susan> | ||||||||
| Component: | Client | Assignee: | Malgorzata Janczarska <malgorzata.tomczyk> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | ken_walker | ||||||||
| Version: | 0.4 | Flags: | Szymon.Brandys:
review+
ken_walker: review+ |
||||||||
| Target Milestone: | 0.4 RC3 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Susan McCourt
Created attachment 209634 [details]
screenshot
You can replicate this with any authenticating git operation (not just clone). Here's a screenshot after a pull.
This is a problem with synchronization of operations page with the server. This operations was in fact deleted, but somehow information about it didn't get to UI and it wasn't removed from the view. There are two problems here to solve: 1. Find out why wasn't UI notified and fix it 2. Find out why deleting not existing task returns 500, not 404, and change UI so it removes the task from the view on 404 I haven't seen this for a while, maybe some fixes in meantime fixed it. I expect some more changes in this area at Bug 365917, maybe I'll try to do those bugs together. Updating the subject of the bug because the real problem here is that operations page did not remove the operation from the view, even when the operation was removed from server. In theory every time operation is removed from the server every longpolling request is notified and updates the operations list. Here probably the notification wasn't send. Created attachment 211392 [details]
Fixing notify about deleted.
Let me remind that the problem was not that the task wasn't removed on the server, but the update was not send to the Operations site that tracks changes by longpolling. Deleted tasks are no longer stored on the server site, so we can't track them though longpolling just the same as updated operations. For the sake of longpolling I stored the last deleted operations ids so that we can notify the Operations page what tasks where removed.
There where two problems here:
1. We always notified about tasks that where just removed, not about tasks that where removed from the last notification of longpolling
2. When longpolling request just came we checked if there where any changes since the last response was send, separately for updated tasks and deleted tasks. But if there where any changes in updated tasks we didn't send the deleted changes with them.
Created attachment 211406 [details]
patch generated from Orion
I believe the code looks good. Can't get it to fail with a message in my list pulling multiple repos. As a project lead I +1 this for RC3 provided it is reviewed by Szymon. Fixed with d44728975060494b8ec3cce254d0bd9b60434651. |