@@ -2105,8 +2105,9 @@ def get_siblings(id):
21052105 include_revisions = request .args .get ('include-old-revisions' )
21062106 if status is not None :
21072107 status = status .lower ()
2108- if status not in ['new' , 'processing' , 'published' , 'qa' , 'error' , 'hold' , 'invalid' , 'submitted' ]:
2109- bad_request_error ("Invalid Dataset Status. Must be 'new', 'qa', or 'published' Case-Insensitive" )
2108+ allowed_statuses = ['new' , 'processing' , 'published' , 'qa' , 'error' , 'hold' , 'invalid' , 'submitted' , 'approval' ]
2109+ if status not in allowed_statuses :
2110+ bad_request_error (f"Invalid Dataset Status. Must be one of: { ', ' .join (allowed_statuses )} " )
21102111 if property_key is not None :
21112112 property_key = property_key .lower ()
21122113 result_filtering_accepted_property_keys = ['uuid' ]
@@ -2239,8 +2240,9 @@ def get_tuplets(id):
22392240 status = request .args .get ('status' )
22402241 if status is not None :
22412242 status = status .lower ()
2242- if status not in ['new' , 'processing' , 'published' , 'qa' , 'error' , 'hold' , 'invalid' , 'submitted' ]:
2243- bad_request_error ("Invalid Dataset Status. Must be 'new', 'qa', or 'published' Case-Insensitive" )
2243+ allowed_statuses = ['new' , 'processing' , 'published' , 'qa' , 'error' , 'hold' , 'invalid' , 'submitted' , 'approval' ]
2244+ if status not in allowed_statuses :
2245+ bad_request_error (f"Invalid Dataset Status. Must be one of: { ', ' .join (allowed_statuses )} " )
22442246 if property_key is not None :
22452247 property_key = property_key .lower ()
22462248 result_filtering_accepted_property_keys = ['uuid' ]
0 commit comments