Modify

Ticket #756 (closed defect: invalid)

Opened 6 years ago

Last modified 3 years ago

When installing a new package EBox::MigrationBase assumess always that his version is zero

Reported by: javier.amor.garcia@… Owned by: juruen@…
Milestone: Component: base
Severity: normal Keywords:
Cc:

Description

THe version is retrevied from a gconf key, if there isn't the entry it is assumed to be zero. (see EBox::MigrationBase::_checkCurrentGConfVersion for details)

THis means that a freshly installed module should pass by all migration stages which can be a good source of bugs and inconsistenvies

Attachments

Change History

comment:1 Changed 6 years ago by juruen@…

That's the expected behaviour.

I cannot see how a migration script could cause inconsistencies unless it is broken.

Migration scripts might be used to either:

  • Adapt older data model into a newer one (No previous data, no actions are taken apart from marking the current data version. Note that not marking data model version actually is a source of bugs and inconsistencies)
  • Populate with new data which do not depends on previous data.

Please provide an example of script which is not broken and causes data inconsistency for further discussion.

comment:2 Changed 6 years ago by juruen@…

If necessary we could trigger the execution of the migration scripts on software upgrades as long as we set the current data model in fresh installations.

comment:3 Changed 6 years ago by ejhernandez@…

This issue may arise from the preconfigured data in a model. That problem comes from MIME and Extension filter models which requires some preconfigured data and it may cause inconsistencies.

comment:4 Changed 4 years ago by juruen@…

  • Status changed from new to closed
  • Resolution set to invalid
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.