Closed ikesau closed 3 months ago
Here are the header entries that don't currently have a matching Grapher tag.
If we want to convert one of these old-style entries/WP topic pages to use Gdocs, we'll be blocked until this issue is fixed.
Biological and Chemical Weapons
Child and Infant Mortality
Clean Water
Clean Water and Sanitation
Co₂ and Greenhouse Gas Emissions
Coronavirus Pandemic (covid-19)
Education Spending
Employment In Agriculture
Farm Size and Productivity
Food Prices
Food Supply
Forests and Deforestation
Global Education
Global Health
Healthcare Spending
Hunger and Undernourishment
Light At Night
Loneliness and Social Connections
Marriages and Divorces
Maternal Mortality
Meat and Dairy Production
Military Personnel and Spending
Mpox (monkeypox)
Obesity
Opioids, Cocaine, Cannabis and Other Illicit Drugs
Outdoor Air Pollution
Pneumonia
Primary and Secondary Education
Research and Development
Space Exploration and Satellites
Suicides
Teachers and Professors
Technological Change
Time Use
Trade and Globalization
Violence Against Children and Children’s Rights
Water Use and Stress
Women’s Employment
World Population Growth
To get a sense of the mismatch I looked through each of these now.
There are four cases I think:
The most common case is just small differences in wording between the topic page title and the grapher tag. This should be easy to solve (though we should decide whether we impost that tags and titles must always exactly agree – for very long topic page titles, this might be annoying).
There are some very low-hanging fruit cases where the page is currently not tagged (so no 'All charts' block shows on the page), but a very obvious matching grapher tag exists. For example Obesity. cc @edomt – see below for these cases. To my mind we should just tag these pages now with the relevant tags, but maybe I am missing something.
There are cases where there is a proper mismatch between our grapher tags and topic pages – e.g. Water Use/Clean Water/Sanitation is especially messy. Military Personnel is another example. There are also some topic pages where no obvious grapher tag exists at all (e.g. Time Use). To solve this would require a bit of manual time from a data manager to re-tag. But there are not lots of these cases, so I think we are looking at a job that would take one or two days.
There are cases that relate to sub-topics and meta-topics. This, to my mind, is the hardest case, because I don't think we are even clear what we even want to present to users. In trying to solve this problem, we are confronted with bigger problems concerning the structure of our website. Note, for example, that you can't currently navigate from the Energy topic page to the Energy Access (or other) subtopic. The problem is also bigger than the list below suggests, because this uncertainty is there even for pages where there is a matching grapher tag (e.g. Energy Access page and Access to Energy tag). This whole area is a bit of a mess.
There are some very low-hanging fruit cases where the page is currently not tagged (so no 'All charts' block shows on the page), but a very obvious matching grapher tag exists. For example Obesity. cc @edomt – see below for these cases. To my mind we should just tag these pages now with the relevant tags, but maybe I am missing something.
I agree with you, I don't see any reason not to do this. Though we should make sure that all charts embedded in the topic page are correctly tagged (charts embedded in the page may be untagged given that the all-charts block isn't currently used).
We have since done this
Our site navigation relies on WordPress to generate a hierarchical category structure. These categories are somewhat mirrored in Grapher, but the hierarchy is not.
In order to populate the header with links to GDocs-based topic pages, which are tagged with Grapher tags, we'll need to harmonize these two structures somehow.
renderMenuJson
will need to be rewritten to depend on the Grapher version of the hierarchy, and pre-existing WP posts will need to be merged with it.We will need to make sure that all functionality that depends on WP categories, e.g.
getRelatedCharts
migrates smoothly as well. I don't yet have an exhaustive list of all the features that we'll need to keep an eye on.WordPress entry hierarchy
Grapher entry hierachy