https://bugzilla.wikimedia.org/show_bug.cgi?id=72415

            Bug ID: 72415
           Summary: Many false positive warnings about missing
                    continuation parameter
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

The API shows the warning about missing continuation parameters even when it is
inappropriate. Many false positive warnings will hide the warnings that are
really relevant. There are two groups of false positives:

1. Queries that just can't be continued:

http://en.wikipedia.beta.wmflabs.org/w/api.php?action=query&meta=tokens&format=jsonfm

Why should I add a continuation parameter for a simple query to get a token?
Just don't show a warning for meta submodules (I think these are the only that
can't be continued).

2. Queries that could be continued, but won't be continued:

http://en.wikipedia.beta.wmflabs.org/w/api.php?action=query&prop=revisions&format=jsonfm&rvlimit=1&titles=Main%20Page

I am interested in the latest revision only, otherwise I wouldn't have set the
limit to 1, so the warning is useless for me.

I can think of three different solutions for this group:

1. Don't show a warning for queries with an explicit limit=1, as these are the
queries that the user most likely doesn't want to continue.
2. Don't set the warning directly, but add a parameter to the continuation
data, i.e. return

    "query-continue": {
        "revisions": {
            "rvcontinue": 115406,
            "showwarning": ""
        }
    }
When the client continues the query, he should add all parameters from the
continuation data, so he will include the showwarning parameter in the next
query, which can be used to show the warning in the second answer.
3. Provide a nocontinue parameter, which can be used by the client to suppress
both the warning and the continuation data.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to