glpi-project / plugins

GLPI Plugin Directory
http://plugins.glpi-project.org
21 stars 19 forks source link

Migration strategy for the new 'contributor' relation between GLPi Plugins Users and GLPi Plugins #40

Open ghost opened 8 years ago

ghost commented 8 years ago

Slowly migrating to the future, Authors will now be GLPi Plugins users, here is information I wrote for this refactoring : Mind that at the same time, the project is moving to Laravel, see #39

First part, transformation of the data model,

Modification of the web app according to that

Having only 'contributors' ; no more 'authors' meaning that the 'author' table is going to dissappear.

List of angular controllers involving data from author table (You know what i mean)

authors.js author.js author_plugins.js

List of PHP controllers involving data from/related to author table

Author

I suggest that the replacement strategy take place in that order :

Once a registered user claims his authorship on known plugins.

We receive a request on the GLPi mailbox, saying that user X claims being user Y.

If we accept the request, we are going to copy the realname of the known author in the realname field of the asking author, we are going to replace the user_id of the known author by the one of the requesting author, for every plugin_contributor entry. We can finally delete the user table entry corresponding to the known original author.