Format does not return on the REST API when querying a view
#7.444 aberto em 21 de nov. de 2023
Métricas do repositório
- Stars
- (19.563 stars)
- Métricas de merge de PR
- (Mesclagem média 5d 16h) (138 fundiu PRs em 30d)
Description
Describe the bug
If you add the format field to a metric on a cube and then include that metric in a view, the format field is not returned in the API /meta or /query response for the view. Format is included in for the metric on the cube - just not the view.
To Reproduce Steps to reproduce the behaviour:
- Create a cube with one or more metrics
- Add
format: currencyorformat: percentto the metrics - Create a view that includes the metrics in 1)
- Make a request to the /meta or /query endpoints on the REST API.
- You will see the format field is returned for the cube but not the view.
Expected behaviour
I would expect the format field to be included in the annotations object of the /query response if I query the view. Otherwise, it is not possible to apply the format on the client.
Additional context Both description and meta fields are carried through to the view response from the underlying cube.