Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Start trying to implement dynamical forms alike Fobi #5

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sveetch
Copy link
Member

@sveetch sveetch commented Jan 26, 2024

Fobi replacement study

This is a study and research, don't merge it.

Goal is to make dynamical forms alike Fobi so we can drop it.

Resume

  • Controller model represent a form controller;
  • Controller model holds Slots;
  • Slot model represent a field (and possibly further other kind like buttons or text);
  • Controller form will save a valid data submit into an Entry;
  • Entry model store the user submitted data;

Technically

  • Controller form object is built on the go;
  • Since of dynamical nature of Controller form, Entry define a generic column structure
    where the data is stored in a JSON field;
  • Slot kinds will be a set of slot pre definition which defines field options and also
    stuff for crispy helper and how to manage data;

Problematics

  • Since user submitted data is stored as JSON and Entry model is a generic holder for
    many various controllers, how to manage stored data when controller is modified ?
    Like a Controller which have A and B fields, some user submitted data has already
    been stored but then controller is modified to remove A field and include a new
    one C ? Then what if further a field A is added again but with different kind or
    goal ?
  • How to implement and manage title/label/etc.. translations ?

@sveetch sveetch changed the title [NEW] [WIP] Start trying to implement dynamical forms alike Fobi WIP: Start trying to implement dynamical forms alike Fobi Jan 26, 2024
@sveetch sveetch changed the title WIP: Start trying to implement dynamical forms alike Fobi Draft: Start trying to implement dynamical forms alike Fobi Jan 26, 2024
@sveetch sveetch added the enhancement New feature or request label Jan 26, 2024
@sveetch sveetch marked this pull request as draft January 26, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant