Ensure timestamps are formatted correctly in product analytics tables
requested to merge 439577-bug-timestamps-are-being-converted-to-delimited-numbers-in-product-analytics-tables into master
What does this MR do and why?
Fixes a bug introduced in #427217 (closed) where timestamp values were incorrectly being converted to delimited numbers.
We now first check if the value is a date string, and if so, return the value as-is. This ensures date strings are displayed as they were before the change introduced in #427217 (closed).
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Follow these instructions to setup Product Analytics in GDK.
- Onboard
Product Analytics
in a project by setting up the feature at Project > Analytics > Analytics dashboards. (be sure to generate some events) - Visit the visualization designer at Project > Analytics > Analytics dashboards > Visualization designer.
- Create a new visualization using the Data table visualization type.
- Add a measure with some data.
- Set the Events over time dropdown to group by a time dimension.
- View the visualization and see the timestamp is incorrect.
Related to #439577 (closed)
Edited by Elwyn Benson