Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔨 grapher schema: update to version 006 #3491

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/wizard/utils/chart_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"hideLegend": False,
"tab": "chart",
"logo": "owid",
"$schema": "https://files.ourworldindata.org/schemas/grapher-schema.005.json",
"$schema": "https://files.ourworldindata.org/schemas/grapher-schema.006.json",
"showYearLabels": False,
"id": 807,
"selectedFacetStrategy": "none",
Expand Down Expand Up @@ -84,7 +84,7 @@ def bake_chart_config(

Bakes a very basic config, which will be enough most of the times. If you want a more complex config, use this as a baseline to adjust to your needs.

Note: You can find more details on our Grapher API at https://files.ourworldindata.org/schemas/grapher-schema.005.json.
Note: You can find more details on our Grapher API at https://files.ourworldindata.org/schemas/grapher-schema.006.json.

"""
# Define chart config
Expand Down
2 changes: 1 addition & 1 deletion apps/wizard/utils/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def grapher_chart(

You can either plot a given chart config (using chart_config) or plot an indicator with its default metadata using either catalog_path, variable_id or variable.

Note: You can find more details on our Grapher API at https://files.ourworldindata.org/schemas/grapher-schema.005.json.
Note: You can find more details on our Grapher API at https://files.ourworldindata.org/schemas/grapher-schema.006.json.

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion etl/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def variable_metadata_url(variable_id):
TLS_VERIFY = bool(int(env.get("TLS_VERIFY", 1)))

# Default schema for presentation.grapher_config in metadata. Try to keep it up to date with the latest schema.
DEFAULT_GRAPHER_SCHEMA = "https://files.ourworldindata.org/schemas/grapher-schema.005.json"
DEFAULT_GRAPHER_SCHEMA = "https://files.ourworldindata.org/schemas/grapher-schema.006.json"


def enable_bugsnag() -> None:
Expand Down
2 changes: 1 addition & 1 deletion etl/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def map_indicator_path_to_id(catalog_path: str) -> str | int:
def get_schema_from_url(schema_url: str) -> dict:
"""Get the schema of a chart configuration. Schema URL is saved in config["$schema"] and looks like:

https://files.ourworldindata.org/schemas/grapher-schema.005.json
https://files.ourworldindata.org/schemas/grapher-schema.006.json

More details on available versions can be found
at https://github.com/owid/owid-grapher/tree/master/packages/%40ourworldindata/grapher/src/schema.
Expand Down
4 changes: 2 additions & 2 deletions schemas/multidim-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
"type": "string",
"description": "Url of the concrete schema version to use to validate this document",
"format": "uri",
"default": "https://files.ourworldindata.org/schemas/grapher-schema.005.json",
"const": "https://files.ourworldindata.org/schemas/grapher-schema.005.json"
"default": "https://files.ourworldindata.org/schemas/grapher-schema.006.json",
"const": "https://files.ourworldindata.org/schemas/grapher-schema.006.json"
},
"id": {
"type": "integer",
Expand Down
Loading