Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented May 27, 2025

We have two existing site settings:

  • automatic_translation_backfill_limit_to_public_content
  • automatic_translation_backfill_max_age_days

We need to use them for PostLocalization (& topic, cat) as well. They are used in the old feature for DiscourseTranslate::PostTranslation (& topic) @ #255.

Also added sidekiq_options retry: false for the jobs as they are non-critical.

expect { job.execute({ post_id: post.id }) }.not_to raise_error
end

it "skips public content when configured" do
Copy link
Contributor

@tgxworld tgxworld May 27, 2025

Choose a reason for hiding this comment

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

Suggested change
it "skips public content when configured" do
it "skips public content when `automatic_translation_backfill_limit_to_public_content ` site setting is enabled" do

Suggestion so that it is most specific as to what is configured.

@tgxworld
Copy link
Contributor

tgxworld commented May 27, 2025

Approving first as the performance concern will be resolved before merging.

@nattsw
Copy link
Contributor Author

nattsw commented May 27, 2025

Thanks!

@nattsw nattsw merged commit 7e0a517 into main May 27, 2025
6 checks passed
@nattsw nattsw deleted the public-private branch May 27, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants