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

Allow use of AI fields in view calculations. #15325

Merged

Conversation

samwho
Copy link
Collaborator

@samwho samwho commented Jan 8, 2025

Description

This PR allows you to group by AI field types in calculation views.

In the process of working on this, I noticed we're calling out to the LLM twice when saving a row, so I've removed the duplicate work.

Companion pro PR: https://github.com/Budibase/budibase-pro/pull/350/files

Addresses

Launchcontrol

  • You can now use AI fields as group-by fields in calculation views.

Copy link

linear bot commented Jan 8, 2025

Copy link

qa-wolf bot commented Jan 8, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/m labels Jan 8, 2025
@samwho samwho marked this pull request as ready for review January 8, 2025 17:40
@samwho samwho requested a review from a team as a code owner January 8, 2025 17:40
@samwho samwho requested review from adrinr and removed request for a team January 8, 2025 17:40
@@ -123,7 +123,7 @@ export interface AIFieldMetadata extends BaseFieldSchema {
operation: AIOperationEnum
columns?: string[]
column?: string
categories?: string[]
categories?: string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? Is this a comma separated string or something like this, now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has always been comma separated. It being a string array on the type was a mistake.

@samwho samwho enabled auto-merge January 9, 2025 11:47
@samwho samwho merged commit b85b242 into master Jan 9, 2025
20 checks passed
@samwho samwho deleted the budi-8833-allow-ai-column-to-be-used-in-view-calculations branch January 9, 2025 11:54
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants