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

824: bugfix for level queryparam #855

Merged
merged 3 commits into from
Mar 5, 2024
Merged

Conversation

chriswilty
Copy link
Member

@chriswilty chriswilty commented Mar 5, 2024

Description

Fixes a bug in which the level param was not parsed into a number before checking, so the level endpoint always failed with 400 response.

Related to #824 and #842

Checklist

Have you done the following?

  • Linked the relevant Issue
  • Added tests
  • Ensured the workflow steps are passing

@chriswilty chriswilty self-assigned this Mar 5, 2024
@chriswilty chriswilty force-pushed the 824-bugfix-level-queryparam branch 2 times, most recently from 22a3c10 to 2827013 Compare March 5, 2024 10:00
@chriswilty chriswilty force-pushed the 824-bugfix-level-queryparam branch from 2827013 to d486888 Compare March 5, 2024 10:16
chatHistory: ChatMessage[];
defences: Defence[];
availableModels: string[];
systemRoles: string[];
Copy link
Member Author

Choose a reason for hiding this comment

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

Note this type was incorrect, now fixed.

Copy link
Contributor

@pmarsh-scottlogic pmarsh-scottlogic left a comment

Choose a reason for hiding this comment

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

does the trick

@chriswilty chriswilty merged commit a3cd818 into dev Mar 5, 2024
2 checks passed
@chriswilty chriswilty deleted the 824-bugfix-level-queryparam branch March 5, 2024 11:47
chriswilty added a commit that referenced this pull request Apr 8, 2024
* Use query-types lib to parse request query params
* API tests for start endpoint
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