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

Connect datatypes with components #764

Closed
TheSlimvReal opened this issue Apr 14, 2021 · 0 comments
Closed

Connect datatypes with components #764

TheSlimvReal opened this issue Apr 14, 2021 · 0 comments
Assignees
Labels
Type: Refactoring / Technical Enh. Technical Enhancement without changes for the user

Comments

@TheSlimvReal
Copy link
Collaborator

Each property of a entity is marked with a datatype in order to correctly save it to the database. This information is stored in a schema attribute of the class.

Currently, when configuring a list-view or a details-view, for each property, the component to display this property has to be named. Instead this information could be derived from the schema of the class. This should make the configuration file much smaller and less error-prone.
E.g.
Instead of writing

{
  "input": "text",
  "id": "name",
  "placeholder": "Name"
}

Providing name is sufficient.

To achieve this, a connection between datatypes and components for entity-list and entity-details (form-component) needs to be defined.

In same cases (attendance, age) it has to be evaluated, whether a new datatype should be added or if the component information is still added through the config.

@TheSlimvReal TheSlimvReal added Status: Ready to Work On Type: Refactoring / Technical Enh. Technical Enhancement without changes for the user labels Apr 14, 2021
@TheSlimvReal TheSlimvReal self-assigned this May 10, 2021
This was referenced May 11, 2021
@TheSlimvReal TheSlimvReal mentioned this issue Jun 7, 2021
2 tasks
sleidig pushed a commit that referenced this issue Jul 2, 2021
see #764 #552 #180 #826

EntitySchema holds information how an attribute can be displayed
EntitySchema holds information how an attribute can be edited
EntitySchemaDatatype provides a default component for displaying an data type
EntitySchemaDatatype provides a default component for editing an data type
EntityListComponent automatically fetches column information from schema if no other definition is found
FormComponent automatically fetches form field information from schema if no other definition is found
EntitySubrecord automatically fetches display and edit information from schema if no other definition is found
EntityList uses EntitySubrecord
Automatically create filters for properties using schema information
Update documentation
Automatically create (popup) form for entities -> Automatic PopUps #834
aam-digital-ci pushed a commit that referenced this issue Jul 2, 2021
# [2.52.0](2.51.1...2.52.0) (2021-07-02)

### Features

* connect datatypes with components to simplify config ([#817](#817)) ([4320781](4320781)), closes [#764](#764) [#552](#552) [#180](#180) [#826](#826) [#834](#834)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactoring / Technical Enh. Technical Enhancement without changes for the user
Projects
None yet
Development

No branches or pull requests

1 participant