Releases: SciCatProject/pyscicat
Releases · SciCatProject/pyscicat
v0.4.8
v0.4.7
v0.4.6
Fix build.
v0.4.5
What's Changed
- Python versions by @dylanmcreynolds in #55
- Check typing with mypy by @sbliven in #57
- Added 4 more properties to Sample model by @J-avery32 in #44
- Fix login by @dylanmcreynolds in #62
New Contributors
- @sbliven made their first contribution in #57
- @J-avery32 made their first contribution in #44
Full Changelog: v0.4.4...v0.4.5
v0.4.4
What's Changed
- Fix auth error in from_token, from_credentials by @dylanmcreynolds in #51
Full Changelog: v0.4.3...v0.4.4
Fixes for New Backend
What's Changed
- Multiple fixes for new backend by @dylanmcreynolds in #49
Full Changelog: v0.4.2...v0.4.3
Several issues were discovered in ingesting datasets to the new backend:
- The new backend provides a more consistent usage of 404 return codes than the old backend did. In the new backend, 404 seems to only be returned when the path to and endpoint is not found. The old backend sometimes returned 404 when requests did not bring back content, and there was some code to deal with that discrepency, which has been removed.
- There is a breaking API change in this version related to creating
OrigDataBlock. The signature has changed, and a new model object has been introduced:
The OLD way to upload an `OrigDataBlock':
# Datablock with DataFiles
data_file = DataFile(path="/foo/bar", size=42)
data_block = Datablock(
size=42,
version=1,
datasetId=dataset_id,
dataFileList=[data_file],
**ownable.dict()
)
scicat.upload_dataset_origdatablock(data_block)The NEW way:
# Datablock with DataFiles
data_file = DataFile(path="/foo/bar", size=42)
data_block_dto = CreateDatasetOrigDatablockDto(
size=42,
datasetId=dataset_id,
dataFileList=[data_file],
)
scicat.upload_dataset_origdatablock(dataset_id, data_block_dto)This change was necessary for uploading OrigDataBlock because the new backend introduces the CreateDatasetOrigDatablockDto model object, which has fewer fields then the old backends OrigDatablock model, and validation rejects the old mechanism.
Fix for pydantic 2 optional fields issue
v0.2.6
v0.2.5
v0.2.4
Release of the code as it is on 2022/11/08
What's Changed
- Easy url by @dylanmcreynolds in #8
- Ess adding in house functionalities by @nitrosx in #10
- remove pre-commit by @dylanmcreynolds in #15
- modify setup.py to remove filename.as_posix causing bug by @abigailalexander in #17
- Upsert dataset by @abigailalexander in #12
- Security: Do not log username and token by @jl-wynen in #21
- Latest ESS functionalities and naming coinvention by @nitrosx in #24
- Update dataset by @abigailalexander in #23
- Add more model fields by @jl-wynen in #25
New Contributors
- @nitrosx made their first contribution in #10
- @abigailalexander made their first contribution in #17
Full Changelog: v0.2.2...v0.2.4