github-copilot-resources / copilot-metrics-viewer

Tool to visualize the Copilot metrics provided via the Copilot Business Metrics API (current in public beta)
https://copilot-metrics-viewer-gthcc5cmd9ebf2ff.westeurope-01.azurewebsites.net/
MIT License
317 stars 157 forks source link

Show the Acceptance Rate (by count) and Acceptance Rate (by lines) #113

Open DevOps-zhuang opened 2 weeks ago

DevOps-zhuang commented 2 weeks ago

the current Acceptance rate is calcuated by (lines_accepted/ lines_suggested) 100. it ingore the accepted count. so we got some customer's feedback, that it is better to calcualte the (total_acceptances_count/total_suggestions_count)100. and In order to keep the version compatible, it is better to keep both. that's to say, show both the Acceptance Rate (by count) and Acceptance Rate (by lines). 1, It needs to edit both the Languages and breakdown page. show both Acceptance Rate (by count) and Acceptance Rate (by lines) there. and for the table, it is better to add more columns, currently, there is 4 columns, which are Lanuage Name/Accepted prompts/Accepted lines of Code/Acceptane Rate (%) , it is better to be Lanuage Name/Accepted prompts/Sugged Prompts/Accepted lines of Code/Suggested Lines of Code/ Acceptane Rate by count (%) /Acceptance Rate by Lines (%) image image

2, for the Acceptance rate (%), in Main page, update it to 'Acceptance rate by lines (%)' to make it more easy to be understood.

karpikpl commented 2 weeks ago

would it make sense to update to new API first?

DevOps-zhuang commented 1 week ago

would it make sense to update to new API first?

will update it to latest metrics route API once it is with high data quality. and I am also interested that what kind of new reprot are needed with the new metrics data? since it offer more datas.