You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would like to add an issues closed over issues opened ratio to the trends widget in the Issue Trackers page. I have gotten it to show up, but the value is displayed as an integer when I would like for it to be a decimal.
I edited the /api/pages/issue/trends.py file to add the ratio.
I suspect the JS is forcing integer values. I'll look into that. Perhaps we need to add an extra argument to the JSON output to specify that this is a float and should be presented as a float.
oh, I see the issue. You have to specify in python (2.7 at least) that you want a floating point result, or it will turn it into an integer. Something like:
Hello,

I would like to add an issues closed over issues opened ratio to the trends widget in the Issue Trackers page. I have gotten it to show up, but the value is displayed as an integer when I would like for it to be a decimal.
I edited the /api/pages/issue/trends.py file to add the ratio.
I have tried casting the variables to a float, but the UI still displays an integer.
Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: