Skip to content

Commit

Permalink
Test deleting stage path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent 1a7c028 commit 17dec72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tabpy/tabpy_server/handlers/endpoint_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ def delete(self, name):

# delete files
if endpoint_info["type"] != "alias":
delete_path = get_query_object_path(
query_path = get_query_object_path(
self.settings["state_file_path"], name, None
)
staging_path = query_path.replace("/query_objects/", "/staging/endpoints/")
try:
yield self._delete_po_future(delete_path)
yield self._delete_po_future(query_path)
yield self._delete_po_future(staging_path)
except Exception as e:
self.error_out(400, f"Error while deleting: {e}")
self.finish()
Expand Down

0 comments on commit 17dec72

Please sign in to comment.