apex-dev-tools / apex-ls

Apex language server library
Other
2 stars 1 forks source link

Derived field during refresh may result in false positives #190

Closed kjonescertinia closed 1 year ago

kjonescertinia commented 1 year ago

When an SObject definition is updated we run a derived field handler to create summary fields after the SObjects have been constructed. This is needed as summary fields can cross reference to other SObjects. The handling of this takes a list of created SObjects.

When an SObject is updated the created sobject list only contains the SObject being updated. This results in the lookup of related fields to fail if the derived field is referencing a SObject that is not being updated at that time.