When creating a view of Google Calendar Event entities, only the base fields are exposed to Views. Any custom fields added to the Event entity are missing. The attached patch fixes the issue.

CommentFileSizeAuthor
google_calendar-views.patch578 bytesspencerbrooks

Comments

spencerbrooks created an issue. See original summary.

rivimey’s picture

Status: Needs review » Postponed (maintainer needs more info)

I have had a look at this as part of my other changes, and am a bit confused, because almost all other content entities I could see do include the line that this patch removes. It therefore feels unsafe to apply the patch. If someone can explain why this change is correct I can review this again.

spencerbrooks’s picture

There's not a ton of documentation I can find on that specific annotation, but field_data generally refers to revisions, which aren't supported by the Google Calendar Event entity. Additionally, the referenced google_calendar_event_field_data table doesn't actually exist in the database.

You can reproduce this by adding a custom field to your Google Calendar Event entity, and then creating a view with a base table of Google Calendar Event. You won't be able to see your custom field in the fields list until you remove that line.

rivimey’s picture

Status: Postponed (maintainer needs more info) » Needs review

Thanks for the info. I'll have another look.

  • rivimey committed d048e76 on 8.x-1.x authored by spencerbrooks
    Issue #3045252 by spencerbrooks: Custom event fields are not exposed to...
rivimey’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.