[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-22 Thread Jan_Dittrich
Jan_Dittrich added a comment. @Lucas_Werkmeister_WMDE : Yes this is better. I assume that the message is useful for most of our users now.TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-21 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Okay, wikidata-constraints now has a shim SPARQL service that just supports REGEX (we don’t have enough resources to run Blazegraph ), and there are two test statements on John F. Kennedy (see explanation in the fourth paragraph of the Main Page).

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-21 Thread gerritbot
gerritbot added a comment. Change 370476 merged by jenkins-bot: [mediawiki/extensions/WikibaseQualityConstraints@master] Include syntax clarification in Format violation message https://gerrit.wikimedia.org/r/370476TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-17 Thread gerritbot
gerritbot added a comment. Change 370475 merged by jenkins-bot: [mediawiki/extensions/WikibaseQualityConstraints@master] Add support for parsing syntax clarification param https://gerrit.wikimedia.org/r/370475TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-07 Thread gerritbot
gerritbot added a comment. Change 370476 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)): [mediawiki/extensions/WikibaseQualityConstraints@master] Include syntax clarification in Format violation message https://gerrit.wikimedia.org/r/370476TASK

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-07 Thread gerritbot
gerritbot added a comment. Change 370475 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)): [mediawiki/extensions/WikibaseQualityConstraints@master] Add support for parsing syntax clarification param https://gerrit.wikimedia.org/r/370475TASK

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-01 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Yes, there can be multiple format constraints (see e. g. ISBN-10).TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lucas_Werkmeister_WMDECc: Lydia_Pintscher, Nikki,

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-01 Thread Nikki
Nikki added a comment. As a qualifier would make more sense, since it's clarifying a specific statement.TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: NikkiCc: Lydia_Pintscher, Nikki, PokestarFan,

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-08-01 Thread Esc3300
Esc3300 added a comment. Should we use https://www.wikidata.org/wiki/Property:P2916 as a qualifier or directly as a statement?TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Esc3300Cc: Lydia_Pintscher,

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-31 Thread Jan_Dittrich
Jan_Dittrich added a comment. Yes, I’m fine with it.TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Jan_DittrichCc: Lydia_Pintscher, Nikki, PokestarFan, Lucas_Werkmeister_WMDE, Jan_Dittrich, Aklapper,

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-31 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Yeah, let’s use messages like this: The value for local dialing code (123/456) should match “string combining digits, spaces, - (All else excluded, such as: ,/;()+ )” (regex: [\d\- ]+). or, if there’s no syntax clarification: The value for local dialing

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-29 Thread Nikki
Nikki added a comment.Herald added a subscriber: PokestarFan. In T170374#3429492, @Lucas_Werkmeister_WMDE wrote: Could we use capture groups and see which does (not) capture? I don’t see how – all we get back from the query service is “matches” or “doesn’t match”, and doing anything not on the

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Esc3300
Esc3300 added a comment. Some might have seen https://www.wikidata.org/wiki/Property_talk:P2302#Conversion_of_existing_properties : there are a couple of properties that duplicate format constraint templates.TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Jan_Dittrich
Jan_Dittrich added a comment. To avoid that we miss the context of use here: What are examples where the regex-based constraint would be used? One example seems to be the definition of formatter URLs (https://www.wikidata.org/wiki/Property:P1630). But where else would these be used and where would

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Is that a constraint-by-principle or something that the query service could do but currently does not? A constraint by principle. We only have a REGEX() function that returns true or false.TASK DETAILhttps://phabricator.wikimedia.org/T170374EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Jan_Dittrich
Jan_Dittrich added a comment. we would have a Regex, but it carries no context what it would do? Yup. That sounds problematic to me, regexes are hard enough to read even with comments and context. For a hack one runs for oneself it is OK, but having it as a more central element in the

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. we would have a Regex, but it carries no context what it would do? Yup. Could we use capture groups and see which does (not) capture? I don’t see how – all we get back from the query service is “matches” or “doesn’t match”, and doing anything not on the

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Jan_Dittrich
Jan_Dittrich added a comment. And we don’t have a short description of the constraint (“a URL”). So, just to get it right, we would have a Regex, but it carries no context what it would do? figuring out how to “fix” a string so that it matches a regular _expression_ is a hard problem Could we

[Wikidata-bugs] [Maniphest] [Commented On] T170374: Format constraint UX

2017-07-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. @Jan_Dittrich your suggestions are very difficult to implement – figuring out how to “fix” a string so that it matches a regular _expression_ is a hard problem. And we don’t have a short description of the constraint (“a URL”). @Esc3300 I wasn’t aware of