Add baseUrl dimension to Cube schema
What does this MR do and why?
Adds a baseUrl dimension to the CubeJS schema.
This returns us a value containing the url scheme, host, and port (optional): https://example.com:5001
This is part of the grouping of top_pages fix: Show distinct set of URLs for pages listed in t... (gitlab-org/gitlab#432491 - closed)
It will allow us to query page paths, and baseUrl, so paths will be segmented by baseUrl (which in most cases will always be the same, so no segmenting) and will allow the frontend to create valid clickable links from baseUrl + page_path.
Once this MR is merged, another will be created to update analytics-stack.
Screenshots or screen recordings
No visual changes.
How to set up and validate locally
- Run branch locally
- Query for baseUrl in Cube Explorer
- Verify expected results
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.