strapi / rfcs

RFCs for Strapi future changes
70 stars 33 forks source link

Add Schema Load Lifecycle RFC #15

Open diogotcorreia opened 4 years ago

diogotcorreia commented 4 years ago

Addresses issue https://github.com/strapi/strapi/issues/5972

As requested, here goes my RFC about the schema load lifecycle.

Preview Link: https://github.com/diogotcorreia/rfcs/blob/0005-schema-load-lifecycles/rfcs/0005-schema-load-lifecycles.md

alexandrebodin commented 4 years ago

Hi @diogotcorreia can you add a link to the preview of the RFC in the description plz :)

diogotcorreia commented 4 years ago

Done :)

alexandrebodin commented 4 years ago

Thank you for this RFC @diogotcorreia. I will review it in details. Just to give you more info, we are planning on refactor the DB layer a lot before the end of year and we will certainly support some sort of schema lifecycles to do any customization. If we were to implement something now be aware we will probably break it for Strapi v4 :)

alexandrebodin commented 4 years ago

Thanks for this RFC.

Here are somme comments:

derrickmehaffy commented 4 years ago

some way to update the process of database table creation (future versions)

@alexandrebodin can you expand on this suggestion?

diogotcorreia commented 4 years ago

@alexandrebodin Updated RFC in response to your comments

alexandrebodin commented 4 years ago

Thanks for the improvements !

I think the lifecycles arguments should be passed as an object so we can make it evolve without breaking changes and have potentially different infos per connectors.

Other stuff I would like to see (to answer @derrickmehaffy)

There are a lot of possible events. I need to review our process but here is what comes to my mind:

Once we define the exact events we can define the APIs for each of them

strapi-cla commented 3 years ago

CLA assistant check
All committers have signed the CLA.