-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated mapping_suite_hash_digest generation algo on package export
- Loading branch information
Kolea PLESCO
authored and
Kolea PLESCO
committed
Apr 24, 2024
1 parent
45718c7
commit f9cb632
Showing
99 changed files
with
306,058 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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 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 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
Empty file.
19 changes: 19 additions & 0 deletions
19
ted_sws/mapping_suite_processor/model/mapping_suite_metadata.py
This file contains 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel | ||
|
||
from ted_sws.core.model.transform import MappingSuiteType, MetadataConstraints | ||
|
||
|
||
class EFormsPackageMetadataBase(BaseModel): | ||
identifier: str | ||
title: str | ||
created_at: str | ||
description: str | ||
mapping_version: str | ||
ontology_version: str | ||
mapping_type: Optional[MappingSuiteType] = MappingSuiteType.ELECTRONIC_FORMS | ||
metadata_constraints: MetadataConstraints | ||
|
||
class Config: | ||
use_enum_values = True |
5 changes: 4 additions & 1 deletion
5
ted_sws/mapping_suite_processor/services/mapping_suite_reader.py
This file contains 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
36 changes: 36 additions & 0 deletions
36
tests/test_data/mapping_suite_processor/mappings/package_eforms/metadata.json
This file contains 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"identifier": "package_eforms_10-24_v1.9", | ||
"title": "Package EF10-EF24, SDK v1.9", | ||
"created_at": "2024-04-24 17:07:38.786702", | ||
"description": "This is the conceptual mapping for eForms subtype 10-24 SDK version 1.9", | ||
"mapping_version": "3.0.0-alpha.3", | ||
"ontology_version": "4.0.0", | ||
"mapping_type": "eforms", | ||
"metadata_constraints": { | ||
"constraints": { | ||
"eforms_subtype": [ | ||
"10", | ||
"11", | ||
"12", | ||
"13", | ||
"14", | ||
"15", | ||
"16", | ||
"17", | ||
"18", | ||
"19", | ||
"20", | ||
"21", | ||
"22", | ||
"23", | ||
"24" | ||
], | ||
"start_date": null, | ||
"end_date": null, | ||
"eforms_sdk_versions": [ | ||
"1.9" | ||
] | ||
} | ||
}, | ||
"mapping_suite_hash_digest": "8940944c0f7e7f5761ab52d09a4e9ad51bee5cd150736f528c8d743e27ea2aaa" | ||
} |
Oops, something went wrong.