WikibaseIntegrator icon indicating copy to clipboard operation
WikibaseIntegrator copied to clipboard

Feature request: check for empty value

Open dpriskorn opened this issue 2 years ago • 3 comments

as a user I want clear errors from WBI and avoid cryptic errors from the Wikibase api whenever possible so I understand what went wrong and how to fix my code

dpriskorn avatar Jan 14 '23 11:01 dpriskorn

Hi @dpriskorn,

I'm afraid this will become a rabbit hole that will be difficult to maintain because of:

  • An error message may be too inaccurate to give a cause.
  • The most common cause may be wrong, and the user will mistakenly focus on that.
  • The increasing number of error messages will create a list that is difficult to maintain.

I think it's better to redirect the user to their favorite search engine or directly to the "Discussions" part of this GitHub so they can search for the error and find the multiple answers available and the related discussions.

LeMyst avatar Jan 15 '23 10:01 LeMyst

I'm guessing that you misunderstood me. I meant: Before writing to wikibase WBI should check that all values are not zero unless novalue or unknown value is stated.

dpriskorn avatar Jan 15 '23 11:01 dpriskorn

Oh, yes, totally misunderstood 😄

LeMyst avatar Jan 15 '23 18:01 LeMyst