Go to file
Rafael dos Santos Silva cfc6e388df
FIX: Ensure embeddings database outages are handled gracefully (#80)
The rails_failover middleware will intercept all `PG::ConnectionBad` errors and put the cluster into readonly mode. It does not have any handling for multiple databases. Therefore, an issue with the embeddings database was taking the whole cluster into readonly.

This commit fixes the issue by rescuing `PG::Error` from all AI database accesses, and re-raises errors with a different class. It also adds a spec to ensure that an embeddings database outage does not affect the functionality of the topics/show route.

Co-authored-by: David Taylor <david@taylorhq.com>
2023-05-23 22:57:52 +01:00
.github/workflows Initial commit 2023-02-17 11:33:47 -03:00
app FEATURE: add support for GPT <-> Forum integration 2023-05-20 17:45:54 +10:00
assets FIX: Hide summarization button from anons (#70) 2023-05-18 12:34:49 -03:00
config iterate commands (#73) 2023-05-22 12:09:14 +10:00
db FEATURE: add support for GPT <-> Forum integration 2023-05-20 17:45:54 +10:00
lib FIX: Ensure embeddings database outages are handled gracefully (#80) 2023-05-23 22:57:52 +01:00
spec FIX: Ensure embeddings database outages are handled gracefully (#80) 2023-05-23 22:57:52 +01:00
svg-icons UX: add a custom sparkles icon for AI action buttons (#44) 2023-04-20 20:41:24 +05:30
test/javascripts Initial commit 2023-02-17 11:33:47 -03:00
tokenizers Refinements to embeddings and tokenizers (#61) 2023-05-15 15:10:42 -03:00
.discourse-compatibility DEV: Resolve add_to_serializer deprecations (#46) 2023-04-24 16:07:17 +01:00
.eslintrc Initial commit 2023-02-17 11:33:47 -03:00
.gitignore Initial commit 2023-02-17 11:33:47 -03:00
.prettierrc Initial commit 2023-02-17 11:33:47 -03:00
.rubocop.yml Initial commit 2023-02-17 11:33:47 -03:00
.streerc Initial commit 2023-02-17 11:33:47 -03:00
.template-lintrc.js Initial commit 2023-02-17 11:33:47 -03:00
Gemfile Initial commit 2023-02-17 11:33:47 -03:00
Gemfile.lock Initial commit 2023-02-17 11:33:47 -03:00
LICENSE Initial commit 2023-02-17 11:33:47 -03:00
README.md Initial commit 2023-02-17 11:33:47 -03:00
package.json Initial commit 2023-02-17 11:33:47 -03:00
plugin.rb FEATURE: Basic StableDiffusion text2img support (#72) 2023-05-20 09:38:08 +10:00
yarn.lock Initial commit 2023-02-17 11:33:47 -03:00

README.md

Plugin Name Plugin

Plugin Summary

For more information, please see: url to meta topic