Create option for running scripts against non-current version

Bug #868197 reported by Colin Winning
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DB Version
New
Undecided
Unassigned

Bug Description

It would be useful to have an option to run scripts for a previous version. An example is current database version is 4.10 but some scripts have been added to a previous branch (4.9). These scripts from 4.9 will now never run.

I know this is probably a bit non-standard but would be a useful enhancement.

Revision history for this message
Adam Connelly (adam-rpconnelly) wrote : Re: [Bug 868197] [NEW] Create option for running scripts against non-current version

Can you explain the scenario a bit more. I'm just wondering why you
wouldn't just include the scripts in the next version, 4.11?

On 5 Oct 2011, at 10:25, Colin Winning <email address hidden> wrote:

> Public bug reported:
>
> It would be useful to have an option to run scripts for a previous
> version. An example is current database version is 4.10 but some scripts
> have been added to a previous branch (4.9). These scripts from 4.9 will
> now never run.
>
> I know this is probably a bit non-standard but would be a useful
> enhancement.
>
> ** Affects: dbversion
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to DB
> Version.
> https://bugs.launchpad.net/bugs/868197
>
> Title:
> Create option for running scripts against non-current version
>
> Status in DB Version:
> New
>
> Bug description:
> It would be useful to have an option to run scripts for a previous
> version. An example is current database version is 4.10 but some
> scripts have been added to a previous branch (4.9). These scripts from
> 4.9 will now never run.
>
> I know this is probably a bit non-standard but would be a useful
> enhancement.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dbversion/+bug/868197/+subscriptions

Revision history for this message
Colin Winning (colinwinning) wrote : RE: [Bug 868197] [NEW] Create option for running scripts against non-current version

Because they're attached to a particular release of the project. It's a long story but it’s just how we work.

We work off trunk and add scripts into a directory that relates to the next release version - 4.9. As we get ready to release this, we branch off. People continue to work on trunk and will add scripts in as necessary to the next release version - 4.10. Scripts may also go into the branch at the same time. If we have some devs working on trunk they'll update their database to 4.10 and when 4.9 is re-integrated they won't be able to run the scripts that were added in the branch because the database has moved onto 4.10. In this case you kind of need a "I know what I'm doing checkbox" to allow the devs to force run any new scripts from the 4.9 branch.

Does that make any sense?

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Adam Connelly
Sent: 06 October 2011 08:36
To: <email address hidden>
Subject: Re: [Bug 868197] [NEW] Create option for running scripts against non-current version

Can you explain the scenario a bit more. I'm just wondering why you wouldn't just include the scripts in the next version, 4.11?

On 5 Oct 2011, at 10:25, Colin Winning <email address hidden>
wrote:

> Public bug reported:
>
> It would be useful to have an option to run scripts for a previous
> version. An example is current database version is 4.10 but some
> scripts have been added to a previous branch (4.9). These scripts from
> 4.9 will now never run.
>
> I know this is probably a bit non-standard but would be a useful
> enhancement.
>
> ** Affects: dbversion
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to DB
> Version.
> https://bugs.launchpad.net/bugs/868197
>
> Title:
> Create option for running scripts against non-current version
>
> Status in DB Version:
> New
>
> Bug description:
> It would be useful to have an option to run scripts for a previous
> version. An example is current database version is 4.10 but some
> scripts have been added to a previous branch (4.9). These scripts from
> 4.9 will now never run.
>
> I know this is probably a bit non-standard but would be a useful
> enhancement.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dbversion/+bug/868197/+subscriptions

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/868197

Title:
  Create option for running scripts against non-current version

Status in DB Version:
  New

Bug description:
  It would be useful to have an option to run scripts for a previous
  version. An example is current database version is 4.10 but some
  scripts have been added to a previous branch (4.9). These scripts from
  4.9 will now never run.

  I know this is probably a bit non-standard but would be a useful
  enhancement.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbversion/+bug/868197/+subscriptions

Revision history for this message
Adam Connelly (adam-rpconnelly) wrote : Re: [Bug 868197] [NEW] Create option for running scripts against non-current version
Download full text (4.1 KiB)

Yeah, that makes sense. Now that I think about it, it may already just
work with the change you made to allow scripts to be added to a
version after it's been installed.

Can you try running dbversion create -v 4.9 and check whether it
already does what you want?

On 6 Oct 2011, at 09:45, Colin Winning <email address hidden> wrote:

> Because they're attached to a particular release of the project. It's a
> long story but it’s just how we work.
>
> We work off trunk and add scripts into a directory that relates to the
> next release version - 4.9. As we get ready to release this, we branch
> off. People continue to work on trunk and will add scripts in as
> necessary to the next release version - 4.10. Scripts may also go into
> the branch at the same time. If we have some devs working on trunk
> they'll update their database to 4.10 and when 4.9 is re-integrated they
> won't be able to run the scripts that were added in the branch because
> the database has moved onto 4.10. In this case you kind of need a "I
> know what I'm doing checkbox" to allow the devs to force run any new
> scripts from the 4.9 branch.
>
> Does that make any sense?
>
> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Adam Connelly
> Sent: 06 October 2011 08:36
> To: <email address hidden>
> Subject: Re: [Bug 868197] [NEW] Create option for running scripts against non-current version
>
> Can you explain the scenario a bit more. I'm just wondering why you
> wouldn't just include the scripts in the next version, 4.11?
>
>
> On 5 Oct 2011, at 10:25, Colin Winning <email address hidden>
> wrote:
>
>> Public bug reported:
>>
>> It would be useful to have an option to run scripts for a previous
>> version. An example is current database version is 4.10 but some
>> scripts have been added to a previous branch (4.9). These scripts from
>> 4.9 will now never run.
>>
>> I know this is probably a bit non-standard but would be a useful
>> enhancement.
>>
>> ** Affects: dbversion
>> Importance: Undecided
>> Status: New
>>
>> --
>> You received this bug notification because you are subscribed to DB
>> Version.
>> https://bugs.launchpad.net/bugs/868197
>>
>> Title:
>> Create option for running scripts against non-current version
>>
>> Status in DB Version:
>> New
>>
>> Bug description:
>> It would be useful to have an option to run scripts for a previous
>> version. An example is current database version is 4.10 but some
>> scripts have been added to a previous branch (4.9). These scripts from
>> 4.9 will now never run.
>>
>> I know this is probably a bit non-standard but would be a useful
>> enhancement.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/dbversion/+bug/868197/+subscriptions
>
> --
> You received this bug notification because you are subscribed to the bug report.
> https://bugs.launchpad.net/bugs/868197
>
> Title:
> Create option for running scripts against non-current version
>
> Status in DB Version:
> New
>
> Bug description:
> It would be useful to have an option to run scripts for a previous
> version. An example is current database version is 4.10 but ...

Read more...

Revision history for this message
Colin Winning (colinwinning) wrote : RE: [Bug 868197] [NEW] Create option for running scripts against non-current version
Download full text (5.3 KiB)

Now that would be excellent if it did that. I'll give it a go and let you know.

I'm also just adding some logging in just now. I'll push it up as another branch and you can have a look. I'm sure I've probably spoilt your nice architecture by adding this in!! :-)

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Adam Connelly
Sent: 06 October 2011 10:56
To: <email address hidden>
Subject: Re: [Bug 868197] [NEW] Create option for running scripts against non-current version

Yeah, that makes sense. Now that I think about it, it may already just work with the change you made to allow scripts to be added to a version after it's been installed.

Can you try running dbversion create -v 4.9 and check whether it already does what you want?

On 6 Oct 2011, at 09:45, Colin Winning <email address hidden>
wrote:

> Because they're attached to a particular release of the project. It's
> a long story but it’s just how we work.
>
> We work off trunk and add scripts into a directory that relates to the
> next release version - 4.9. As we get ready to release this, we branch
> off. People continue to work on trunk and will add scripts in as
> necessary to the next release version - 4.10. Scripts may also go into
> the branch at the same time. If we have some devs working on trunk
> they'll update their database to 4.10 and when 4.9 is re-integrated
> they won't be able to run the scripts that were added in the branch
> because the database has moved onto 4.10. In this case you kind of
> need a "I know what I'm doing checkbox" to allow the devs to force run
> any new scripts from the 4.9 branch.
>
> Does that make any sense?
>
> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf
> Of Adam Connelly
> Sent: 06 October 2011 08:36
> To: <email address hidden>
> Subject: Re: [Bug 868197] [NEW] Create option for running scripts
> against non-current version
>
> Can you explain the scenario a bit more. I'm just wondering why you
> wouldn't just include the scripts in the next version, 4.11?
>
>
> On 5 Oct 2011, at 10:25, Colin Winning <email address hidden>
> wrote:
>
>> Public bug reported:
>>
>> It would be useful to have an option to run scripts for a previous
>> version. An example is current database version is 4.10 but some
>> scripts have been added to a previous branch (4.9). These scripts
>> from
>> 4.9 will now never run.
>>
>> I know this is probably a bit non-standard but would be a useful
>> enhancement.
>>
>> ** Affects: dbversion
>> Importance: Undecided
>> Status: New
>>
>> --
>> You received this bug notification because you are subscribed to DB
>> Version.
>> https://bugs.launchpad.net/bugs/868197
>>
>> Title:
>> Create option for running scripts against non-current version
>>
>> Status in DB Version:
>> New
>>
>> Bug description:
>> It would be useful to have an option to run scripts for a previous
>> version. An example is current database version is 4.10 but some
>> scripts have been added to a previous branch (4.9). These scripts
>> from
>> 4.9 will now never run.
>>
>> I know this is probably a bit non-...

Read more...

Revision history for this message
Adam Connelly (adam-rpconnelly) wrote : Re: [Bug 868197] [NEW] Create option for running scripts against non-current version
Download full text (6.4 KiB)

Sounds good - be prepared for some really anal comments!

It'll probably be the weekend before I can take a look. Let me know if
the version thing works.

Cheers,
Adam

On 6 Oct 2011, at 11:45, Colin Winning <email address hidden> wrote:

> Now that would be excellent if it did that. I'll give it a go and let
> you know.
>
> I'm also just adding some logging in just now. I'll push it up as
> another branch and you can have a look. I'm sure I've probably spoilt
> your nice architecture by adding this in!! :-)
>
> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Adam Connelly
> Sent: 06 October 2011 10:56
> To: <email address hidden>
> Subject: Re: [Bug 868197] [NEW] Create option for running scripts against non-current version
>
> Yeah, that makes sense. Now that I think about it, it may already just
> work with the change you made to allow scripts to be added to a version
> after it's been installed.
>
> Can you try running dbversion create -v 4.9 and check whether it already
> does what you want?
>
>
> On 6 Oct 2011, at 09:45, Colin Winning <email address hidden>
> wrote:
>
>> Because they're attached to a particular release of the project. It's
>> a long story but it’s just how we work.
>>
>> We work off trunk and add scripts into a directory that relates to the
>> next release version - 4.9. As we get ready to release this, we branch
>> off. People continue to work on trunk and will add scripts in as
>> necessary to the next release version - 4.10. Scripts may also go into
>> the branch at the same time. If we have some devs working on trunk
>> they'll update their database to 4.10 and when 4.9 is re-integrated
>> they won't be able to run the scripts that were added in the branch
>> because the database has moved onto 4.10. In this case you kind of
>> need a "I know what I'm doing checkbox" to allow the devs to force run
>> any new scripts from the 4.9 branch.
>>
>> Does that make any sense?
>>
>> -----Original Message-----
>> From: <email address hidden> [mailto:<email address hidden>] On Behalf
>> Of Adam Connelly
>> Sent: 06 October 2011 08:36
>> To: <email address hidden>
>> Subject: Re: [Bug 868197] [NEW] Create option for running scripts
>> against non-current version
>>
>> Can you explain the scenario a bit more. I'm just wondering why you
>> wouldn't just include the scripts in the next version, 4.11?
>>
>>
>> On 5 Oct 2011, at 10:25, Colin Winning <email address hidden>
>> wrote:
>>
>>> Public bug reported:
>>>
>>> It would be useful to have an option to run scripts for a previous
>>> version. An example is current database version is 4.10 but some
>>> scripts have been added to a previous branch (4.9). These scripts
>>> from
>>> 4.9 will now never run.
>>>
>>> I know this is probably a bit non-standard but would be a useful
>>> enhancement.
>>>
>>> ** Affects: dbversion
>>> Importance: Undecided
>>> Status: New
>>>
>>> --
>>> You received this bug notification because you are subscribed to DB
>>> Version.
>>> https://bugs.launchpad.net/bugs/868197
>>>
>>> Title:
>>> Create option for running scripts against non-current version
>>>
>>> Status in DB Ve...

Read more...

Revision history for this message
Colin Winning (colinwinning) wrote :

OK. Tried forcing it to run tasks for the non-current database version and it doesn't work correctly. It checks what the current database version and only runs tasks for that and above. So an example:

Run with -v "4.9"
Current db version = 4.10

Only looks for tasks for 4.10 and above.

The desired behaviour would be to force it to run any new tasks for 4.9 and ignore the fact it's at 4.10.

Revision history for this message
Adam Connelly (adam-rpconnelly) wrote : Re: [Bug 868197] Re: Create option for running scripts against non-current version

Ah well, worth a shot. Fancy updating the case with some example command usage?

On 11 Oct 2011, at 09:45, Colin Winning <email address hidden> wrote:

> OK. Tried forcing it to run tasks for the non-current database version
> and it doesn't work correctly. It checks what the current database
> version and only runs tasks for that and above. So an example:
>
> Run with -v "4.9"
> Current db version = 4.10
>
> Only looks for tasks for 4.10 and above.
>
> The desired behaviour would be to force it to run any new tasks for 4.9
> and ignore the fact it's at 4.10.
>
> --
> You received this bug notification because you are subscribed to DB
> Version.
> https://bugs.launchpad.net/bugs/868197
>
> Title:
> Create option for running scripts against non-current version
>
> Status in DB Version:
> New
>
> Bug description:
> It would be useful to have an option to run scripts for a previous
> version. An example is current database version is 4.10 but some
> scripts have been added to a previous branch (4.9). These scripts from
> 4.9 will now never run.
>
> I know this is probably a bit non-standard but would be a useful
> enhancement.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dbversion/+bug/868197/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.