diff --git a/doc/sources.rst b/doc/sources.rst index 6a98f64d..3775cba1 100644 --- a/doc/sources.rst +++ b/doc/sources.rst @@ -274,6 +274,10 @@ Website `(en) `__, `(fr) `__ - French name: Institut national de la statistique et des études économiques. +- Known issue(s) with this data source: + + - :issue:`205`: as of 2024-11-12 some structures, for instance ``urn:sdmx:…DataStructure=FR1:CNA-2014-PIB(1.0)``, include :attr:`~.Component.concept_identity` references that do not exist, for instance ``urn:sdmx:…Concept=FR1:CONCEPTS_INSEE(1.0).TIME_PERIOD`` and ``urn:sdmx:…Concept=FR1:CONCEPTS_INSEE(1.0).OBS_VALUE``. + From :ref:`v2.20.0 <2.20.0>`, :mod:`.reader.xml.v21` discards such invalid references, leaving :py:`.concept_identity = None`. .. autoclass:: sdmx.source.insee.Source() :members: diff --git a/doc/whatsnew.rst b/doc/whatsnew.rst index 578ad97b..5db8e699 100644 --- a/doc/whatsnew.rst +++ b/doc/whatsnew.rst @@ -3,8 +3,16 @@ What's new? *********** -.. Next release -.. ============ +.. _2.20.0: + +Next release +============ + +- Improve tolerance of invalid references in SDMX-ML (:pull:`207`; thanks :gh-user:`nicolas-graves` for :issue:`205`). + Where a file gives a reference for a :attr:`.Component.concept_identity` (such as for a :class:`.Dimension` or :class:`.PrimaryMeasure`) that is invalid—that is, the specified :class:`.Concept` does not exist in the referenced :class:`.ConceptScheme`—log on level :data:`logging.WARNING` and discard the reference. + Previously such invalid references caused a :class:`KeyError`. + Prompted by an example in :ref:`INSEE `. +- Update the base URL of the :ref:`WB ` source to use HTTPS instead of plain HTTP (:pull:`207`). v2.19.1 (2024-10-23) ==================== @@ -36,7 +44,7 @@ v2.17.0 (2024-09-03) - :class:`.XHTMLAttributeValue` contents are stored as :mod:`lxml.etree` nodes. - MetadataStructureDefinition is included when writing :class:`.StructureMessage`. -- Update base url for :ref:`WB_WDI` source to use HTTPS instead of plain HTTP (:issue:`191`, :pull:`192`). +- Update the base url of the :ref:`WB_WDI ` source to use HTTPS instead of plain HTTP (:issue:`191`, :pull:`192`). - Improvements to :mod:`.reader.xml` and :mod:`.reader.xml.v21` (:pull:`192`). - Correctly associate :class:`.Item` in :class:`.ItemScheme` with its parent, even if the parent is defined after the child (“forward reference”).