Skip to content

DEV: update composer similar topics limit #32934

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

Merged
merged 2 commits into from
May 27, 2025

Conversation

dbattersby
Copy link
Contributor

@dbattersby dbattersby commented May 27, 2025

Updates the composer similar topics tips to return a maximum of 3 topic results. We are phasing out the site setting in an effort to improve the UX in the composer.

We will handle the migration to remove the site setting value from the database in a follow up PR.

/t/150274

@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label May 27, 2025
@dbattersby dbattersby changed the title DEV: remove site setting for max similar results DEV: update composer similar topics limit May 27, 2025
Copy link
Contributor

@nattsw nattsw left a comment

Choose a reason for hiding this comment

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

Btw, the topic doesn't indicate why 10 or 3. Did you quote the wrong topic?

Since the descriptive "max similar results" is now gone, can we add a CONST indicating something like SIMILAR_TOPICS_LIMIT? Super nitpicky but it def feels like a magic number from thin air 😅

@dbattersby
Copy link
Contributor Author

Since the descriptive "max similar results" is now gone, can we add a CONST indicating something like SIMILAR_TOPICS_LIMIT? Super nitpicky but it def feels like a magic number from thin air

Oh my, I shared the wrong internal link (updated now), but yes that is a fair point about the constant. It will be good to add as it makes the numbers more descriptive. Will push an update.

@dbattersby dbattersby merged commit 6d42d95 into main May 27, 2025
16 checks passed
@dbattersby dbattersby deleted the update-composer-similar-topics-limit branch May 27, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n PRs which update English locale files or i18n related code
Development

Successfully merging this pull request may close these issues.

2 participants