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

fix(plugins/AI-proxy): db migrations for AI-proxy plugin #12860

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

liverpool8056
Copy link
Contributor

Summary

This PR is a follow-up one of #12781.
In #12781 , the default value of log_statistics is changed from true to false for providers not supporting this feature, and a configuration validation is added to prevent from enabling it against those unsupported providers.
However, the new config validation may cause CP DP compatibility issue in case that log_statistics has been enabled upon those unsupported providers. Although the issue can only happen in a very narrow case, it would be better to take care of it.

In this PR, a database migration is added for the case mentioned above, migrating the value of log_statistics from true to false against providers not supporting this feature. Also, a changelog entry is added as well to describe it.

Checklist

Issue reference

Fix #[issue number]

@liverpool8056 liverpool8056 self-assigned this Apr 15, 2024
@github-actions github-actions bot added cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee plugins/ai-proxy labels Apr 15, 2024
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 15, 2024
@liverpool8056 liverpool8056 force-pushed the fix/migrations-for-ai-gateway branch 3 times, most recently from baf22fe to 3564074 Compare April 15, 2024 08:29
@chronolaw chronolaw changed the title fix(AI-proxy plugin): db migrations for AI-proxy plugin fix(plugins/AI-proxy): db migrations for AI-proxy plugin Apr 15, 2024
@liverpool8056 liverpool8056 force-pushed the fix/migrations-for-ai-gateway branch 3 times, most recently from 00fe371 to 35dbd50 Compare April 15, 2024 09:48
In this PR, a database migration is added for AI-proxy plugin, disabling
the log_statistics feature of this plugin for providers not supporting
this feature. Also, a changelog entry is added as well to describe it.
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 17, 2024
@liverpool8056 liverpool8056 force-pushed the fix/migrations-for-ai-gateway branch 3 times, most recently from 980adf9 to 37e9ee4 Compare April 18, 2024 09:25
@pull-request-size pull-request-size bot added size/M and removed size/L labels Apr 18, 2024
@windmgc windmgc merged commit f3b6b2e into master Apr 22, 2024
27 checks passed
@windmgc windmgc deleted the fix/migrations-for-ai-gateway branch April 22, 2024 05:21
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants