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

Evaluate moving all NodeType and NodeTypeFields persistance to stateless and static configuration files #14

Closed
ambroisemaupate opened this issue Sep 18, 2024 · 2 comments · Fixed by #36, #40 or #41
Assignees
Labels
2.5 enhancement New feature or request

Comments

@ambroisemaupate
Copy link
Member

ambroisemaupate commented Sep 18, 2024

Today Roadiz store its node-type and node-type-fields in 3 different locations:

  • node_type and node_type_field database tables
  • NSXxxxXxxx generated node-source entity
  • src/Resources/config/XxxxxXxxx.json node-type definition file for migration between environments

This leads into migration issues between developer inside the same project, and between local and remote environments.

We should evaluate removing node-type and fields from database and only load these data from static files to :

  • render NodeSource forms
  • generate NSXxxxxXxxx PHP files
  • generate Doctrine migration on NodeSource table
  • Switch from JSON to YAML for NodeType declaration files and stick to Symfony style
  • Keep an administrable Decoration system to alter node-type and node-type-field properties for non-dev users
  • etc
@ambroisemaupate ambroisemaupate added the enhancement New feature or request label Sep 18, 2024
@ambroisemaupate ambroisemaupate self-assigned this Jan 16, 2025
@eliot488995568 eliot488995568 linked a pull request Feb 4, 2025 that will close this issue
@ambroisemaupate
Copy link
Member Author

REopened, we have to generate the last migration to remove NodeType table

@eliot488995568 eliot488995568 linked a pull request Feb 10, 2025 that will close this issue
@eliot488995568
Copy link
Collaborator

@ambroisemaupate We need to do a backport on version 2.4 of the command to export the node types to file, add the associated serialization groups and add the mention of depreacated on the method and useless file.

@eliot488995568 eliot488995568 linked a pull request Feb 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment