Skip to content

Commit cde3b0d

Browse files
authored
W-17092332: Fix for updating functions without is_public set (#650)
* updating check for public on update to take into account functions that never had is public set
1 parent bdb53ac commit cde3b0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: tabpy/tabpy_server/management/state.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,10 @@ def update_endpoint(
340340
endpoint_type, endpoint_info["type"])
341341
dependencies = self._check_and_set_dependencies(
342342
dependencies, endpoint_info.get("dependencies", []))
343-
is_public = self._check_and_set_is_public(is_public, endpoint_info["is_public"])
343+
# Adding is_public means that some existing functions do not have is_public set.
344+
# We need to check for this when updating and set to False by default
345+
is_public = self._check_and_set_is_public(
346+
is_public, getattr(endpoint_info, "is_public", False))
344347

345348
self._check_target(target)
346349
if target and target not in endpoints:

0 commit comments

Comments
 (0)