Page MenuHomePhabricator

Add templating support to reportupdater scripts
Closed, InvalidPublic

Description

We need to match reportupdater's templating functionality for Hive scripts. Amir needs this to query webrequest per wiki.

This kind of thing should be possible in a Hive script: https://github.com/wikimedia/analytics-limn-edit-data/blob/master/edit/config.yaml#L13-L19

Related Objects

Event Timeline

Nuria raised the priority of this task from Low to Medium.
Nuria subscribed.

Can this data be sent as part of eventlogging from the client? Seems like looking for a needle in a haystack doing it the webrequest way

This is already supported by RU, see: https://wikitech.wikimedia.org/wiki/Analytics/Systems/Reportupdater#The_reports_section
The template parameters are passed to the script in alphabetical order of the placeholder names.
For example:

sessions:
    type: script
    granularity: weeks
    funnel: true
    starts: 2015-04-01
    explode_by:
        wiki: wikis.txt
        editor: "visualeditor, wikitext"

will explode the report by wiki and editor call the sessions script with:

sessions <start_date> <end_date> <editor> <wiki>

Added this task as a subtask of T193167 for the record,
but I think this can be closed as resolved or invalid.

Dan doesn't understand how Reportupdater works :)