-
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
Entity factory and cleanup #21
Commits on Oct 27, 2023
-
Update the DataSource factory - should be a SOFT7Instance factory instead with proper validation of property metadata and more.
Configuration menu - View commit details
-
Copy full SHA for e6e5307 - Browse repository at this point
Copy the full SHA e6e5307View commit details -
Configuration menu - View commit details
-
Copy full SHA for 938357f - Browse repository at this point
Copy the full SHA 938357fView commit details -
Add tests for the SOFT7Entity pydantic model
Add pytest and pytest-cov dependencies, along with a new `testing` installable extra.
Configuration menu - View commit details
-
Copy full SHA for 7494a0f - Browse repository at this point
Copy the full SHA 7494a0fView commit details -
Remove tests for the now re-written SOFT7EntityPropertyType (previously an Enum, now just a Literal collection with an associated mapping).
Configuration menu - View commit details
-
Copy full SHA for 48dcd41 - Browse repository at this point
Copy the full SHA 48dcd41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a97e6a - Browse repository at this point
Copy the full SHA 3a97e6aView commit details -
Use 'entity' instead of 'data_model' for var name
Also, rename create_entity() to create_datasource(). Ensure the create_datasource() function returns an instantiated model.
Configuration menu - View commit details
-
Copy full SHA for 6655687 - Browse repository at this point
Copy the full SHA 6655687View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21c956d - Browse repository at this point
Copy the full SHA 21c956dView commit details -
Create MixIn class for the special getattribute
This can now be used in both the SOFT7DataSource model as well as the new DataSourceDimensions model. Add `requests-mock` dependency. Consider using "python" backend for OTELib instead to avoid mocking requests. Remove all filterwarnings from pytest config.
Configuration menu - View commit details
-
Copy full SHA for 75dd10c - Browse repository at this point
Copy the full SHA 75dd10cView commit details -
Copy over fixtures from oteapi-core
New test using python otelib backend.
Configuration menu - View commit details
-
Copy full SHA for 2436228 - Browse repository at this point
Copy the full SHA 2436228View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83cbebb - Browse repository at this point
Copy the full SHA 83cbebbView commit details -
Add beginnings for JSON serialization tests
All the serialization tests (including JSON Schema) must be extended to ensure not just that it _can_ be serialized, but that the content is also what would be expected.
Configuration menu - View commit details
-
Copy full SHA for 6149a9a - Browse repository at this point
Copy the full SHA 6149a9aView commit details -
Implement proper attributes serialization
Implemented as a pydantic model_serializer in "wrap" mode. Temporarily changed the otelib dependency to point to a git branch on GitHub that implements migration to pydantic v2.
Configuration menu - View commit details
-
Copy full SHA for a3399d6 - Browse repository at this point
Copy the full SHA a3399d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0cfe7 - Browse repository at this point
Copy the full SHA 8e0cfe7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53e063b - Browse repository at this point
Copy the full SHA 53e063bView commit details -
Use --cov-report=term-missing option for pytest
Quick (but proper) solutions to ever so slightly decrease the number of uncovered lines.
Configuration menu - View commit details
-
Copy full SHA for a1b2ac8 - Browse repository at this point
Copy the full SHA a1b2ac8View commit details
Commits on Nov 7, 2023
-
Move stuff from factory to pydantic models
Specifically, move all the "helper"/utility functionalities from `datasource_factory.py` to a new `soft7_instance.py` under pydantic_models.
Configuration menu - View commit details
-
Copy full SHA for 013b8fd - Browse repository at this point
Copy the full SHA 013b8fdView commit details -
Update pre-commit hooks, add pyupgrade hook
Run hooks on all files, upgrading them accordingly.
Configuration menu - View commit details
-
Copy full SHA for c9824c3 - Browse repository at this point
Copy the full SHA c9824c3View commit details -
Make factory functions importable from `s7.factories` as `create_*`, where * matches the name of any `*_factory.py` file in the folder.
Configuration menu - View commit details
-
Copy full SHA for 0b02b10 - Browse repository at this point
Copy the full SHA 0b02b10View commit details -
Configuration menu - View commit details
-
Copy full SHA for f45da32 - Browse repository at this point
Copy the full SHA f45da32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97cedaa - Browse repository at this point
Copy the full SHA 97cedaaView commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9f21ef7 - Browse repository at this point
Copy the full SHA 9f21ef7View commit details -
Split ruff hook for core code base code and non-core.
Configuration menu - View commit details
-
Copy full SHA for 71d11d1 - Browse repository at this point
Copy the full SHA 71d11d1View commit details
Commits on Nov 13, 2023
-
Further work on SOFT7 Entity instances
Started to flesh out an OTEAPI function strategy plugin for converting between a parsed data source to a SOFT7 Entity instance.
Configuration menu - View commit details
-
Copy full SHA for 03a9d69 - Browse repository at this point
Copy the full SHA 03a9d69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f84ace - Browse repository at this point
Copy the full SHA 3f84aceView commit details
Commits on Nov 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9b11c1a - Browse repository at this point
Copy the full SHA 9b11c1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9891ea - Browse repository at this point
Copy the full SHA e9891eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fad8b5 - Browse repository at this point
Copy the full SHA 9fad8b5View commit details
Commits on Nov 15, 2023
-
There is a design issue here with nested entities that should be fixable in a more elegant way
Configuration menu - View commit details
-
Copy full SHA for f523644 - Browse repository at this point
Copy the full SHA f523644View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e3fb54 - Browse repository at this point
Copy the full SHA 5e3fb54View commit details
Commits on Nov 16, 2023
-
Need to fix setting ClassVar on EntityInstance and the validator for the same.
Configuration menu - View commit details
-
Copy full SHA for acae39c - Browse repository at this point
Copy the full SHA acae39cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aee4e8 - Browse repository at this point
Copy the full SHA 9aee4e8View commit details
Commits on Nov 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 743a642 - Browse repository at this point
Copy the full SHA 743a642View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4864a4 - Browse repository at this point
Copy the full SHA d4864a4View commit details
Commits on Dec 6, 2023
-
Fix tests for the new implementation
Add a YAML parse strategy for OTEAPI.
Configuration menu - View commit details
-
Copy full SHA for dc527ec - Browse repository at this point
Copy the full SHA dc527ecView commit details -
Ignore importlib.metadata deprecation warning
See issue #395 in oteapi-core to follow up on when this ignore statement can be removed.
Configuration menu - View commit details
-
Copy full SHA for 0e80aeb - Browse repository at this point
Copy the full SHA 0e80aebView commit details
Commits on Feb 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c43b9fb - Browse repository at this point
Copy the full SHA c43b9fbView commit details -
Remove all the noise in the repo
Focus on: - the entity_instance factory - the OTEAPI plugins - the pydantic models
Configuration menu - View commit details
-
Copy full SHA for 6a39338 - Browse repository at this point
Copy the full SHA 6a39338View commit details -
These should be removed when supporting Python 3.10+. Pydantic does not support new-style type notation in Python 3.9.
Configuration menu - View commit details
-
Copy full SHA for 453278b - Browse repository at this point
Copy the full SHA 453278bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b2ca26 - Browse repository at this point
Copy the full SHA 7b2ca26View commit details
Commits on Feb 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2de0039 - Browse repository at this point
Copy the full SHA 2de0039View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b81e1f - Browse repository at this point
Copy the full SHA 3b81e1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d36d422 - Browse repository at this point
Copy the full SHA d36d422View commit details -
Update to use at minimum Python 3.10
Update GH Actions. Update ruff rules.
Configuration menu - View commit details
-
Copy full SHA for 68a108d - Browse repository at this point
Copy the full SHA 68a108dView commit details -
Support the new OTEAPI Core session handling
Finalize update to Python 3.10
Configuration menu - View commit details
-
Copy full SHA for a4b2e50 - Browse repository at this point
Copy the full SHA a4b2e50View commit details
Commits on Feb 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3b63d6d - Browse repository at this point
Copy the full SHA 3b63d6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f0a69f - Browse repository at this point
Copy the full SHA 1f0a69fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48533d0 - Browse repository at this point
Copy the full SHA 48533d0View commit details
Commits on Mar 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ddc294b - Browse repository at this point
Copy the full SHA ddc294bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f183d89 - Browse repository at this point
Copy the full SHA f183d89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ca8a48 - Browse repository at this point
Copy the full SHA 9ca8a48View commit details