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

API: Trigger formula not triggered if other added records fill this field explicitely #1370

Open
1 of 2 tasks
iexos opened this issue Jan 7, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@iexos
Copy link

iexos commented Jan 7, 2025

Describe the current behavior

Trigger formula does work if submitting records which do not contain this field. When adding another record in the set to add however, the trigger does not work for any of the records. This is quite unexpected to me.

Steps to reproduce

  1. Have table with Columns A and B, let B have a trigger formula "filled"
  2. Use addRecords with these fields:
[{
"A": 1,
"B": "explicit"
},
{
"A": 2
}]
  1. Result is
1	explicit
2	

Describe the expected behavior

I expect that the formula is triggered if the field is not included for the record, i.e.:

1	explicit
2	filled

Right now, I need to workaround by seperating entries which have this field and which don't.

Where have you encountered this bug?

Instance information (when self-hosting only)

  • Grist instance:
    • Version: 1.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant