discourse/plugins
Rafael dos Santos Silva b81e80a6e2
FIX: Optimize shortcomings from topic truncation from a27e20c (#33983)
On a27e20c we made an emergency perf fix to speedup generating text from
a topic for embeddings generation.

This introduced some issues, like missing separators between posts,
including to line breaks per included post all at the top of the
generated text, and resulted in using a lot less content per topics,
as we count the cooked size before stripping all the HTML tags.

This commit helps alleviate by:

  - removing the "\n\n" * quantity of posts at the top
  - adding a space between posts
  - generating text 3 times longer than the max allowed lenght, since
    it's getting shrinked after it's built by the Nokogiri.text call.
2025-07-30 17:09:05 -03:00
..
automation UX: Content border color (#33908) 2025-07-28 16:17:06 -05:00
chat DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
checklist DEV: Silence post-stream-widget-overrides in the checklist plugin (#33743) 2025-07-22 14:47:33 -03:00
discourse-adplugin DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-affiliate Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-ai FIX: Optimize shortcomings from topic truncation from a27e20c (#33983) 2025-07-30 17:09:05 -03:00
discourse-apple-auth DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
discourse-assign DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-calendar DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-chat-integration Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-data-explorer DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-details Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-gamification DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-github Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-graphviz Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-hcaptcha DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-lazy-videos Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-local-dates DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-login-with-amazon DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
discourse-lti Build(deps-dev): Bump the lint group across 1 directory with 4 updates (#33881) 2025-07-28 18:02:41 +02:00
discourse-math Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-microsoft-auth Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-narrative-bot Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-oauth2-basic Update translations (#33892) 2025-07-28 18:38:22 +02:00
discourse-openid-connect DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
discourse-patreon DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-policy Build(deps-dev): Bump the lint group across 1 directory with 4 updates (#33881) 2025-07-28 18:02:41 +02:00
discourse-post-voting DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-presence Build(deps-dev): Bump the lint group across 1 directory with 4 updates (#33881) 2025-07-28 18:02:41 +02:00
discourse-reactions DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-rss-polling DEV: avoid calling sidekiq in migration (#33957) 2025-07-30 11:57:04 +10:00
discourse-solved DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-subscriptions DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-templates DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-topic-voting DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
discourse-user-notes DEV: Convert user-notes components to glimmer (#33974) 2025-07-30 13:58:30 +02:00
discourse-zendesk-plugin DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
footnote UX: Update styling of inline footnotes (#33933) 2025-07-29 17:15:35 +01:00
poll DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
spoiler-alert Update translations (#33892) 2025-07-28 18:38:22 +02:00
styleguide DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00