Ticket #1452 (closed enhancement: fixed)

Opened 7 years ago

Last modified 6 years ago

Provide an easy way to drive the updater for 3rd party update sites

Reported by: dscho Owned by: dscho
Priority: minor Milestone: imagej2-b7-ndim-data
Component: Updater Version:
Severity: minor Keywords:
Cc: melissa@…, ctrueden@… Blocked By:
Blocking: #1901

Description

We want to offer easy uploading for projects such as Bio-Formats. This means that we should not require a graphical upload but provide a scriptable way, such as the command-line updater.

A couple of issues need to be addressed for this to be convenient, though:

  • It should be easy to upload/remove from a given working directory, i.e. upload everything that is new (including new files) and remove everything that is no longer there
  • We need to make sure that cross-site dependencies, such as IJ2 depending on BF depending on IJ1 are handled gracefully.

Change History

comment:2 Changed 7 years ago by curtis

  • Component changed from ij-core to ij-updater

comment:3 Changed 6 years ago by dscho

To accomplish this target, we need to extend the 'upload' subcommand of the command-line updater to take a --update-site= argument and automatically assign this update site to all the files passed via that command line. That way, we can glob all the to-be-added files, even if they haven't been uploaded before.

comment:4 Changed 6 years ago by bdezonia

  • Milestone changed from imagej2-b7-ndim-data to imagej2-b8-analysis

comment:5 Changed 6 years ago by dscho

One enhancement relevant to this ticket is that you can now specify which upload site you want to upload to. This will upload all specified files to the given update site, even if they are new.

There is not yet a mode to force shadowing (i.e. uploading components to update sites that will then override other update sites' components), though.

comment:6 Changed 6 years ago by dscho

The new upload-complete-site command will help, I am sure. There is no mode yet to force-shadow existing update sites' files with overriding ones (think: shadowing a stable loci_plugins.jar from an unstable update site), but we're slowly getting there: 8b7bcce95fef6254b829d7dbab421454d1d2d816

comment:7 Changed 6 years ago by dscho

  • Status changed from new to closed
  • Resolution set to fixed

With f1103cf3f15658e42eebd6d9fc7c69aa9ffcc8c4 I declare this issue closed. I would just wish that others would work as hard for my wishes as I do for theirs.

comment:8 Changed 6 years ago by dscho

This actually needed a bit more work, including adding a --simulate option. See the four commits leading up to d0d383ca116371ef9de6ccc5d8b4e370a3023835. Now it is truly fixed (and was used to upload ImageJ itself, tagged as uploaded-2013-04-11).

comment:9 Changed 6 years ago by bdezonia

  • Blocking 1901 added; 1347 removed

comment:10 Changed 6 years ago by bdezonia

  • Milestone changed from imagej2-b8-analysis to imagej2-b7-ndim-data

comment:11 Changed 6 years ago by dscho

In a blatant move to side-step my educative exercise to let the people most interested in a certain feature take care of making said feature a reality instead, Curtis went ahead and set up a Jenkins job:

 http://jenkins.imagej.net/view/All/job/Bio-Formats-ImageJ-daily/

and added the corresponding update site to the list of update sites presented in the updater's site dialog:

 http://fiji.sc/index.php?title=List_of_update_sites&curid=1690&diff=8451&oldid=8384

Thanks, Curtis.

Note: See TracTickets for help on using tickets.