-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update sustainability element titles, removed deleted element, make targets unique #425
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments. Feel free to merge once resolved.
|
||
filename = basedir / 'mapping' / 'sustainability.yaml' | ||
|
||
source = csv_reader( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment with a link to the spreadsheet itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6b1a950
manage.py
Outdated
@@ -808,6 +808,55 @@ def lint(filename, additional_properties): | |||
write_yaml_file(filename, elements) | |||
|
|||
|
|||
@cli.command() | |||
def update_sustainability_elements(): | |||
"""Update mapping/sustainability.yaml""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this interact with update_sustainability_docs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function updates the CoST IDS elements in sustainability.yaml
, using the spreadsheet in which CoST maintain the sustainability elements as an input, whilst update_sustainability_docs
updates the Markdown mapping documentation, using sustainability.yaml
as an input.
I've updated the docstrings in 6b1a950
Related issues
Description
manage.py
to update the CoST IDS sustainability elements from the spreadsheet in which they are maintained.update-sustainability-docs
so that they are uniqueMerge checklist
If there are changes to
project-schema.json
orproject-package-schema.json
:docs/examples/example.json
docs/examples/blank.json
./manage.py pre-commit
to updatedocs/_static/i8n.csv
If you added a new definition to the schema, run
./manage.py pre-commit
.If you added a new codelist:
docs/reference/codelists.md