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

--- Comment #3 from Florian <[email protected]> ---
There is a difference in the call of recordOccupation() function of
WikiGrokApi. (Unhappily there is no documentation :P). The function is defined
to take 3 arguments (occupationId, occupation, claimIsCorrect).

Dialog A gives these three arguments
(https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/javascripts/modules/wikigrok/WikiGrokDialog.js#L108)
and implied, that version A data is logged sucessful, this is the correct call.

In contrast to this, Dialog B gives only one argument
(https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/javascripts/modules/wikigrok/WikiGrokDialog.js#L108),
the answer, which should be occupationId (which is missing in the request). But
i would appreciate it to clarify this, before further actions :)

@Kaldari: I can't find the api code (maybe i haven't searched enough), but does
the api checks for the "correct" value, and when, how? :)

-- 
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