Skip to content

Commit

Permalink
publish to leaf topics only (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jun 3, 2024
1 parent 9181273 commit 522c433
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/generate-bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
if topic_to_add.startswith('/'):
topic_to_add = topic_to_add.lstrip('/')

test_parent_dir = f'{root}/{row[0]}'
if os.path.isdir(test_parent_dir):
break
topics.append(topic_to_add)

with open('topic-hierarchy/earth-system-discipline.csv', 'w') as fh:
Expand Down
2 changes: 2 additions & 0 deletions standard/requirements/core/REQ_publishing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
^|A |Data SHALL NOT be published with a topic that is not defined in this specification.
^|B |Data SHALL be published to at least the level of the sub-discipline topic (level 8 or beyond).
^|C |Metadata SHALL be published to at least the level of the notification type (``metadata``).
^|D |Topics SHALL be published to the lowest possible defined level (leaf).
^|E |Topics SHALL NOT be published to intermediary levels where sublevels are defined.
|===
2 changes: 1 addition & 1 deletion standard/sections/clause_7_normative_text.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The table below provides an overview of the primary topic levels.
|Seven high-level categories as defined by the WMO Unified Data Policy, Annex 1: (``atmospheric-composition``, ``climate``, ``cryosphere``, ``hydrology``, ``ocean``, ``space-weather``, or ``weather``)
|===

==== Publishing guidelines
==== Publishing

For maximum utility and efficient management of topics, it is recommended that ``data`` and ``metadata`` are published to a detailed level of the topic hierarchy. This helps avoid the "pollution" of messages under the primary topics. Note that each discipline has a sub-discipline topic named ``experimental`` for publication to provisional topics.

Expand Down

0 comments on commit 522c433

Please sign in to comment.