-
Notifications
You must be signed in to change notification settings - Fork 258
Update node serialization/deserialization and other Pydantic issues #6990
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
Merged
edan-bainglass
merged 72 commits into
aiidateam:main
from
edan-bainglass:fix-node-serialization
May 14, 2026
Merged
Changes from 69 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
8dcccea
Update entity model system
edan-bainglass bcfeb48
Implement an override of alias-based serialization to support `verdi …
edan-bainglass d984fe3
Update containerized code `code_show` regression data
edan-bainglass 2f5b06b
Update how we serialize and validate by alias
edan-bainglass 2a6112c
Implement `Node.attach_file`
edan-bainglass 343f6fe
Mypy fixes
edan-bainglass f54430f
More test fixing
edan-bainglass 5427fcd
Synthesize `CliModel` dynamically
edan-bainglass 728766c
Use `AiiDABaseModel` consistently
edan-bainglass 6114bca
Fix qualname handling (Python 3.9 compatible)
edan-bainglass 72591b2
Schema title fix
edan-bainglass 94c17ad
Pin pydantic to `~=2.12`
edan-bainglass f294b14
Fix mypy
edan-bainglass fb34307
More mypy fixes
edan-bainglass 2ae9fbd
Don't forbid extras on `CliModel`
edan-bainglass cd9abf6
Infer `schema` in `_model_to_orm_field_values` if not provided
edan-bainglass 399a65b
Move `_as_write_model` to `Entity.ReadModel`
edan-bainglass f3f2b60
Replace `EntityFieldMeta` with `__init_subclass__` patching
edan-bainglass 2db7859
Introduce `_as_write_model` via new `WritableOrmModel`
edan-bainglass 3a0a322
Run QB fields patching after Node model patching
edan-bainglass e33eb03
Refactor shared backend node creation
edan-bainglass 145e6ef
Fix mypy
edan-bainglass 9f3f832
Replace `_as_write_model` with patch handling at runtime
edan-bainglass c2d2d93
Correct code inheritance
edan-bainglass affa35a
Fix deprecation warning
edan-bainglass a21adc2
Fix typing
edan-bainglass 77425f6
Make `ConstructorArgsModel` only available to those who define it
edan-bainglass ad7686c
Fix tests
edan-bainglass a3db6b2
Fix model rebuild issue
edan-bainglass 1100bcb
Discard too-specific model exceptions classes
edan-bainglass 8bf4755
Simplify schema check
edan-bainglass b9571de
Move CLI patching to a method
edan-bainglass db89383
Support type checking for constructor and CLI models
edan-bainglass 9f8d07a
Standardize exceptions
edan-bainglass 7ed02ae
Fix `ArrayData`
edan-bainglass ff2bedf
Fix mypy
edan-bainglass b5a2573
Type `schema` in `to_model` and `serialize` as `Literal`
edan-bainglass 6293200
Clean up `_from_write_model`
edan-bainglass 38bc4b1
Fix bug in `SinglefileData` handling of `SpooledTemporaryFile`
edan-bainglass 3be67e5
Use callables when handling files along with models
edan-bainglass 93c9d43
Enable serialization via CLI models in `AbstractCode`
edan-bainglass 48b36f8
Fix mypy
edan-bainglass 551bcb9
Use CLI model for code yaml export
edan-bainglass 3ea5b8e
Fix `AttributesWriteModel` name
edan-bainglass 0ea4bb9
Reorder things [BIG]
edan-bainglass f96ec2a
Fix portable code bug
edan-bainglass 57743db
Discard custom UUID serialization
edan-bainglass e373e15
Ignore `.dev` directory (dev files)
edan-bainglass a8a44cf
Draft implementation for `node.serialize(..., repository_dump_path)`
edan-bainglass 6ce6c06
Fix `fileobj_callable` handling in `_from_write_model`
edan-bainglass 52106f4
Discard redundant json schema extra definitions
edan-bainglass 644583f
Fix xy data
edan-bainglass fdde6dc
Handle model field extraction for array data
edan-bainglass 63974b7
Really fix xy data (and add tests)
edan-bainglass 867935e
Move `wrap_cmdline_params` model field to `AbstractCode`
edan-bainglass 4552c70
Add missing default `None` value to trajectory data `pbc` model field
edan-bainglass 85b0145
Regenerate code regression test files
edan-bainglass c38e8fc
Add missing `CifData` schema fields
edan-bainglass 6cb3fef
Allow string label for `InstalledCode` computer argument
edan-bainglass 31fb210
Update tests
edan-bainglass d56db28
Add `node` property to `Log`
edan-bainglass c634992
Update model testing
edan-bainglass cd0b0e0
Fix tests
edan-bainglass 898cd81
Support external data plugins by serializing missing attributes
edan-bainglass 6573729
Handle `FolderData` with empty directories
edan-bainglass ceeeae6
Do not exclude null values by default on entity serialization
edan-bainglass 31f1ba5
Serialize UTC `datetime` with `+00:00` in general
edan-bainglass 7d67420
Fix process serialization
edan-bainglass f2e8d24
Update model testing
edan-bainglass 2330923
Mark `FolderData.ConstructorArgsModel.tree` as write-only
edan-bainglass 6655968
Make `to_model_field_values` "public"
edan-bainglass 0e80533
Add documentation
edan-bainglass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,3 +61,6 @@ docker-bake.override.json | |
|
|
||
| # benchmark | ||
| .benchmarks/ | ||
|
|
||
| # dev files | ||
| .dev | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
edan-bainglass marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.