You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the Google Calendar API only mentions in event JSON when the event is actually transparent. If the event is opaque, it is not part of the event JSON.
However, then for the opaque events Event.new_from_feed passes nil as value to transparency= (via initialize) which will then default to it setting @transparency to "transparent" which is the wrong outcome.
As a result, all retrieved events are marked as transparent.
I could not find in the docs whether it transparancy actually should default to "opaque" (the UI does). If this case, maybe event's transparency= could be adapted to use:
ifval.nil? || val == false || val.to_s.downcase == 'opaque'
The text was updated successfully, but these errors were encountered:
It seems that the Google Calendar API only mentions in event JSON when the event is actually transparent. If the event is opaque, it is not part of the event JSON.
However, then for the opaque events
Event.new_from_feed
passesnil
as value totransparency=
(viainitialize
) which will then default to it setting@transparency
to"transparent"
which is the wrong outcome.As a result, all retrieved events are marked as transparent.
A solution would be to have
initialize
do:Another solution would be to have
new_from_feed
not parse it as part of the standard list ofparams
but have an explicit line:I could not find in the docs whether it transparancy actually should default to "opaque" (the UI does). If this case, maybe event's
transparency=
could be adapted to use:The text was updated successfully, but these errors were encountered: