Page MenuHomePhabricator

Refactor functions that interact with the user
Closed, ResolvedPublic


Refactor appropriate functions, such as createRandomFreebaseItemLink().

Event Timeline

Refactoring function:

  • createPrimarySourcesRandomMenuItem()
    • create and append an element to list in left menu
    • API call when the user click on it
    • show content

New PrimarySources JavaScript object (accessible via mw.PrimarySources), has:

  • qid: id of current item
  • API: object with urls to rest API
  • getDataset: callback with list of dasets available