Last modified: 2014-01-29 18:09:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60208, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58208 - Error messages should be more informative
Error messages should be more informative
Status: RESOLVED FIXED
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-09 14:17 UTC by Cristian Consonni
Modified: 2014-01-29 18:09 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Random user names for the test of Wikimetrics (taken from it.wikisource 10th anniversary contest participants) (1.57 KB, text/csv)
2013-12-09 14:17 UTC, Cristian Consonni
Details
Same user names as in the test case but quoted, this file works. (1.71 KB, text/plain)
2013-12-09 14:18 UTC, Cristian Consonni
Details

Description Cristian Consonni 2013-12-09 14:17:56 UTC
Created attachment 14030 [details]
Random user names for the test of Wikimetrics (taken from it.wikisource 10th anniversary contest participants)

Step to reproduce:
* create a new cohort
* choose a name (e.g. "it_wikisource_test_2")
* fill in a description
* choose a default project (e.g. "itwikisource")
* upload file "it_ws_contest_participants.csv" attached
* Validate as "User names"
* Hit "Upload CSV"

You will get "Error! Server error while processing your upload".

In this case some names should be quoted and following the same procedure while uploading the file named "it_ws_contest_participants_quoted.csv" works.

The example currently used seems to stress the fact that quoting is not necessary (cfr. User Names can even contain commas, but these need a project at the end,en).

A more descriptive error message could help, also a couple of words about quoting CSV files would not hurt (also note that spreadsheet softwares like LibreOffice Calc can automatically quote values when exporting to CSV).
Comment 1 Cristian Consonni 2013-12-09 14:18:48 UTC
Created attachment 14031 [details]
Same user names as in the test case but quoted, this file works.
Comment 2 Diederik van Liere 2013-12-09 14:21:58 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://mingle.corp.wikimedia.org/projects/analytics/cards/1303
Comment 3 Dan Andreescu 2013-12-09 14:42:57 UTC
Thanks for the bug report Cristian.  I've tried to improve name handling, and indeed I don't think the lack of quotes is directly causing this issue.  But I'll dig more and see what I can find.
Comment 4 Sumana Harihareswara 2014-01-15 20:30:06 UTC
Hmm. I tried the reproduction steps in comment #0 on metrics.wmflabs.org and got:

"Validated 138 of 138 cohort members. 134 are valid, 4 are invalid."

"4 are invalid" links to https://metrics.wmflabs.org/cohorts/detail/invalid-users/609 which tells me:

{
    "invalid_wikiusers": [
        {
            "mediawiki_username": "Eusebia", 
            "reason_invalid": "invalid user_name: Eusebia"
        }, 
        {
            "mediawiki_username": "Sanna", 
            "reason_invalid": "invalid user_name: Sanna"
        }, 
        {
            "mediawiki_username": "Francescaesposo", 
            "reason_invalid": "invalid user_name: Francescaesposo"
        }, 
        {
            "mediawiki_username": "Solario60", 
            "reason_invalid": "invalid user_name: Solario60"
        }
    ]
}

That could be a lot nicer to look at and somewhat more informative. Dan, what do you think of this idea? I could knock together a template that would display a list of those invalid wiki usernames (or user IDs) and state what "invalid" means in this context.
Comment 5 Cristian Consonni 2014-01-29 16:42:01 UTC
(In reply to comment #4)
> Hmm. I tried the reproduction steps in comment #0 on metrics.wmflabs.org and
> got:
> 
> "Validated 138 of 138 cohort members. 134 are valid, 4 are invalid."
> 
> "4 are invalid" links to
> https://metrics.wmflabs.org/cohorts/detail/invalid-users/609 which tells me:
> 
> {
>     "invalid_wikiusers": [
>         {
>             "mediawiki_username": "Eusebia", 
>             "reason_invalid": "invalid user_name: Eusebia"
>         }, 
>         {
>             "mediawiki_username": "Sanna", 
>             "reason_invalid": "invalid user_name: Sanna"
>         }, 
>         {
>             "mediawiki_username": "Francescaesposo", 
>             "reason_invalid": "invalid user_name: Francescaesposo"
>         }, 
>         {
>             "mediawiki_username": "Solario60", 
>             "reason_invalid": "invalid user_name: Solario60"
>         }
>     ]
> }
> 
> That could be a lot nicer to look at and somewhat more informative. Dan, what
> do you think of this idea? I could knock together a template that would
> display
> a list of those invalid wiki usernames (or user IDs) and state what "invalid"
> means in this context.

It seems a lot better to me, thank you.

Cristian
Comment 6 Dan Andreescu 2014-01-29 18:09:56 UTC
Cool!  I think Sumana had some plans to add a new endpoint here that showed these invalid users as an html page.  But I'll leave that for a separate effort.  I'm glad the invalid users link works for you, closing the issue for now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links