From ae7e37332acc9b6738f08db21f219e6b6b3d3774 Mon Sep 17 00:00:00 2001 From: pcain-usgs <pcain@usgs.gov> Date: Wed, 14 Jul 2021 15:38:25 -0600 Subject: [PATCH] remove metadata_valid from metadata model --- geomagio/metadata/Metadata.md | 2 -- geomagio/metadata/Metadata.py | 2 -- geomagio/metadata/MetadataQuery.py | 1 - geomagio/metadata/main.py | 4 ---- 4 files changed, 9 deletions(-) diff --git a/geomagio/metadata/Metadata.md b/geomagio/metadata/Metadata.md index 12ff69904..558d7a5dc 100644 --- a/geomagio/metadata/Metadata.md +++ b/geomagio/metadata/Metadata.md @@ -22,8 +22,6 @@ * **reviewed**: after a record is reviewed by an approved user * **deleted**: archive a record that is invalid or incomplete -* **metadata_valid**: Whether record is valid and should be used in processing - * **review_comment**: Comments from reviewer about why record is valid/invalid # Details: diff --git a/geomagio/metadata/Metadata.py b/geomagio/metadata/Metadata.py index 84f52c5e5..7c0733177 100644 --- a/geomagio/metadata/Metadata.py +++ b/geomagio/metadata/Metadata.py @@ -70,8 +70,6 @@ class Metadata(BaseModel): priority: int = 1 # whether data is valid (primarily for flags) data_valid: bool = True - # whether metadata is valid (based on review) - metadata_valid: bool = True # metadata json blob metadata: Dict = None # general comment diff --git a/geomagio/metadata/MetadataQuery.py b/geomagio/metadata/MetadataQuery.py index f776f34cb..2b873795e 100644 --- a/geomagio/metadata/MetadataQuery.py +++ b/geomagio/metadata/MetadataQuery.py @@ -20,7 +20,6 @@ class MetadataQuery(BaseModel): channel: str = None location: str = None data_valid: Optional[bool] = None - metadata_valid: Optional[bool] = None status: Optional[List[str]] = None def datetime_dict(self, **kwargs): diff --git a/geomagio/metadata/main.py b/geomagio/metadata/main.py index c5546573e..cf1cd9adc 100644 --- a/geomagio/metadata/main.py +++ b/geomagio/metadata/main.py @@ -80,7 +80,6 @@ def create( id: int = None, input_file: str = None, location: str = None, - metadata_valid: bool = True, network: str = None, starttime: str = None, station: str = None, @@ -102,7 +101,6 @@ def create( id=id, location=location, metadata=input_metadata, - metadata_valid=metadata_valid, network=network, starttime=UTCDateTime(starttime) if starttime else None, station=station, @@ -129,7 +127,6 @@ def get( getone: bool = False, id: Optional[int] = None, location: Optional[str] = None, - metadata_valid: Optional[bool] = None, network: Optional[str] = None, status: Optional[List[str]] = typer.Argument(None), starttime: Optional[str] = None, @@ -145,7 +142,6 @@ def get( endtime=UTCDateTime(endtime) if endtime else None, id=id, location=location, - metadata_valid=metadata_valid, network=network, starttime=UTCDateTime(starttime) if starttime else None, station=station, -- GitLab