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

Wrap ts-morph errors to provide helpful error #2644

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

Anaethelion
Copy link
Contributor

Related to 5828dc9 we wrap the propagated error such that the message become:

failed to parse SparseVectorQuery, reason: cannot determine type of query, got: String

@Anaethelion Anaethelion requested a review from a team June 24, 2024 14:29
@Anaethelion Anaethelion marked this pull request as ready for review June 25, 2024 09:10
@Anaethelion Anaethelion merged commit a75b7c7 into main Jun 25, 2024
8 checks passed
@Anaethelion Anaethelion deleted the improve_compiler_errors_on_types branch June 25, 2024 09:11
@kderusso
Copy link
Member

Thanks for taking care of this!

kderusso pushed a commit that referenced this pull request Jun 25, 2024
* wrap ts-morph errors to provide helpful error

* improve after lint
kderusso added a commit that referenced this pull request Jun 26, 2024
…n for text_expansion and weighted_tokens queries (#2642)

* Add sparse_vector query to client specification

* Fix error and update contrib

* PR feedback

* Populate endpoint deprecation from request definition (#2640)

* Update specification output

* Wrap ts-morph errors to provide helpful error (#2644)

* wrap ts-morph errors to provide helpful error

* improve after lint

* Bump braces from 3.0.2 to 3.0.3 in /typescript-generator (#2645)

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [Query Rules] Update Query Rules API for 8.15 (#2639)

* Mark existing query rules APIs as GA

* Add individual CRUD API calls

* Linting

* PR feedback

* PR feedback

* Update specification output

* Update output

* Update output

* Fix variant annotations for SparseVectorQuery

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Florian Bernd <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Laurent Saint-Félix <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants