Page MenuHomePhabricator

Implement eventlogging for Wikidata descriptions editing on iOS app
Closed, ResolvedPublic

Description

As schema MobileWikiAppEdit is already being used for regular editing on the iOS app, we want to adapt it to record Wikidata descriptions editing events. Specifically:

  • Revision: 17837072 -> 18115551
  • Several field names change:
    • sessionToken -> session_token
    • appInstallID -> app_install_id
    • ts -> client_dt
  • Events needs to be recorded for Wikidata descriptions editing:
Start to add new descriptionStart to edit existing descriptionReady to edit (cursor blinking)Attempt to saveSaved successfullyError (if any)
01 Wikidata descriptions.png (1×750 px, 744 KB)
wikidata edit start.png (1×828 px, 239 KB)
04 Wikidata descriptions.png (1×750 px, 120 KB)
05 Wikidata descriptions.png (1×750 px, 128 KB)
07 Wikidata descriptions.png (1×750 px, 331 KB)
IMG_2324.PNG (1×750 px, 110 KB)
Screen Shot 2018-12-02 at 10.24.55 PM.png (216×468 px, 27 KB)
Screen Shot 2018-12-02 at 10.25.55 PM.png (222×471 px, 28 KB)
Screen Shot 2018-12-03 at 11.52.33 AM.png (219×477 px, 27 KB)
Screen Shot 2018-12-02 at 10.33.43 PM.png (219×483 px, 28 KB)
Screen Shot 2018-12-02 at 10.39.26 PM.png (230×473 px, 29 KB)
Screen Shot 2018-12-02 at 10.50.37 PM.png (228×475 px, 30 KB)

All Wikidata descriptions editing events should contains the following fields: action, wikidataDescriptionEdit, anon, app_install_id, session_token, client_dt. If the edit is saved successfully, we record the revision number in the revID field with the action=saved. If there is any error, we record the error message returned in the errorText field with the action=error.

Event Timeline

Hi @NHarateh_WMF , I just QA the eventlogging for Wikidata descriptions editing. Could you fix the following things?

  • Value for wiki should be the same as the article's wiki. Currently when I edit on an article from Chinese Wikipedia (zhwiki), the events are showing "wiki":"enwiki"
  • Currently "action":"ready" is sent twice: (1) when new users see the editing tutorial (as shown in the picture below) (2) when the "Add a description" screen is shown (as shown in the description of this task). Could you remove (1) and only send the event when the "Add a description" screen is shown?
  • When the edit is saved, there is a revision number returned, can you add that to the event when "action":"saved"?
  • When an error is emitted, can you add the error message returned as the value of key errorText (when "action":"error")?

02 Wikidata descriptions.png (1×750 px, 78 KB)

@chelsyx can you confirm that you want the localized error message displayed to the user in errorText as implied this screenshot?

Screen Shot 2018-12-02 at 10.50.37 PM.png (228×475 px, 30 KB)

Would the unlocalized error code string returned by the server be better?

ABorbaWMF added subscribers: NHarateh_WMF, ABorbaWMF.

@chelsyx can you take a look at this one and verify it all seems copacetic?

Would the unlocalized error code string returned by the server be better?

@JoeWalsh Yes! The unlocalized error code string is better!

Thanks for the fix! This looks great!