Sounds good Milosz, I'll fix the filtering.
Cheers,
On 12/10/18 12:49 PM, Milosz Wasilewski wrote:
On Mon, 10 Dec 2018 at 11:48, Milosz Wasilewski milosz.wasilewski@linaro.org wrote:
On Mon, 10 Dec 2018 at 11:42, Stevan Radakovic stevan.radakovic@linaro.org wrote:
Hello,
For Google Data Studio integration with SQUAD, I need to retrieve the list of metrics for each project so I can let user select which project and metric he would like to view in the studio. Something like this here: https://github.com/Linaro/squad/blob/master/squad/frontend/views.py#L447 only for all available projects for this user.
Any suggestions on the correct approach here? I was thinking just adding a new API function in squad/api/views.py but I'd like an input on this approach and/or other ideas are welcome.
I would go with /api/suitemetadata/?kind=metric&suite__project=<pk of the project you're working with>
ah, there seem to be a bug in the API filtering. SuiteMetadataFilter doesn't have a related Suite filter. But that's easy to fix.
milosz
Would that help?
milosz