Bug 346966

Summary: More Options for Repository Refreshing
Product: [openSUSE] openSUSE 11.0 Reporter: Josh J <guitarist198>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FEATURE QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None CC: davejplater, forgotten_h13THG8RK1, jdsn, mstopka, mvidner, sreeves, wm
Version: Alpha 2   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Redesign Proposal/Mock of Configure Repositories page
Redesign Alternative for Configure Repositories page

Description Josh J 2007-12-07 19:31:45 UTC
It might be beneficial to have some more options for refreshing repositories.  Selecting auto-refresh slows software management down.  Manual refresh is a hassle because one has to enter the "Software Repositories" module just to refresh and then go into "Software Management" to install/update/remove software. 

Helpful options could be:
 * Auto-Refresh at certain times but certainly not when one opens the "Software   
   Management" Module.
      - This could be on certain days, or time of day, etc.
 * Manual Refresh should be accessible within the "Software Management" module.
      - While you are browsing software, you could use the filter combo-box to 
        select Repositories, right click a repository and select refresh.
Comment 1 Martin Vidner 2007-12-11 15:24:21 UTC
How about a daily/weekly cron job controlled by a sysconfig variable linked to a button in yast?
Comment 2 Josh J 2007-12-12 02:55:29 UTC
Created attachment 187071 [details]
Redesign Proposal/Mock of Configure Repositories page

I have attached a mockup of a possible redesign of the "Configure Repositories" page.  Whether a widget is enabled or disabled is not represented in the mockup, but I'm sure you can figure out where that would be.

  * Fix alignment of containers and groupboxes with right side of "Refresh Now" 
    button
  * Add "Refresh Schedule" Column
  * Enable repository from within the list
  * Enable column centered
  * Added Schedule Options
  * Manual refresh may be done on this page or in Software Management page.

I might end up doing a mock of the refresh option in the Software Management page if I get a chance.
Comment 3 Ladislav Slezák 2008-03-07 15:45:16 UTC
Added as feature #303517.
Comment 4 Mark Stopka 2008-03-07 16:34:44 UTC
I think current look of "Auto-Refresh" should be keeped. This should be only other option. This look is useful for Updates repository and other stuff, which you want to have actual as is possible.
Comment 5 Willem Meens 2008-03-12 09:56:04 UTC
Hi Josh,

The mockup looks very promising :)

There are two thought I would like to add when looking at the screenshot;

1) It could be confusing to people that the ADD / EDIT / DELETE buttons are so close to the schedule matrix. It seems be confusing because ADD / EDIT / DELETE does nothing with the schedule.

2) I can imagine the schedual matrix looks a bit intimedating to a novice user.
   Is it an idea to make an advanced schedule box and show a simple box with only a refresh every so many minutes/hous?

Any which way, this is an addition that will make many people happy! :)

Cheers,
  Wj
Comment 6 J. Daniel Schmidt 2008-07-18 14:26:35 UTC
Created attachment 228748 [details]
Redesign Alternative for Configure Repositories page 

Just to give you an alternative redesign.
To me the first one looked very crowded, even lot of setting widgets had duplicates. What about this one?

Note: the "Week" gets grayed out for daily and weekly settings and selecting multiple days is only possible if daily is selected.
Comment 7 Willem Meens 2008-07-18 15:03:32 UTC
One word :  WOW!  It looks perfect.. clean and all options are there to set.
Comment 8 J. Daniel Schmidt 2008-07-21 16:10:29 UTC
(In reply to comment #7 from Willem Meens)
> One word :  WOW!  It looks perfect.. clean and all options are there to set.

We could even remove the am/pm SelectionBox if we let the hour field accept values from 0-23 (would be consistent with cron values then).
Comment 9 Forgotten User h13THG8RK1 2010-09-08 11:40:51 UTC
This strategy for refreshing the repository cache seems to be a huge time saver for those of us that use zypper, or the graphical software manager, regularly.

Anyway, something to be wary of is that if the repo cache is too outdated, and some package versions were replaced by more recent ones, then this could create havoc during the installation procedure.

Remember that zypp downloads and installs package per package. So, if a package is missing and it was going to be installed as a dependency, zypp will only notice it after it has already installed a few others, and then all that sub-branch of the package family may be in jeopardy.

It is therefor important for repositories to agree on keeping old packages for a period of X days. And this utility shouldn't let the user defer the auto-refresh schedule beyond those X days (or, at least, strongly advise her against doing so).

Maybe there is already such a safety system in place. I dunno. I just saw no mentions it, so I thought of bringing it up.
Comment 10 Forgotten User h13THG8RK1 2010-09-08 11:47:27 UTC
With regard to the screenshots, is such configuratory minutia really necessary? What about just a combo-box with options like "every 2 days", "every 15 days", etc. You could have a "custom" option that would popup the yast2 cron tool, and let you do more esoteric schedules.

(If there is no such yast2 cron tool, just show those more advanced options in the form of a window when the user chooses "custom". And maybe try to keep the code abstract, so it can in the future form the basis for a systematic cron job tool.)