From 98548d3cabe56bbf72e9a6f56b40014386de3a2b Mon Sep 17 00:00:00 2001 From: trevormunoz Date: Mon, 3 May 2021 06:47:48 -0400 Subject: [PATCH] Didn't end up using these classes for "new" v4 records --- lakeland_db_migrate_v4/destinations.py | 45 -------------------------- 1 file changed, 45 deletions(-) diff --git a/lakeland_db_migrate_v4/destinations.py b/lakeland_db_migrate_v4/destinations.py index df8fd83..20344f3 100644 --- a/lakeland_db_migrate_v4/destinations.py +++ b/lakeland_db_migrate_v4/destinations.py @@ -118,51 +118,6 @@ def __post_init_post_parse__(self, v3_created_date: str) -> None: object.__setattr__(self, "creation_year", dtobj.strftime("%Y")) -@dataclass -class ItemLegacyInfoRecord(V4BaseRecord): - """A representation of legacy ids about Entities in the destination data model.""" - - linked_item: ItemRecord - legacy_idno_umd: str = "" - legacy_ldt_image_idno: str = "" - legacy_associated_filenames: list[str] = field(default_factory=list) - - -@dataclass -class ItemAdminRecord(V4BaseRecord): - """A representation of AdminData about Entities in the destination data model.""" - - linked_item: ItemRecord - lakeland_book: bool = field(default=False) - lakeland_book_chapter: str = "" - lakeland_book_page: int = field(default_factory=int) - lakeland_video: bool = field(default=False) - remove: bool = field(default=False) - - -@dataclass -class LocationRecord(V4BaseRecord): - """A representation of a Location in the destination data model.""" - - name: str - linked_entities: list[str] - address: str - latitude: float - longitude: float - - -@dataclass -class PersonAdminRecord(V4BaseRecord): - """A representation of AdminData about Entities in the destination data model.""" - - name: str - linked_entities: list[str] - lchp_team_member: bool = field(default=False) - title: str = "" - affiliation: str = "" - email_address: str = "" - - @dataclass class EntityRelationshipRecord(MigratedRecord): """A representation of a pairwise relationship between Entities in the destination data model."""