G1 to G2 conversion script

kvdb

Joined: 2002-10-10
Posts: 29
Posted: Sun, 2003-06-01 12:59

Hi,

G2 development seems to have come to a halt. There are no big CVS checkins anymore. This could mean two things. Either the G2 core has become quite stable or nobody's working on it.

No matter what the reason is, I hope I found a way to stimulate testing (and thus development). I (and probably most people) am only testing G2 by inserting a few pictures and browsing around the gallery and think it's pretty stable.

G2 is not really getting any real-world testing with huge amounts of data. I would immediately deploy it on my webserver if I just had a script that would convert all my G1 data to G2. That way my users would really test G2.

From what I can remember that script will be written in the last development stage, just before the first official G2 release, say... 6 months? I can't wait anymore ;-)!

Could you (Bharat?) give us any thoughts on how you think this should be implemented?
As a php page? As an external script in say, python? Through gallery-remote?
Where should I start looking if I wanted to create such a script?
(disclaimer: i'm not saying I'll volunteer to write the official script as I'm already involved with 2 software projects, but well.. i'd like to try creating a quick hack on a rainy day)

Cheers,
Kees

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2003-06-01 21:44
kvdb wrote:
Hi,
G2 development seems to have come to a halt. There are no big CVS checkins anymore. This could mean two things. Either the G2 core has become quite stable or nobody's working on it.

We're making progress on multiple fronts right now.

  1. I've spent the past few months developing the PHPunit test harness which has stabilized the code base considerably and enabled me to find and fix a large number of cross-platform bugs.
  2. I've begun writing the G2 Developer Documentation which will hopefully enable others to actually understand what's going on in the code and bring in more module developers
  3. Ross is working on polishing the User Interface which is a critical part of determining the Theme API.

I've been holding off on feature work while we take care of the above issues since spending my time on additional features will not get us to the goal of parallelizing development (which is where we really get the big development performance increase).

Quote:
G2 is not really getting any real-world testing with huge amounts of data. I would immediately deploy it on my webserver if I just had a script that would convert all my G1 data to G2. That way my users would really test G2.

From what I can remember that script will be written in the last development stage, just before the first official G2 release, say... 6 months? I can't wait anymore ;-)!

Could you (Bharat?) give us any thoughts on how you think this should be implemented?
As a php page? As an external script in say, python? Through gallery-remote?
Where should I start looking if I wanted to create such a script?
(disclaimer: i'm not saying I'll volunteer to write the official script as I'm already involved with 2 software projects, but well.. i'd like to try creating a quick hack on a rainy day)

Amusingly enough, Jesse Mullan and I were talking about this on the #galler channel on irc.freenode.net last night. We were considering creating a new G2 module (so it would be written in PHP) that lets you import from an existing Gallery. Cool features that we'd want:

  1. It will import one album at a time, or many albums recursively
  2. It will copy the images from G1 into G2 or migrate (delete the G1 album when you create the G2 album)
  3. It will with remote G1s, as long as your remote G1 is configured properly.
  4. It will synchronize your G1 user database with your G2 user database.

Of course, in order for this to work people need to understand how to actually write G2 modules. Start by reading the documentation here:

http://gallery.sourceforge.net/docs.php

I'll be keeping those docs up to date as I add more to it.

At the moment I think the documentation is about 40% done and the PHPUnit test harness is about 80% done. In the meantime, it looks like Ross is perhaps 50% done with creating the first draft of the UI so hopefully those 3 things will come together over the next month and we can convert G2 from its existing state into a finely polished product. Having a migration script come into existence around that time would be a sweet bonus since then we'd be able to actually release an alpha at that point.

Thoughts?[/]

[/]

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2003-06-01 23:55

Four goals? This is going to take longer than two hours.