Skip to content

Remove APIs that do not exist on serverless #31

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

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Apr 8, 2024

The current code generator is only additive, which meant it never removed APIs that were marked as not available on serverless.

@pquentin pquentin requested a review from JoshMock April 8, 2024 09:58
@pquentin pquentin mentioned this pull request Apr 8, 2024
@pquentin
Copy link
Member Author

pquentin commented Apr 8, 2024

The errors are not related to this pull request. Well, except from:

>       await async_client.cluster.health(wait_for_status="yellow")
E       AttributeError: 'ClusterClient' object has no attribute 'health'

but I would still like to fix it later.

Copy link
Member

@JoshMock JoshMock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, not sure how this happened. 🤔

The codegen changes I'd made include logic for properly filtering endpoints for serverless. Is that not being run in all the correct places?

@pquentin
Copy link
Member Author

pquentin commented Apr 9, 2024

The codegen changes I'd made include logic for properly filtering endpoints for serverless. Is that not being run in all the correct places?

It's not specific to serverless. If we removed a namespace in stack, we would see the same issue. We can discuss more in the codegen PR.

@pquentin pquentin merged commit 917ad0b into elastic:main Apr 9, 2024
9 of 10 checks passed
@pquentin pquentin deleted the remove-apis branch April 9, 2024 04:28
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.

2 participants