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

Introduce expressed fields #7692

Open
ijreilly opened this issue Oct 14, 2024 · 5 comments
Open

Introduce expressed fields #7692

ijreilly opened this issue Oct 14, 2024 · 5 comments
Assignees

Comments

@ijreilly
Copy link
Collaborator

We would like to offer the user the possibility to create field expressed as a function of other fields belonging to the same object (excluding relations).
For example, object Company has fields numberOfEmployees (type number) and salariesExpense (type number), we could introduce a field averageSalary that would be: salariesExpense / numberOfEmployees.
This field would be of type generated and built leveraging typeORM's asExpression as we did for the search.

In a first version

  • this setting would be accessible at field creation level step 2 (after selecting a field type (the above described field would be of type Number)).
  • the user would have to input their expression (we need to think of hints to help build the expression in the right format)
@ijreilly
Copy link
Collaborator Author

@FelixMalfait fyi

@Bonapara
Copy link
Member

Not 100% convinced by this feature from a product point of view at this stage. I think we need to build and agree on our global Compute fields strategy first to avoid introducing 3 different field types for formulas/compute fields.

@FelixMalfait
Copy link
Member

Called "formula" in Clay which I think is the most clear term
Screenshot 2024-10-24 at 08 12 13

@ijreilly
Copy link
Collaborator Author

@Bonapara @FelixMalfait is this on hold for now? i thought so from @Bonapara s input

@FelixMalfait
Copy link
Member

@ijreilly yes I just wanted you to log it but not prioritize it, thanks!

@twentyhq twentyhq deleted a comment from Bonapara Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants