Skip to content

Add baseUrl dimension to Cube schema

Elwyn Benson requested to merge 432491-add-baseurl-to-schema into main

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

  1. Run branch locally
  2. Query for baseUrl in Cube Explorer
  3. 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.

Merge request reports