djaodjin / djaopsp

Practices Survey Platform - Assess against best practices assessment and improvement planning
BSD 2-Clause "Simplified" License
3 stars 6 forks source link

Targets: Integrate benchmarks with API #361

Closed quiaro closed 3 years ago

quiaro commented 3 years ago

@smirolo where would I be able to find the details and graph benchmark endpoints?

smirolo commented 3 years ago

details and graphs

quiaro commented 3 years ago

@smirolo Looking at the payload from https://www.tspproject.org/docs/api/#RetrieveBenchmark, what are the following for:

Most importantly, how would I be able to get the score coefficient (per the wireframes)?

Screen Shot 2020-10-08 at 16 52 25

smirolo commented 3 years ago

The score_weight is displayed as the "Total Score Coefficient".

There should be a field called normalized_score which is the score displayed. nb_answers and nb_questions are the total number of answers and questions on that section (or said differently in the subtree). Typically you will not have a normalized_score field if nb_answers < nb_questions. numerator and denominator are the numerator and denominator for the score (before it is normalized). See implementation of populate_rollup and definition of Opportunity score

nb_respondents is the number of organizations that have responded to an assessment in that industry segment.

quiaro commented 3 years ago

Fixed by https://github.com/djaodjin/envconnect/pull/385