bartv
(Bart )
21 فبراير 2020، 9:52ص
1
Since this week. we no longer see an error message when you more than max tags per topic on a topic. Instead, the topic just saves, but the additional tags are discarded silently.
إعجابَين (2)
j.jaffeux
(Joffrey Jaffeux)
21 فبراير 2020، 10:53ص
3
Hi,
it should be fixed by
master ← jjaffeux:mini-tag-chooser-max-tags
merged 11:16AM - 21 Feb 20 UTC
I added few tests, hopefully we don’t regress on this anymore.
Thanks.
8 إعجابات
RGJ
(Richard - Communiteq)
13 فبراير 2024، 1:47م
6
لقد وجدت هذا الموضوع عندما أردت الإبلاغ عن أن max_tags_per_topic يفشل بصمت في الاختبارات الحالية التي تم اجتيازها عندما يتم تعيينه على 0.
إعادة الإنتاج:
قم بتعيين max_tags_per_topic على 0
أضف علامة إلى موضوع
لاحظ أنها لم تتم إضافتها
عندما يتم تعيين الحد الأقصى للعلامات لكل موضوع على 1 وتحاول إضافة علامة ثانية، تظهر رسالة خطأ “يمكنك تحديد عنصر واحد فقط”.
أشك في أن الخطأ موجود هنا ، إذا كان maximum يساوي 0 فإن تعبير if يكون خاطئًا.
3 إعجابات
nat
(Natalie T)
19 مارس 2024، 4:50ص
8
شكراً لك! لقد قمنا بإصلاحه هنا:
main ← prevent-search-limit-max
opened 04:10AM - 19 Mar 24 UTC
Currently when `max_tags_per_topic` is zero, it fails silently.
This change … highlights the limit below the tag picker, and also prevents search when max is 0. It continues to allow users to remove existing tags if the max is changed to 0.
I considered removing the tag picker when the value is 0 and there are no existing tags, but it becomes non-obvious to the user why the tag picker is gone. So showing the red 'error' provides a better clue. Language-wise it sounds a bit funny, but after thinking a bit, I think it works alright.
Related: https://meta.discourse.org/t/max-tags-per-topic-failing-silently/142241
Some screenshots
### Existing tag, but max changed to 0
<img width="459" alt="Screenshot 2024-03-19 at 12 04 42 PM" src="https://github.com/discourse/discourse/assets/1555215/1174a518-6f8e-47d9-8f16-52480629087e">
### Composer
<img width="767" alt="Screenshot 2024-03-19 at 12 05 16 PM" src="https://github.com/discourse/discourse/assets/1555215/54f1bbc2-0e4b-46c1-b345-af9a367859b7">
### Topic tag picker when 0 tags doesn't search
<img width="764" alt="Screenshot 2024-03-19 at 12 10 46 PM" src="https://github.com/discourse/discourse/assets/1555215/f9a2ea1d-3351-4d31-840b-3abe09cd8a24">
إعجاب واحد (1)
nat
(Natalie T)
تم إغلاقه في
20 مارس 2024، 12:00ص
9
تم إغلاق هذا الموضوع تلقائيًا بعد 19 ساعة. لم يعد يُسمح بالردود الجديدة.