djaodjin / djaopsp

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

Improvement Plan: Integrate Filter Practice by Category dropdown with API #370

Closed quiaro closed 10 months ago

quiaro commented 3 years ago

image

smirolo commented 3 years ago

I believe the Energy reduction, etc. are values inside the tags field in the content API.

quiaro commented 3 years ago

I believe the Energy reduction, etc. are values inside the tags field in the content API.

The link seems to be outdated. Would you be able to update the link or provide me with a sample JSON for me to work on?

smirolo commented 3 years ago

Updated link to content API.

You will see something like this in the results field:

{
      "path": "/construction/production/adjust-air-fuel-ratio",
      "title": "Adjust Air fuel ratio",
      "indent": 2,
      "environmental_value": 2,
      "business_value": 2,
      "profitability": 2,
      "implementation_ease": 2,
      "avg_value": 2,
      "tags":["Energy & Emissions"]
    }

The only 3 values possible for 'Category' are "Energy & Emissions", "Waste" and "Water".

Side note: Energy and emissions are always combined here. There are no practices that apply to 2 categories at the same time in the current content, and I doubt there will either be.