DSACMS / metrics

Experimentations in Open Source Repository Metrics
https://dsacms.github.io/metrics/
Other
6 stars 3 forks source link

Fix graph paths for Org & Repo Report #83

Closed natalialuzuriaga closed 7 months ago

natalialuzuriaga commented 7 months ago

Fix graph paths for Org & Repo Report

Problem

In the Org & Repo Report pages, there is an error with retrieving graphs due to incorrect path.

Solution

Updated path to include "/metrics" prefix using | url.

Result

All graphs are displayed in report pages.

Test Plan

Verified changes manually.

natalialuzuriaga commented 7 months ago

@IsaacMilarky I ran ./update.sh to see if my changes still update the path accordingly and it looks like it is missing an extra set of curly braces: <embed type="image/svg+xml" src="{{ "/assets/img/graphs/DSACMS/DSACMS_issue_gauge.svg" | url }}" />

vs

Screenshot 2024-02-13 at 2 00 20 PM

Could you look into a fix for this in the backend?