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

Add _is_web_endpoint attr to _Function #2520

Closed
wants to merge 4 commits into from

Conversation

devennavani
Copy link
Contributor

@devennavani devennavani commented Nov 15, 2024

Describe your changes

Add _is_web_endpoint attr to _Function. The point of _is_web_endpoint is to be able to determine if a _Function is a web function when it is un-hydrated and ._web_url is not populated.

The motivation for this change is that PR 2364 also modifies _add_function to properly populate _App.web_endpoints when called on a new-style class service function that has _method_functions populated. This is necessary because for these new-style classes without method placeholder functions there won't be any invocations of _add_function for the class methods.

@devennavani devennavani deleted the deven/add_is_web_endpoint_to_function branch November 18, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant