Bug 138152 - Improve sync job status reporting
Summary: Improve sync job status reporting
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3 M1   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-04-23 16:57 EDT by Eugene Kuleshov CLA
Modified: 2006-09-11 13:11 EDT (History)
0 users

See Also:


Attachments
suggested implementation (9.15 KB, patch)
2006-04-23 16:59 EDT, Eugene Kuleshov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2006-04-23 16:57:36 EDT
When synchronizing project that have number of local changes, status of the sync job is not very informative, because it show only total number of changes.  It will be very helpful to have separate numbers for incoming and outgoing changes.
Comment 1 Eugene Kuleshov CLA 2006-04-23 16:59:12 EDT
Created attachment 39260 [details]
suggested implementation

I wonder if this can make into 3.2. Thanks in advance.
Comment 2 Michael Valenta CLA 2006-04-24 10:25:04 EDT
Thanks for the patch. Unfortunately, it is not possible to include it in 3.2. Here'a a list of reason to justify this decision:

1) We have been asked to minimize string changes to those that are essential as the translators are already working on translations.
2) The separator used (";") would need to be translatable but is not.
3) Conflicting changes are not considered (i.e. the API you used for the model sync case would miss conflicting changes).
4) I didn't test it but I noticed that, for the old sync case, you performed an OR comparison where I think you should have done and AND.
5) we have two days to get code changes into 3.2 RC2 and after that the rules for getting changes in become more strict. Unfortunately, we have a full plate of things to do during that time.
Comment 3 Eugene Kuleshov CLA 2006-04-24 12:53:09 EDT
(In reply to comment #2)
> Thanks for the patch. Unfortunately, it is not possible to include it in 3.2.
> Here'a a list of reason to justify this decision:
> 
> 1) We have been asked to minimize string changes to those that are essential as
> the translators are already working on translations.
> 2) The separator used (";") would need to be translatable but is not.

Hmm. I wonder what it could be translated to?

> 3) Conflicting changes are not considered (i.e. the API you used for the model
> sync case would miss conflicting changes).

I thought that conflicting is just a mask aggregating both incoming and outgoing. Besides, there is still total number. So, you can get rough idea what part of that total is incoming and what is outgoing.

> 4) I didn't test it but I noticed that, for the old sync case, you performed an
> OR comparison where I think you should have done and AND.

You are right, it should be bitwise AND. However I wasn't able to see when RefreshSubscriberParticipantJob is called, so I implemented it just in case. Actual sync job is calling RefreshModelParticipantJob implementation.

> 5) we have two days to get code changes into 3.2 RC2 and after that the rules
> for getting changes in become more strict. Unfortunately, we have a full plate
> of things to do during that time.

This is just a cosmetic but very useful change. Also, no API changes.
Comment 4 Michael Valenta CLA 2006-04-24 13:59:28 EDT
If it wasn't for point 1 I would consider sunmitting it but I have double checked with the PMC and we are not supposed to make string changes unless we absolutely must.
Comment 5 Michael Valenta CLA 2006-06-13 15:34:12 EDT
Patch released to HEAD. Thanks again.
Comment 6 Eugene Kuleshov CLA 2006-06-13 15:38:23 EDT
By the way,  Michael, do you think it would be useful to add incoming/outgoing changes decorator to the icons on Synchronize view synchronizations dropdown?
Comment 7 Michael Valenta CLA 2006-06-13 15:53:08 EDT
I tend to work with a single pinned Workspace synchronization so I personnaly wouldn't find it helpful. However, I can see that if you used multiple pinned synchronizations, you would want a way to easily find those that have changes. You may want to look at bug 146075 as it is somewhat related (i.e. the view title could be made bold when new changes appear in the view). We've had some discussion  as to whether the sync view drop down is the right way to go or if it would be better to split each synchronization into a separate view instance. If that were done and bug 146075 were fixed as well, you would be able to see which Synchronizations had new changes in the view tabs.
Comment 8 Eugene Kuleshov CLA 2006-06-13 16:25:08 EDT
(In reply to comment #7)
> I tend to work with a single pinned Workspace synchronization so I personnaly
> wouldn't find it helpful. However, I can see that if you used multiple pinned
> synchronizations, you would want a way to easily find those that have changes.

Right. I have 6 pinned and having real trouble to see which ones has changes.

BTW, this patch probably does not cover job title, and all finished synchronization jobs look alike - "Sheduled Synchronize (Finished)" even so they do show working set name while job is running. Can you please address it?

> You may want to look at bug 146075 as it is somewhat related (i.e. the view
> title could be made bold when new changes appear in the view). We've had some
> discussion  as to whether the sync view drop down is the right way to go or if
> it would be better to split each synchronization into a separate view instance.
> If that were done and bug 146075 were fixed as well, you would be able to see
> which Synchronizations had new changes in the view tabs.

Hmm. I don't think it will help me because most of my synchronizations always have outgoing changes.
I also don't think it would be a good idea to force each synchronization into separate view. I simply don't have space on the screen where I can stick those views. 

It would be more convenient to be able to mix synchronizations from separate providers within single synchronization.
Comment 9 Michael Valenta CLA 2006-06-13 16:31:39 EDT
If there are issues you feel that need to be addressed, pleasse open bug reports for them.
Comment 10 Michael Valenta CLA 2006-09-11 13:11:43 EDT
I've added the following copyright to the files of this patch:

Eugene Kuleshov (eu@md.pp.ru) - Bug 138152 Improve sync job status reporting

Let me know if it should be something else.