Hi Team, <@U02H1CTHAQ1> <@U02SNBLDP8X> <@U024Q0WD...
# gooddata-ui
p
Hi Team, @Petr Dolejsi @Peter Plochan @Dan Homola When creating a new relative date filter using the
dateDataSet
,
to
,
from
, and
granularity
parameters with the
newRelativeDateFilter
helper function, it requires the
granularity
to be specified as a
DateAttributeGranularity
type. This type typically takes values like
GDC.time.date
. However, it's worth noting that when GoodData initiates the execution call from their end, they pass the
granularity
as "DAY". This creates a discrepancy between the granularity values utilized in the
IFilter
object and those used in the execution API call. This discrepancy prompts a couple of questions: 1. Is there a specific reason behind the inconsistency between the granularity values employed in the
IFilter
object and those employed in the execution API call? 2. Does the GoodData library offer a Mapping object that facilitates the translation of granularity values between those used in
DateAttributeGranularity
and the ones utilized in execution calls? It would be helpful to address these questions in order to ensure clarity and consistency in the usage of granularity values within the GoodData library.
Hey Team, Any update on this?
p
SDK is built on top of two platforms. “GDC.time.xxx” values are used by universal SPI layer that is built on top of these two different platform backends. One of them also internally returns granularities as “GDC.time.xxx” (GoodData Enterprise) the other internally returns granularities as “DAY”, “MONTH”, etc. (GoodData Cloud, Native).
p
Thanks team.