discourse/spec
Loïc Guitaut 9b4b5b5028 FIX: Return proper results when searching for a topic in Japanese
Currently, when the default locale is Japanese, the search for a topic
using its URL, path or ID doesn’t work as expected. It will either
return wrong results or no result at all.

The problem lies with how we process the provided terms in Japanese
mode. For example, if `http://localhost/t/-/55` is provided, currently
this will result in `http localhost t 5 5` to be searched for.

This patch addresses the issue by checking whether the provided term
needs segmenting. If the provided term is a number, or a path or a full
URL, then it doesn’t need segmenting. When that happens we skip the
processing we normally apply for Japanese, making the search return the
expected results.
2024-09-03 09:48:58 +02:00
..
fabricators DEV: Ensure unique notification level per tag user (#28638) 2024-09-03 15:43:02 +08:00
fixtures FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947) 2024-07-19 12:21:45 +10:00
generator
helpers DEV: update base url links to respect subfolder installs (#27740) 2024-07-09 12:42:38 +04:00
import_export
initializers
integration DEV: Enable Rails 7.1 defaults 2024-08-12 10:41:13 +02:00
integrity DEV: Add spec to ensure app works with multiple tagged loggers 2024-08-13 18:10:03 +02:00
jobs DEV: Split slow test in multiple smaller tests (#28646) 2024-08-30 14:47:29 +10:00
lib FIX: Return proper results when searching for a topic in Japanese 2024-09-03 09:48:58 +02:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
migrations DEV: Remove invalid content_security_policy_script_src site setting values from DB (#27588) 2024-06-27 22:17:56 +08:00
models FEATURE: Added Category Experts approved WebHook Event (#28525) 2024-09-03 06:59:15 +09:00
multisite FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
requests DEV: the ability to define setting areas (#28570) 2024-09-03 09:25:45 +10:00
script/import_scripts DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
serializers FIX: Flaky flags spec (#28591) 2024-08-28 17:03:43 +10:00
services DEV: make UserPassword 1:1 to User (#28528) 2024-09-03 11:09:33 +08:00
support DEV: Use `run_successfully` matcher in service specs 2024-08-28 16:30:09 +02:00
system DEV: the ability to define setting areas (#28570) 2024-09-03 09:25:45 +10:00
tasks DEV: Stop storing theme-transpiler on filesystem in development (#28198) 2024-08-01 17:59:34 +01:00
views
rails_helper.rb DEV: Add backup helpers for specs (#28394) 2024-08-16 14:51:57 +10:00
regenerate_swagger_docs
swagger_helper.rb