twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
15.12k stars 1.52k forks source link

"Cannot compute column name for composite field metadata type" error #6033

Closed ijreilly closed 7 hours ago

ijreilly commented 3 weeks ago

https://twenty-v7.sentry.io/issues/5294015563/events/d839ba343b2e4cd1bf33a4e28b90153d/?environment=prod&project=4507072499810304&query=is%3Aunresolved+issue.priority%3A%5Bhigh%2C+medium%5D&referrer=next-event&statsPeriod=7d&stream_index=3

greptile-apps[bot] commented 3 weeks ago

To resolve the 'Cannot compute column name for composite field metadata type' error, update the computeColumnName function in compute-column-name.util.ts to correctly handle composite field metadata types. Ensure that the function includes logic to process these types appropriately. Example:

function computeColumnName(fieldMetadata: FieldMetadata): string {
  if (fieldMetadata.type === 'composite') {
    // Add logic to handle composite field metadata types
    return `${fieldMetadata.parent}.${fieldMetadata.name}`;
  }
  // Existing logic for other types
}

References

Edit Issue Bot Settings