Forest Admin is a platform to administrate your business operations efficiently; it provides powerful features to ease data navigation and implement high level views.
When designing databases and APIs, the way to go is usually to push for normalization. This means ensuring there is no redundancy of data (all data is stored in only one place), and that data dependencies are logical.
On the other hand, graphical user interfaces usually need duplication and shortcuts to be user-friendly.
To bridge that gap, Forest Admin allows adding, moving, removing, and overriding behaviors from fields.

Minimal example

from forestadmin.datasource_toolkit.decorators.computed.types import ComputedDefinition
from forestadmin.datasource_toolkit.interfaces.fields import PrimitiveType
from forestadmin.datasource_toolkit.context.collection_context import CollectionCustomizationContext
async def get_user_full_name(records: List[RecordsDataAlias], context: CollectionCustomizationContext):
return [
f"{record['firstName']} {record['lastName']}" for record in records
agent.customize_collection("User").register_computed("fullName", ComputedDefinition(
dependencies=["firstName", "lastName"],
# replaceFieldWriting not Handled yet
# agent.customize_collection("User").get_field("fullName")
# addFieldValidation not Handled yet
# agent.customize_collection("User").get_field("fullName")
# emulateFieldSorting not Handled yet
# agent.customize_collection("User").get_field("fullName")