Skip to content

Commit f7173d2

Browse files
committed
allow users to update existing functions without redefinint them
1 parent 3416240 commit f7173d2

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

tabpy/tabpy_server/handlers/endpoint_handler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def delete(self, name):
9595
return
9696

9797
self.logger.log(logging.DEBUG, f"Processing DELETE for /endpoints/{name}")
98-
self.logger.log(logging.INFO, f"Processing DELETE for /endpoints/{name}")
9998

10099
try:
101100
endpoints = self.tabpy_state.get_endpoints(name)

tabpy/tabpy_server/handlers/management_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _add_or_update_endpoint(self, action, name, version, request_data):
4747
"""
4848
Add or update an endpoint
4949
"""
50-
self.logger.log(logging.INFO, f"Adding/updating model {name}...")
50+
self.logger.log(logging.DEBUG, f"Adding/updating model {name}...")
5151

5252
if not isinstance(name, str):
5353
msg = "Endpoint name must be a string"

tabpy/tabpy_tools/rest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ def PUT(self, url, data, timeout=None):
117117
data = self._encode_request(data)
118118

119119
logger.info(f"PUT {url} with {data}")
120-
logger.log(logging.INFO, f"PUT {url} with {data}")
121120

122121
response = self.session.put(
123122
url,

tabpy/tabpy_tools/rest_client.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,6 @@ def set_endpoint(self, endpoint):
216216
"""
217217
return self.service_client.PUT("endpoints/" + endpoint.name, endpoint.to_json())
218218

219-
def make_public(self, endpoint):
220-
"""Updates an existing endpoint to be public.
221-
222-
Parameters
223-
----------
224-
225-
endpoint : Endpoint
226-
227-
The endpoint to make public.
228-
"""
229-
self.service_client.PUT("endpoints/" + endpoint.name, endpoint.to_json())
230-
231219
def remove_endpoint(self, endpoint_name):
232220
"""Deletes an endpoint through the management API.
233221

0 commit comments

Comments
 (0)