Interacting with Discobot

AI-generated summary

In a discussion titled ‘Interacting with Discobot’ under the Bug category, permacultureProgram reports an issue where the @discobot tutorial requires users to flag one of its posts, which only works if the ‘allow flagging staff’ setting is enabled — a setting they prefer to keep disabled. codinghorror flags this as a release-blocking bug, noting that @discobot is classified as staff. sam explains that @discobot must remain staff for functional reasons and proposes creating a separate non-admin ‘baddiscobot’ user to handle flaggable posts. As a temporary fix for the release, sam suggests skipping the flagging step in the tutorial if ‘allow flagging staff’ is disabled. tgxworld considers whether ‘allow_flagging_staff’ should exclude non-human staff users like @discobot, and confirms the tutorial will now be skipped if the setting is off, referencing a commit. They also address a related issue raised by charles_b regarding the advanced tutorial and ‘delete_removed_posts_after’ set to zero, noting it’s already handled with a modified narrative. A screenshot is included to illustrate the adjusted tutorial flow.

I’m testing out a new Discourse instance I installed and as part of that process, I am going through the @discobot tutorial. One thing that @discobot requests is that the user flag one of @discobot's posts. However, I was only able to do this after enabling the allow flagging staff setting, which, for various reasons, I would like to leave disabled for this instance. This makes the @discobot greeting a bit wonky for new users and, to me, feels like a bug. Not sure if there is any way to fix that?

4 Likes

Hmm, this is another release blocking bug @sam – I guess it’s an edge condition since discobot is considered “staff” .. how easy is this to fix @tgxworld?

2 Likes

Discobot has to be staff for lots of reasons. What we would need to do to fix this properly is to make another “non admin” discobot user, we can call it “baddiscobot” or something and have it make the post that gets flagged.

For the release I guess the simplest thing to do here is to omit the flagging step from the flow IF allow flagging staff is disabled.

4 Likes

Hmm perhaps we should not apply allow_flagging_staff to non-human staff users excluding the system user?

For now, we skip the tutorial if allow_flagging_staff is disabled,

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

This has been handled previously and we actually provide a different narrative if delete_removed_posts_after is configured to 0.

8 Likes

This topic was automatically closed after 5 hours. New replies are no longer allowed.