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

Fix #149 #150

Merged
merged 23 commits into from Dec 20, 2023
Merged

Fix #149 #150

merged 23 commits into from Dec 20, 2023

Conversation

khaeru
Copy link
Owner

@khaeru khaeru commented Dec 17, 2023

Closes #149.

PR checklist

  • Checks all ✅
  • Update documentation Bugfix only.
  • Update doc/whatsnew.rst

@khaeru khaeru added bug writer Convert objects to other formats xml SDMX-ML format reader Handle standard SDMX message types labels Dec 17, 2023
@khaeru khaeru self-assigned this Dec 17, 2023
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c56574a) 98.33% compared to head (fc8fc0e) 95.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
- Coverage   98.33%   95.97%   -2.37%     
==========================================
  Files          87       87              
  Lines        6443     6480      +37     
==========================================
- Hits         6336     6219     -117     
- Misses        107      261     +154     
Files Coverage Δ
sdmx/model/common.py 99.89% <100.00%> (+<0.01%) ⬆️
sdmx/reader/xml/v21.py 97.70% <100.00%> (-0.12%) ⬇️
sdmx/testing/__init__.py 99.28% <ø> (ø)
sdmx/tests/writer/test_writer_xml.py 100.00% <100.00%> (ø)
sdmx/writer/xml.py 97.66% <98.52%> (+0.08%) ⬆️

... and 18 files with indirect coverage changes

@khaeru
Copy link
Owner Author

khaeru commented Dec 19, 2023

@goatsweater please let me know if you are able to check this branch against any other examples beyond the specimen you shared in #149. Meanwhile I will complete the PR checklist and prepare to merge/release.

@goatsweater
Copy link

I'll run it against some of our production data tomorrow and let you know how things go.

@goatsweater
Copy link

Overall things look good. I did notice that ConceptIdentity references are now getting a version="1.0" when no version was supplied in the source. Nothing else unexpected noticed.

Output:

<str:ConceptIdentity>
  <Ref agencyID="AGENCYID" id="AUX2" maintainableParentID="CS_SAMPLE_BETA" maintainableParentVersion="1.0" version="1.0" package="conceptscheme" class="Concept"/>
</str:ConceptIdentity>

Source:

<structure:ConceptIdentity>
  <Ref id="AUX2" maintainableParentID="CS_SAMPLE_BETA" maintainableParentVersion="1.0" agencyID="AGENCYID" package="conceptscheme" class="Concept" />
</structure:ConceptIdentity>

@khaeru
Copy link
Owner Author

khaeru commented Dec 20, 2023

Great, thanks.

It doesn't make sense that a non-maintainable individual item (e.g. Concept) has a version="..."; only the maintainableParentVersion="…" for the ConceptScheme or similar should be there.

I'll check and address that, then merge and release.

@khaeru khaeru merged commit cd3ecb2 into main Dec 20, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug reader Handle standard SDMX message types writer Convert objects to other formats xml SDMX-ML format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Information loss during round trip of structure message
2 participants