Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W-16337942: Allow users to update functions that are already deployed #646

Merged
merged 9 commits into from
Sep 18, 2024

Conversation

jmoens
Copy link
Collaborator

@jmoens jmoens commented Sep 17, 2024

This change allows users to update existing functions without having to redefine them. Currently in order to make updates, users must redeploy, which require the function to have been defined locally. This change will allow users to update functions knowing only their name.

Example use:

Assuming you have an existing function deployed called detectLanguage, this will update its description, and ensure the is_public is set to False.

If your server is configured with auth, you will need to set credentials before being able to use this functionality

client.update('detectLanguage', description= "Updated Description", is_public = False)

Optional fields to update: is_public, schema, description

If no function with the given name exists, run time error will be thrown.

Calling update will update the function and bump its version.

I have tested this locally and with tableau and the custom functions explorer. Functions that have been updated are shown based on is_public, and have their descriptions and schemas updated correctly

@jmoens jmoens changed the title WIP: W-16337942: Allow users to update functions that are already deployed W-16337942: Allow users to update functions that are already deployed Sep 18, 2024
@jmoens jmoens merged commit de7b8ab into master Sep 18, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants