Not confirming username autocomplete leads to confusing behavior

AI 生成的摘要

The discussion highlights a confusing and counter-intuitive behavior in Discourse where not confirming a username autocomplete leads to unexpected results. michaeld explains that this issue has caused multiple support incidents, including users seeing topics they shouldn’t in email digests and incorrect group assignments. A screencap illustrates a case where a regular user, Richard, appears to see admin-only content in a digest preview. codinghorror brings it to the attention of eviltrout, who acknowledges the confusion and references a past fix to address the poor implementation: fix.

This is not really a bug, but it is undesirable and counter-intuitive behavior.

We just had a customer that was pretty much panicking because it looked like users were seeing topics in the email digest that they shouldn’t see. It turned out that if the username autocomplete is not selected, the username is filled in into the username field, but is not being used.

This is not a single incident, in the past months we had at least five reports of strange behavior that could be pinned down to the administrator not confirming a username autocomplete. This time it was the digest preview, another incident involved adding users to a group.

Here is a screencap that shows what I mean. It involves user Richard who is a regular user, but who seems to get a topic in an admin-only category in his preview digest.

4 个赞

Sure @eviltrout can you have a look? If it is generating lots of support requests we should try to address this.

2 个赞

I agree that is very confusing. I’ve punished my former self for implementing it so poorly and then created this:

https://github.com/discourse/discourse/commit/f6222ff225c2d39c9db92e1b2de1249f5424d998

6 个赞

This topic was automatically closed after 3 days. New replies are no longer allowed.