twomice / com.joineryhq.jsumfields

Provides additional fields under the Summary Fields framework.
Other
1 stars 10 forks source link

API support for related contribution fields #24

Open chrisgaraffa opened 10 months ago

chrisgaraffa commented 10 months ago

I've been debugging an issue where Related and "Combined contact & related" fields for a household aren't being updated when the SumFields.Gendata api is being called.

Based on the implementation of _jsumfields_generate_data_based_on_current_data and what's written in DEVNOTES.md, it seems like this is because there's no jsumfields_update_sql defined for them.

Is this a planned feature, or something that a PR would be accepted for if we had funding for it?

twomice commented 10 months ago

Thanks @chrisgaraffa .

Quick answer: Yes, a PR would be much appreciated!

Longer answer:

Based on your description of the bad behavior, your description of the cause sounds correct.

In other words:

You're right, it's an oversight that some fields using jsumfields_extra don't also make use of jsumfields_update_sql, and that would explain the behavior you're reporting.