Ensure Report embeds URL generation leverages relative dates
Once !1517 (merged) lands in master
, we'll want to update the embed snippet logic to account for today
as mentioned here !1517 (comment 303160089).
I believe this is a backend only change where any filters that are of type=date|time
can have their respective relative date string parsed into anchor
and offset
values (examples in DateRangeCustomVsRelative.vue
as a guide). From here today
would be +-1
based on the sign
(first char of the relative date string) from the anchor
.
Lastly the backend would simply update the returned snippet (both embed and link share) to have a ?today=...
and know to parse it and account for today in the query. The frontend would then simply render as normal with relative date filters.
Edited by Derek Knox