is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#1018 closed task (fixed)

we should avoid to call installers several times

Reported by: laurentj Owned by: laurentj
Priority: highest Milestone: Jelix 1.2 beta
Component: jelix:installer Version: 1.1.3
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

The current install system call installer for each entry points, and installers should check if their tables are already installed for the given db profile.

This is not enough, and not very sexy, because we call the installer for each entry point, although it is not necessary for most of case. But for some modules, the criterias to call or not the installer are more than the entry point name + db profile. For example, for the authdb module, the installer should be call only for each auth configuration, not for each entry point.

A solution:

  • An installer should provide a method which return an identifier of the installation. Typically, this identifier could be generate from the entry point name, and/or from the db profile and/or any other useful criteria specific to the module
  • This method is called for each entry point. The returned identifier is checked: if it does not exist in the installer.ini, then the installer is called and the identifier stored in the installer.ini.

Change History (2)

comment:1 Changed 12 years ago by laurentj

  • Description modified (diff)

comment:2 Changed 12 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.