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

Feature/pdct 859 500 docs appear in a search #44

Merged
merged 5 commits into from
Jun 25, 2024

Conversation

olaughter
Copy link
Contributor

Description

This is the sdk requirements to resolve the following:

Also fixes a profiling test issue where the time included the adapter instantiation time unnecessarily.

Proposed version

Please select the option below that is most relevant from the list below. This
will be used to generate the next tag version name during auto-tagging.

  • Skip auto-tagging
  • Patch
  • Minor version
  • Major version

Visit the Semver website to understand the
difference between MAJOR, MINOR, and PATCH versions.

Notes:

  • If none of these options are selected, auto-tagging will fail (integrated soon)
  • Where multiple options are selected, the most senior option ticked will be
    used -- e.g. Major > Minor > Patch
  • If you are selecting the version in the list above using the textbox, make
    sure your selected option is marked [x] with no spaces in between the
    brackets and the x

Type of change

Please select the option(s) below that are most relevant:

  • Bug fix
  • New feature
  • Breaking change

How Has This Been Tested?

Please describe the tests that you added to verify your changes.

Before submitting

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

Updates the pydantic model to use a consistent max amount of hits that
can be requested in one go. Subsequent pages can still be retrieved with
continuation tokens. This is intended to give a sensible upper bound to
how much we are asking from vespa in a single query
@olaughter olaughter requested a review from THOR300 June 25, 2024 14:45
Copy link

linear bot commented Jun 25, 2024

Currently these only exist in the backend. Nicer to have them here.
This was adding to query times wheich isn't what we want to profile.
Having the vespa adapter as a fixture is much neater anyway
@olaughter olaughter force-pushed the feature/pdct-859-500-docs-appear-in-a-search branch 3 times, most recently from 2152d11 to cbeddaf Compare June 25, 2024 15:32
These where not getting caught on backend api requests, leading to
undocumented 500 errors. Note that pydantic takes value errors and raises
`ValidationError`
@olaughter olaughter force-pushed the feature/pdct-859-500-docs-appear-in-a-search branch from cbeddaf to a91320d Compare June 25, 2024 15:39
Copy link
Collaborator

@THOR300 THOR300 left a comment

Choose a reason for hiding this comment

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

LGTM - queries discussed in person.

@olaughter olaughter merged commit 0ef77ee into main Jun 25, 2024
6 checks passed
@olaughter olaughter deleted the feature/pdct-859-500-docs-appear-in-a-search branch June 25, 2024 16:12
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