Skip to content

Conversation

@umago
Copy link
Contributor

@umago umago commented May 27, 2025

Description

This patch add some compatibily with the /query endpoint from OLS-service.

For the request itself, everything should be identical now with the exception of the "media_type" field. The "media_type" field has not been included since the current implmentantion does not yet support streaming responses.

For the response to a query, there are a lot of fields missing. These also should be added as we start adding more features to Lightspeed Core. At the moment, only the basic response is returned.

TODOs were left in the code pointing to those gaps.

Type of change

  • [ x] Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • [ x] Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • [ x] I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • The /query endpoint signature is now the same as the old ols-service project, you can curl it as before
  • make test-unit, to run unit tests

This patch add some compatibily with the /query endpoint from
OLS-service.

For the request itself, everything should be identical now with the
exception of the "media_type" field. The "media_type" field has not been
included since the current implmentantion does not yet support streaming
responses.

For the response to a query, there are a lot of fields missing. These
also should be added as we start adding more features to Lightspeed
Core. At the moment, only the basic response is returned.

TODOs were left in the code pointing to those gaps.

Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
Copy link
Contributor

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

it looks ok in overall, I just need some time for detailed review (sorry).

@tisnik tisnik merged commit 76fa45b into lightspeed-core:main May 27, 2025
3 checks passed
@umago umago deleted the query-endpoint branch May 27, 2025 18:08
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