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

SDMX IM base classes #27

Merged
merged 16 commits into from
May 2, 2024
Merged

SDMX IM base classes #27

merged 16 commits into from
May 2, 2024

Conversation

javihern98
Copy link
Contributor

@javihern98 javihern98 commented Mar 19, 2024

Discussion over #25

src/pysdmx/model/code.py Outdated Show resolved Hide resolved
…o keep former structure. Adapted tests to use kwargs to ensure they work fine with new class model.
@javihern98
Copy link
Contributor Author

javihern98 commented Apr 17, 2024

@sosna @stratosn FYI I made several changes to the tests to use kwargs giving the fact that we are adding many class attributes (like annotations) to ensure we are able to set these attributes correctly. Moreover I rolled back the changes on items to use codes/concepts and on maintainer to use agency (just like the former class structure. Please start reviewing the updated code and assess the impact on the tools that use them.

…ther classes. Added DEV_checks file to write all commands necessary for good development practices (in Markdown, for now...)

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
@javihern98 javihern98 marked this pull request as ready for review April 17, 2024 13:58
… Added convenience methods for concepts and codes. Removed hierarchy on Item (no parent or children). Added Organisation superclass. Modified Category to inherit from Item. Modified all necessary serializers and deserializers to ensure all functionality is maintained.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
@javihern98
Copy link
Contributor Author

@sosna @stratosn FYI The parts that may break compatibility with previous versions are the changes between codes/concepts/categories and items (ItemScheme objects need to be initialised with items instead of codes/concepts/categories). As we agreed yesterday the codes/concepts/categories in ItemScheme should be a getter only, therefore they are not included in the class initialization. Please review this. I have already changed the internal serializers and a couple of tests to ensure everything works fine.

Copy link
Collaborator

@sosna sosna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @javihern98. I have reviewed the PR and made a few comments (all minor). It looks very good and we are going in the right direction, I believe 😊

src/pysdmx/model/__base.py Show resolved Hide resolved
src/pysdmx/model/__base.py Outdated Show resolved Hide resolved
src/pysdmx/model/__base.py Outdated Show resolved Hide resolved
src/pysdmx/model/__base.py Show resolved Hide resolved
src/pysdmx/model/__base.py Outdated Show resolved Hide resolved
src/pysdmx/model/__base.py Outdated Show resolved Hide resolved
src/pysdmx/model/category.py Outdated Show resolved Hide resolved
src/pysdmx/model/category.py Outdated Show resolved Hide resolved
…ing of categories method. Added omit_defaults to category.py

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
…ult id. Added default value for agency as "" (pending #34). Changed tests that were not previously using keyword arguments. Added kw_only to AnnotableArtefact and all subclasses.

Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
@javihern98
Copy link
Contributor Author

74a3d56 resolved all conversations and added new issues #32, #33, #34 after discussing.

@javihern98 javihern98 merged commit f30e8aa into develop May 2, 2024
14 checks passed
@javihern98 javihern98 deleted the model_class_hierarchy branch May 2, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants