Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, Wikibase-Quality, Wikibase-Quality-Constraints.
Herald added a subscriber: Aklapper.

TASK DESCRIPTION

As a data model maintainer, I want to check that some properties are only used on lexemes with certain languages, in order to ensure that they are used correctly.

Problem:
@Esc3300 created a constraint item language required by this lexeme. Presumably we should support it.

Example:
The constraint type is used on the property Japanese pitch accent type, with the language Japanese.

Screenshots/mockups:
Message drafts:

This property should only be used on Japanese lexemes.

The property Japanese pitch accent type should only be used on lexemes in Japanese.

This property should only be used on lexemes in one of the following languages:

BDD
GIVEN I am visiting a lexeme using a property with a “language required by this lexeme” constraint
AND the lexeme does not have the required language
THEN there is a “constraint violation” icon on the statement(s) with that property
AND the violation message explains the problem, including listing the allowed language(s)

Acceptance criteria:

  • the constraint type is implemented
  • after editing the language and reloading the page, the violation is no longer shown
  • after editing the language, the violation is no longer shown without reloading the page? is this required?

Open questions:

  • If more than one language item is specified in the constraint parameters, this means “one of these languages”, correct? @Esc3300 @Ivan_A_Krestinin
  • Does this apply to statements on forms and senses as well? Should they check the language of the surrounding lexeme?

TASK DETAIL
https://phabricator.wikimedia.org/T200689

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Esc3300, Ivan_A_Krestinin, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, merbst, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to