Page MenuHomePhabricator

[TECH] Improve error signaling for unsupported Item entity type in Special:NewItem page on Commons
Closed, DuplicatePublic

Description

Problem:

Currently, attempting to create a new Item in commons via the Special:NewItem page results in a database error message (see error report at T333574). To mitigate this issue, we should catch the error before it reaches the database by checking to see if the Item entity type is supported on the current site. If it is not supported on the current site, we will throw a more helpful error message.

Acceptance Criteria:

  • Attempting to create a new item in Commons via the Special:NewItem page results in a more helpful error message.
  • The error message clearly indicates that the Item entity type is not supported on the current site.

Event Timeline

Copied from parent task

Task Review notes:

  • We believe the issue stems from code in WikibaseRepo (which handles entity creation in a Wikibase)
  • The proper solution here would be to handle this edge case with a nicer error

Prio Notes:

  • Might affect production (but not end users, just logspam)
  • Does not affect development efforts
  • Does not affect onboarding efforts
  • Does affect additional stakeholders (logspam)
ItamarWMDE renamed this task from Improve error signaling for unsupported Item entity type in Special:NewItem page on Commons to [TECH] Improve error signaling for unsupported Item entity type in Special:NewItem page on Commons.Sep 20 2023, 2:53 PM