Page MenuHomePhabricator

Impossible to save filters with ternary
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce:

  1. Go to https://www.wikidata.org/wiki/Special:AbuseFilter/test
  2. Put content: 'foo' in summary ? true : false
  3. Hit "Check syntax"

Expected result:

  • This is a (syntactically) valid filter

Actual result:

  • "× An unknown error occurred."

Server response:

{"error":{"code":"internal_api_error_AFPException","info":"[XXaWXQpAAEgAAIPgLuYAAABH] Caught exception of type AFPException","errorclass":"AFPException"},"servedby":"mw1277"}

Event Timeline

matej_suchanek changed the subtype of this task from "Task" to "Bug Report".

Wow, that was fast. Backport planned?

Wow, that was fast. Backport planned?

I don't know if we need it, given that the train will start tomorrow. Note that filters using ternaries are still working 99% of the time, so unless there's a real urgency I'd propose to wait.