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

[ES|QL] refactor isEqualType #181191

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Apr 18, 2024

Summary

A code refactor to clarify and centralize some argument-checking logic.

The key change is that checkArgTypeMatchesDefinition (formerly isEqualType) now interprets the arguments to report the expected vs given types in one place. These are then used to construct the messaging to the user.

This will make it easier for us to check command parameters (e.g. where "foo") without duplicating code.

@drewdaemon
Copy link
Contributor Author

/ci

@drewdaemon
Copy link
Contributor Author

/ci

@kibana-ci
Copy link
Collaborator

kibana-ci commented Apr 18, 2024

💔 Build Failed

Failed CI Steps

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

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.

None yet

2 participants