Page MenuHomePhabricator

New Discussion Tool lets you post a discussion without a topic if you remove the topic name
Closed, InvalidPublic

Description

Steps to replicate:

  1. Open the New Discussion Tool
  2. Enter some text in the tool's Description field.
  3. Click the Add Topic button.
  4. At this point you will get the feedback message "Please provide a topic for your comment. If you click "Add topic" again, your comment will be added without a topic."
  5. Type something into the Topic field.
  6. Remove the text you just typed in that field.
  7. Click the Add Topic button again.

Observed Result:
This time it will let you post the discussion without any topic name.

Event Timeline

This also happens if you just click the Add Topic button twice. So it's just doing one time validation check and not checking after that. Is it meant to be a soft warning rather than an enforced validation?

This also happens if you just click the Add Topic button twice. So it's just doing one time validation check and not checking after that. Is it meant to be a soft warning rather than an enforced validation?

Exactly – the tool, for right now, offers a warning if someone does not enter any content into the Topic field, thus why the behavior you described in the task description and in T272535#6763497 is as it is.

With the above said, I'm glad you filed this for it led me to this issue: T272666.

This also happens if you just click the Add Topic button twice. So it's just doing one time validation check and not checking after that. Is it meant to be a soft warning rather than an enforced validation?

Exactly – the tool, for right now, offers a warning if someone does not enter any content into the Topic field, thus why the behavior you described in the task description and in T272535#6763497 is as it is.

With the above said, I'm glad you filed this for it led me to this issue: T272666.

Yes, seems like we broke this recently, after wmf.27 deployment. I modified the title of that task to reflect that.